Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#5

AW: WNetGetConnection erkenne ob LW getrennt wurde?

  Alt 3. Dez 2015, 17:34
Hat schon jemand IsNetDrive getestet?
Ist zwar schon älter, aber solange es in SHELL.DLL vorhanden ist, kann man es auch nutzen.
This function returns one of the following values.
Return value - Description

0 - The specified drive is not a network drive.
1 - The specified drive is a network drive that is properly connected.
2 - The specified drive is a network drive that is disconnected or in an error state.

Const External_Library = 'shell32';
function IsNetDrive(iDrive:Longint):Longint;StdCall;
external External_library name 'IsNetDrive';

https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx
  Mit Zitat antworten Zitat