Hi Pola,
Thanks for posting in the community.
<quote>
I am using VC++.NET
In my appl I have to disable access to some disks in the network,
</quote>
What do you mean disable access to some disks in the network?
Do you mean you wants to disconnect the mapped network drive to an network
share folder?
Have I fully understood you? If there is anything I misunderstood, can you
describe your senario more detailed?
If you wants to disconnect the mapped network drive.
Here is an sample, you may take a look.
Canceling a Network Connection
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/c
anceling_a_network_connection.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.