net use API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

net use API

Jochen Riekhof-7
Hi...

small question:
is there any API in Dolphin that parallel the "net use ..." commands for
reading out and register mapped network drives?
Thank you for any hint!

Ciao

...Jochen


Reply | Threaded
Open this post in threaded view
|

Re: net use API

Esteban A. Maringolo-3
Jochen Riekhof escribió:
> Hi...
>
> small question:
> is there any API in Dolphin that parallel the "net use ..." commands for
> reading out and register mapped network drives?

Netapi32.dll

NET_API_STATUS NetUseEnum(
   LMSTR UncServerName,
   DWORD Level,
   LPBYTE* BufPtr,
   DWORD PreferedMaximumSize,
   LPDWORD EntriesRead,
   LPDWORD TotalEntries,
   LPDWORD ResumeHandle
);

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/network_management_functions.asp>

Saludos.

--
Esteban.


Reply | Threaded
Open this post in threaded view
|

Re: net use API

Jochen Riekhof-7
hi Esteban...

thanks a lot!!

Ciao

...Jochen

"Esteban A. Maringolo" <[hidden email]> wrote in
message news:[hidden email]...

> Jochen Riekhof escribió:
>> Hi...
>>
>> small question:
>> is there any API in Dolphin that parallel the "net use ..." commands for
>> reading out and register mapped network drives?
>
> Netapi32.dll
>
> NET_API_STATUS NetUseEnum(
>   LMSTR UncServerName,
>   DWORD Level,
>   LPBYTE* BufPtr,
>   DWORD PreferedMaximumSize,
>   LPDWORD EntriesRead,
>   LPDWORD TotalEntries,
>   LPDWORD ResumeHandle
> );
>
> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/network_management_functions.asp>
>
> Saludos.
>
> --
> Esteban.