Link to home
Start Free TrialLog in
Avatar of celo
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
ASKER CERTIFIED SOLUTION
Avatar of monteh
monteh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of celo
celo

ASKER

Will if work on machines running win95 accessing files on the network, if so an you supply an example
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