flat assembler
Message board for the users of flat assembler.
Index
> Windows > TOKEN_USER and SECURITY_DESCRIPTOR struct |
Author |
|
Apolo 03 Apr 2017, 12:15
How to declare TOKEN_USER and SECURITY_DESCRIPTOR in 64-bit???
|
|||
03 Apr 2017, 12:15 |
|
Apolo 03 Apr 2017, 15:43
Aaarrrggghhh! Ghhhrrr! I am having a hysterical attack now. I am being MAD!
|
|||
03 Apr 2017, 15:43 |
|
Furs 03 Apr 2017, 23:24
Well: https://msdn.microsoft.com/en-us/library/windows/desktop/aa379561%28v=vs.85%29.aspx
Says: Quote: Because the internal format of a security descriptor can vary, we recommend that applications not modify the SECURITY_DESCRIPTOR structure directly. For creating and manipulating a security descriptor, use the functions listed in See Also. Probably you can find some info online about (1) if someone has done it, but why? It won't be portable to different Windows versions. EDIT: Btw if you want its "size" then I did with MinGW-w64 and it was like this: Code: sizeof(TOKEN_USER) = 16 bytes sizeof(SECURITY_DESCRIPTOR) = 40 bytes |
|||
03 Apr 2017, 23:24 |
|
Apolo 04 Apr 2017, 08:18
No! I need know the members for those structures in 64 bit with QWORDs.
|
|||
04 Apr 2017, 08:18 |
|
Trinitek 04 Apr 2017, 09:26
Apolo wrote: No! I need know the members for those structures in 64 bit with QWORDs. |
|||
04 Apr 2017, 09:26 |
|
Apolo 04 Apr 2017, 09:48
Stop provoke me!
I am going mad! |
|||
04 Apr 2017, 09:48 |
|
Furs 04 Apr 2017, 10:58
If you really insist, here's the definition from MinGW, however there is no guarantee it is correct on your Windows version:
Code: typedef struct _SECURITY_DESCRIPTOR { UCHAR Revision; UCHAR Sbz1; SECURITY_DESCRIPTOR_CONTROL Control; PSID Owner; PSID Group; PACL Sacl; PACL Dacl; } SECURITY_DESCRIPTOR; All you can know probably is that its size is the same (if you need to allocate it). |
|||
04 Apr 2017, 10:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.