Join us at IRC!
Imagination is more valuable than knowledge - Albert Einstein
Friday, May 25, 2012
Navigation
Members Online
Total Online: 31
Web Spiders: 14
Guests Online: 30
Members Online: 1

Registered Members: 70208
Newest Member: andresuran
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Need value of windows constants for Python

Nemix
Member

Posts: 2
Location:
Joined: 21.12.10
Rank:
Newbie
Posted on 22-12-10 03:37
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.



Edited by Nemix on 22-12-10 03:38
Author

RE: Need value of windows constants for Python

Nemix
Member

Posts: 2
Location:
Joined: 21.12.10
Rank:
Newbie
Posted on 22-12-10 04:29
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.
Author

RE: Need value of windows constants for Python

fuser
Member



Posts: 959
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
HBH Guru
Posted on 23-12-10 03:42
good find. I haven't done any py coding lately, but at least you managed to find something.










Telling modern Internet users to stop whining is like telling them to stop breathing — it seems unrealistic and inhumane. Paul Lutus

catinthecpu@hotmail.com
Author

RE: Need value of windows constants for Python

j4m32
Member

Posts: 81
Location:
Joined: 01.05.10
Rank:
God
Posted on 23-12-10 22:51
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,
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.