NetFileEnum Issue on Windows Server 2003 - Urgent
Hi, i have written an application in vb6 that enumerates through the file connections that have been open remotely on a server. I use the API call from the
netapi32.dll. I can execute this function remotely to determine what users have what files opened on a specified server. I can also close these file connections using NetFileClose API. The problem i am having is that we are migrating our server to Windows Server 2003 which does not support these API's. Does anyone know if C# has any kind of functionality to handle this or is there a corresponding API in Windows Server 2003? Your help would be much appreciated.Thanks in advance.
[665 byte] By [
GBez] at [2007-12-16]
Hello GBez,
I cannot speak to the Windows Server 2003 API support.
However, I do know that there is no API in the current Base Class Library that directly supports closing a file connection (a la NetFileClose).
You can PInvoke to NetFileClose.
Hope that helps,
Stephen
http://blogs.msdn.com/stfisher