Pregunta INetCfgLock

  • Monday, January 07, 2013 4:55 PM
     
     

    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

All Replies

  • Tuesday, January 08, 2013 8:48 AM
     
     

    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

  • Wednesday, January 09, 2013 12:59 AM
     
     

    Thanks for the information.  I passed it along to a coworker who is looking into this issue.

    Nick