79116956

Date: 2024-10-23 07:59:38
Score: 1.5
Natty:
Report link

It seems that I will answer my question for another time. It's possible to get there ShellExecuteW way:

{
  ATL::CStringW cswNetworkAdapterPath = L"";
  LPOLESTR lpwszNetConCLSID;

  StringFromIID(CLSID_NetworkConnections, &lpwszNetConCLSID);
  cswNetworkAdapterPath.Format(L"::%s\\::%s", lpwszNetConCLSID, lpwszAdapterGUID);

  ShellExecuteW(NULL, L"properties", cswNetworkAdapterPath, NULL, NULL, SW_SHOWNORMAL);
}

That's the quick and dirty approach but it works (the less dirty will be CSIDL_CONNECTIONS way). You may also need to grab a thread to let the property sheet open.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: SigmaTel71