S
Sudesh Shetty
Hi
How can I programmatically (Win32/MFC) check the status of mapped
network(i.e. server is connected or disconnected)?
We have a local server to which many clients can be connected.
I have connected to this server and mapped to particular drive(say Z:\).
In the server we can get all the Client IP which are connected to this
server(Control Panel/Administrative tools/Computer Management/Shared
folders/Sessions). Here we can disconnect a particular client.
I have to check the status of this server(mapped network) in my client
Even if we disconnect the client in server, the mapped drive still exists in
my client.
So API's like GetLogicaldrive,GetLogicalDriveStrings,_access fails to give
the right status. Which API I can use to get the right status?
One more information- When client is disconnected in the server, if I use
"net use" cmd promt in client it shows status is "Disconnected". But still I
can write some file to the mapped drive using fopen(),fwrite() and this
file will be reflected in the server also. I am more confused by this
behavior.
Can anyone help me to resolve this issue?
Best Regards
Sudesh
How can I programmatically (Win32/MFC) check the status of mapped
network(i.e. server is connected or disconnected)?
We have a local server to which many clients can be connected.
I have connected to this server and mapped to particular drive(say Z:\).
In the server we can get all the Client IP which are connected to this
server(Control Panel/Administrative tools/Computer Management/Shared
folders/Sessions). Here we can disconnect a particular client.
I have to check the status of this server(mapped network) in my client
Even if we disconnect the client in server, the mapped drive still exists in
my client.
So API's like GetLogicaldrive,GetLogicalDriveStrings,_access fails to give
the right status. Which API I can use to get the right status?
One more information- When client is disconnected in the server, if I use
"net use" cmd promt in client it shows status is "Disconnected". But still I
can write some file to the mapped drive using fopen(),fwrite() and this
file will be reflected in the server also. I am more confused by this
behavior.
Can anyone help me to resolve this issue?
Best Regards
Sudesh