コード例 #1
0
ファイル: Native.cs プロジェクト: GarthJL1965/netcommander
        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
ファイル: Native.cs プロジェクト: GarthJL1965/netcommander
 public static extern uint WNetGetResourceInformation
     (ref NETRESOURCE lpNetResource,
     IntPtr lpBuffer,
     ref int lpcbBuffer,
     ref IntPtr lplpSystem);
コード例 #3
0
ファイル: Native.cs プロジェクト: GarthJL1965/netcommander
 public static extern uint WNetGetResourceParent
     (ref NETRESOURCE lpNetResource,
     IntPtr lpBuffer,
     ref int lpcbBuffer);
コード例 #4
0
ファイル: Native.cs プロジェクト: GarthJL1965/netcommander
 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));
 }