Author Topic: some equations, missing in windows.inc...  (Read 2921 times)

PsYcHoCoDe

  • Guest
some equations, missing in windows.inc...
« on: April 14, 2013, 09:41:55 PM »
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

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: some equations, missing in windows.inc...
« Reply #1 on: April 14, 2013, 10:40:34 PM »
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

  • Member
  • *****
  • Posts: 10544
  • Assembler is fun ;-)
    • MasmBasic
Re: some equations, missing in windows.inc...
« Reply #2 on: April 15, 2013, 08:06:36 AM »
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