celo
asked on
Who is using a file on the network
I want to know, say by selecting a file from a cmdlg, to display a window showing what users have a particualar file open. I think there might be an API available.
I want this to work on a NT/Windows network.
many thanks
Celo
I want this to work on a NT/Windows network.
many thanks
Celo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually, the function is NetFileEnum, and yes it will work for NT and Win9X but you need to handle the differences.
The MSDN documents the NT version but not the Win9X version. You need to review the header file for the Win9X version (see svrapi.h). The Win9X version is exported in SVRAPI.DLL while the NT version is exported in NETAPI32.DLL.
There's a sample of the NetFileEnum function (NT version only) on my website (see the Grab Bag page).
http://KillerVB.Com
Monte Hansen
The MSDN documents the NT version but not the Win9X version. You need to review the header file for the Win9X version (see svrapi.h). The Win9X version is exported in SVRAPI.DLL while the NT version is exported in NETAPI32.DLL.
There's a sample of the NetFileEnum function (NT version only) on my website (see the Grab Bag page).
http://KillerVB.Com
Monte Hansen
ASKER