Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

TRUSTEE (Structures)
 
.
Summary
Identifies the user account, group account, or logon session to which an ACE applies

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto, Pack=4)]
struct TRUSTEE
{
    IntPtr pMultipleTrustee; // must be null
    int MultipleTrusteeOperation;
    int TrusteeForm;
    int TrusteeType;
    [MarshalAs(UnmanagedType.LPStr)]
    string ptstrName;
}

VB Definition:

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=4)> _
    Public Structure TRUSTEE
    Dim pMultipleTrustee As IntPtr ' must be null
    Dim MultipleTrusteeOperation As Integer
    Dim TrusteeForm As Integer
    Dim TrusteeType As Integer
    <Some Marshalling attribute here>
    Dim ptstrName As String
    End Structure

User-Defined Field Types:

None.

Notes:

ptstrName is actually a LPTSTR in windows API (whereas string in .NET is unicode), so a marshalling attribute is needed to make it work.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions