none
INetCfgLock

    Question

  • Hi,

    Is there a way to find out which process owns the INetCfgLock write lock?  I know about INetCfgLock::IsWriteLocked, which is returning S_OK, but it also returning NULL for the client description.

    Thanks,

    Nick

    Monday, January 07, 2013 4:55 PM

All replies

  • Hi,

    If pszwClientDescription is NULL, when acquiring the lock with AcquireWriteLock(), IsWriteLocked() returns NULL for the description. I have seen some installers that does this :( Does your code show description if you lock InetCfg by going to Control Panel -> Network Connection -> right-click connection -> Properties. In that case, it should show the correct description.

    BR, Antti

    Tuesday, January 08, 2013 8:48 AM
  • Thanks for the information.  I passed it along to a coworker who is looking into this issue.

    Nick

    Wednesday, January 09, 2013 12:59 AM