Пример #1
0
        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);
        }
Пример #2
0
 public static extern uint WNetGetResourceInformation
     (ref NETRESOURCE lpNetResource,
     IntPtr lpBuffer,
     ref int lpcbBuffer,
     ref IntPtr lplpSystem);
Пример #3
0
 public static extern uint WNetGetResourceParent
     (ref NETRESOURCE lpNetResource,
     IntPtr lpBuffer,
     ref int lpcbBuffer);
Пример #4
0
 public static extern uint WNetOpenEnum
     (ResourceScope dwScope,
     ResourceType dwType,
     ResourceUsage dwUsage,
     ref NETRESOURCE lpNetResource,
     ref IntPtr lphEnum);
Пример #5
0
 public static NETRESOURCE GetResourceInfo(NETRESOURCE resource)
 {
     return(GetResourceInfo(resource, 512));
 }