Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Need value of windows constants for Python


ghost's Avatar
0 0

How would i be able to find the correct values for the windows API constants: PROCESS_ALL_ACCESS THREAD_ALL_ACCESS

this is for OpenProcess and OpenThread function.

Thanks in advance for any help.


ghost's Avatar
0 0

sorry, forget it.

I just output the constants in C to get the values.. should of just done that from the start :right:

just in case anyone else is interested:

THREAD_ALL_ACCESS = 0x001F03FF # in decimal:2032639

PROCESS_ALL_ACCESS = 0x001F0FFF # in decimal:2035711

this is from vista, i think XP and earlier they are different.


fuser's Avatar
Member
0 1

good find. I haven't done any py coding lately, but at least you managed to find something.


j4m32's Avatar
Member
0 0

Not a bad idea :)

I know the OP has already found an answer, but generally for constants used with Windows API function calls: in the MSDN documentation for the functions there will be a table for the constants on one of the pages (somewhere) or at least per parameter where applicable.

Jim,