name15 Posted February 8, 2010 Share Posted February 8, 2010 i am try use this dllcall () function but it not work $Handle = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", "PROCESS_ALL_ACCESS", "bool", "FALSE", "dword", @AutoItPID) MsgBox(0,$Handle,$Handle&@LF&$Handle) Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 8, 2010 Share Posted February 8, 2010 "PROCESS_ALL_ACCESS" is a string not the required dword, you mistook a variable name for the actual value. "FALSE" is also a string not a bool type, you mistook it for the keyword False. And the return from a DllCall() is an array: Global Const $PROCESS_ALL_ACCESS = 0x001F0FFF $Handle = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $PROCESS_ALL_ACCESS, "bool", False, "dword", @AutoItPID) MsgBox(64, "Handle", "Handle = " & $Handle[0]) Read the help file under DllCall() a few more times. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
name15 Posted February 12, 2010 Author Share Posted February 12, 2010 thank Link to comment Share on other sites More sharing options...
name15 Posted February 12, 2010 Author Share Posted February 12, 2010 how can i get PROCESS_ALL_ACCESS = 0x001F0FFF Link to comment Share on other sites More sharing options...
water Posted February 12, 2010 Share Posted February 12, 2010 Have a look here. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 12, 2010 Share Posted February 12, 2010 how can i get PROCESS_ALL_ACCESS = 0x001F0FFFWhat do you mean by "get"? If you mean where did I find that value, either the forum search or Google should have turned it up. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now