Follow us on Twitter!
I'd prefer to die standing, than to live on my knees - Che Guevara
Friday, April 18, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 17
Guests Online: 17
Members Online: 0

Registered Members: 82822
Newest Member: TheBunter
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Need value of windows constants for Python


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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 on 22-12-10 03:38
Author

RE: Need value of windows constants for Python


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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: 960
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
Mad User
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.


img.userbarz.com/51/10006.png
img.userbarz.com/146/29144.gif
img.userbarz.com/99/19602.jpg
img.userbarz.com/4/600.png
img.userbarz.com/45/8814.gif
img360.imageshack.us/img360/9231/bfbarlr0.jpg
[url=http://userbarz.com/][img]ht
catinthecpu@hotmail.com
Author

RE: Need value of windows constants for Python

j4m32
Member

Your avatar

Posts: 81
Location:
Joined: 01.05.10
Rank:
Newbie
Posted on 23-12-10 22:51
Not a bad idea Smile

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,