VB-Mike
Dec 14th, 2001, 01:28 PM
I am opening a registry key on a remote server via OpenRemoteBaseKey. The key opens fine, I gather the data I need, and then the user closes the windows form. I am connecting to this server via "NET USE" using the IPC$ share with a domain administrator user name and password. After I have gathered the data and try to disconnect from the server using "NET USE \\SERVER /D" I get this message:
There are open files and/or incomplete directory searches pending on the
connection to \\SERVER\IPC$.
Is it OK to continue disconnecting and force them closed? (Y/N) [N]:
What can I do to completely break the connection to the server when I get done grabbing the registry data. After the form window is closed I would expect that the connection used to gather the remote registry data would be broken. This is apparently not the case. Somehow I need to close the open connection made to the server in code but nothing appears to work. Any ideas?
There are open files and/or incomplete directory searches pending on the
connection to \\SERVER\IPC$.
Is it OK to continue disconnecting and force them closed? (Y/N) [N]:
What can I do to completely break the connection to the server when I get done grabbing the registry data. After the form window is closed I would expect that the connection used to gather the remote registry data would be broken. This is apparently not the case. Somehow I need to close the open connection made to the server in code but nothing appears to work. Any ideas?