News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

some equations, missing in windows.inc...

Started by PsYcHoCoDe, April 14, 2013, 09:41:55 PM

Previous topic - Next topic

PsYcHoCoDe

DesiredAccess in OpenProcessToken:

STANDARD_RIGHTS_REQUIRED equ 000F0000h
STANDARD_RIGHTS_READ equ 00020000h
TOKEN_ASSIGN_PRIMARY equ 0001h
TOKEN_DUPLICATE equ 0002h
TOKEN_IMPERSONATE equ 0004h
TOKEN_QUERY equ 0008h
TOKEN_QUERY_SOURCE equ 0010h
TOKEN_ADJUST_PRIVILEGES equ 0020h
TOKEN_ADJUST_GROUPS equ 0040h
TOKEN_ADJUST_DEFAULT equ 0080h
TOKEN_ADJUST_SESSIONID equ 0100h
TOKEN_READ equ (STANDARD_RIGHTS_READ+TOKEN_QUERY)
TOKEN_ALL_ACCESS equ (STANDARD_RIGHTS_REQUIRED+TOKEN_ASSIGN_PRIMARY+TOKEN_DUPLICATE+TOKEN_IMPERSONATE+TOKEN_QUERY+TOKEN_QUERY_SOURCE+TOKEN_ADJUST_PRIVILEGES+TOKEN_ADJUST_GROUPS+TOKEN_ADJUST_DEFAULT+TOKEN_ADJUST_SESSIONID)

CREATE_DEFAULT_ERROR_MODE equ 04000000h ; this is for CreateProcess...

These are missing inside windows.inc, i suppose you might consider updating it for the next release  8)

dedndave

i didn't check all of them, but some of them seem to be defined in windows.inc, masm32 v11
which version of the masm32 package are you using ?

jj2007

v11, windows.inc, line 20380ff (see also line 523):
TOKEN_ASSIGN_PRIMARY equ (0001h)
TOKEN_DUPLICATE equ (0002h)
TOKEN_IMPERSONATE equ (0004h)
TOKEN_QUERY equ (0008h)
TOKEN_QUERY_SOURCE equ (0010h)
TOKEN_ADJUST_GROUPS equ (0040h)
TOKEN_ADJUST_DEFAULT equ (0080h)
TOKEN_ADJUST_SESSIONID equ (0100h)
TOKEN_ALL_ACCESS equ (STANDARD_RIGHTS_REQUIRED+TOKEN_ASSIGN_PRIMARY+TOKEN_DUPLICATE+TOKEN_IMPERSONATE+TOKEN_QUERY+TOKEN_QUERY_SOURCE+TOKEN_ADJUST_PRIVILEGES+TOKEN_ADJUST_GROUPS+TOKEN_ADJUST_SESSIONID+TOKEN_ADJUST_DEFAULT)
TOKEN_READ equ (STANDARD_RIGHTS_READ+TOKEN_QUERY)
TOKEN_WRITE equ (STANDARD_RIGHTS_WRITE+TOKEN_ADJUST_PRIVILEGES+TOKEN_ADJUST_GROUPS+TOKEN_ADJUST_DEFAULT)
TOKEN_EXECUTE equ (STANDARD_RIGHTS_EXECUTE)
TOKEN_SOURCE_LENGTH equ 8