public static CONNECTDLGSTRUCT Prepare(ConnectDialogFlags flags, IntPtr window, NETRESOURCE resource) { CONNECTDLGSTRUCT ret = CONNECTDLGSTRUCT.Prepare(flags, window); resource.lpLocalName = null; resource.dwType = ResourceType.DISK; ret.lpConnRes = resource; return(ret); }
public static extern uint WNetGetResourceInformation (ref NETRESOURCE lpNetResource, IntPtr lpBuffer, ref int lpcbBuffer, ref IntPtr lplpSystem);
public static extern uint WNetGetResourceParent (ref NETRESOURCE lpNetResource, IntPtr lpBuffer, ref int lpcbBuffer);
public static extern uint WNetOpenEnum (ResourceScope dwScope, ResourceType dwType, ResourceUsage dwUsage, ref NETRESOURCE lpNetResource, ref IntPtr lphEnum);
public static NETRESOURCE GetResourceInfo(NETRESOURCE resource) { return(GetResourceInfo(resource, 512)); }