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.
UNICODE_STRING (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential)]
public struct UNICODE_STRING : IDisposable
{
public ushort Length;
public ushort MaximumLength;
private IntPtr buffer;
public void Dispose()
{
Marshal.FreeHGlobal(buffer);
buffer = IntPtr.Zero;
}
public override string ToString()
{
return Marshal.PtrToStringUni(buffer);
}
}
VB.NET Definition:
<StructLayout(LayoutKind.Sequential)> _
Private Structure UNICODE_STRING
Public Length As UShort
Public MaximumLength As UShort
<MarshalAs(UnmanagedType.LPWStr)> _
Private buffer As String
Public Sub New(s As String)
Length = CUShort(s.Length * 2)
MaximumLength = CUShort(Length + 2)
buffer = s
End Sub
Public Overrides Function ToString() As String
Return buffer
End Function
End Structure