Service. Net use

  • Thread starter Thread starter Odd A Haugum
  • Start date Start date
O

Odd A Haugum

Hi

In VB6 I could use the 'WNetUseConnection' API to map a remote disk. This
API needs a forms.Hwnd to work.

How can I map a remote disk from a .NET service?

Regards
Odd A. Haugum
 
Odd A Haugum said:
Hi

In VB6 I could use the 'WNetUseConnection' API to map a remote disk. This
API needs a forms.Hwnd to work.

How can I map a remote disk from a .NET service?


I believe the window handle is not necessary unless you specify the
CONNECT_INTERACTIVE option.

In any case WNetAddConnection2 does the same thing without a window handle.

David
 
Back
Top