-
The definition of it is below: typedef struct _TRUSTEE_W {
struct _TRUSTEE_W *pMultipleTrustee;
MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
TRUSTEE_FORM TrusteeForm;
TRUSTEE_TYPE TrusteeType;
union {
LPWSTR ptstrName;
SID *pSid;
OBJECTS_AND_SID *pObjectsAndSid;
OBJECTS_AND_NAME_W *pObjectsAndName;
};
LPWCH ptstrName;
} TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW; However, in CsWin32, it produces as below (removed comments): [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.106+a37a0b4b70")]
public partial struct TRUSTEE_W
{
public unsafe winmdroot.Security.Authorization.TRUSTEE_W* pMultipleTrustee;
public winmdroot.Security.Authorization.MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
public winmdroot.Security.Authorization.TRUSTEE_FORM TrusteeForm;
public winmdroot.Security.Authorization.TRUSTEE_TYPE TrusteeType;
public winmdroot.Foundation.PWSTR ptstrName;
} If I'm wrong please correct me. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Jul 17, 2024
Replies: 2 comments 2 replies
-
Btw, how can I find |
Beta Was this translation helpful? Give feedback.
1 reply
-
CsWin32 doesn't represent the unions because the metadata doesn't. But this looks like a bug to me. Can you file one over at https://github.com/microsoft/win32metadata/issues? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
0x5bfa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CsWin32 doesn't represent the unions because the metadata doesn't. But this looks like a bug to me. Can you file one over at https://github.com/microsoft/win32metadata/issues?