Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
NETRESOURCE (Structures)
.
C# Definitions:
// Use this when the unmanaged API expects the structure passed by-value,
// or if you want to pass it by-reference as a pointer to a structure
[StructLayout(LayoutKind.Sequential)]
struct NETRESOURCE
{
public int dwScope;
public int dwType;
public int dwDisplayType;
public int dwUsage;
[MarshalAs(UnmanagedType.LPTStr)] public string LocalName;
[MarshalAs(UnmanagedType.LPTStr)] public string RemoteName;
[MarshalAs(UnmanagedType.LPTStr)] public string Comment;
[MarshalAs(UnmanagedType.LPTStr)] public string Provider;
}
// Use this when you want to pass it by-value even though the unmanaged API expects
// a pointer to a structure. Being a class adds an extra level of indirection
[StructLayout(LayoutKind.Sequential)]
class NETRESOURCE
{
public int dwScope;
public int dwType;
public int dwDisplayType;
public int dwUsage;
public string LocalName;
public string RemoteName;
public string Comment;
public string Provider;
}