name15 0 Report post 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) Share this post Link to post Share on other sites
PsaltyDS 27 Report post 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 Share this post Link to post Share on other sites
name15 0 Report post Posted February 12, 2010 thank Share this post Link to post Share on other sites
name15 0 Report post Posted February 12, 2010 how can i get PROCESS_ALL_ACCESS = 0x001F0FFF Share this post Link to post Share on other sites
water 1,770 Report post Posted February 12, 2010 Have a look here. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example ScriptsExcel - Example Scripts - WikiWord - WikiPowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support Tutorials:ADO - Wiki Share this post Link to post Share on other sites
PsaltyDS 27 Report post 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 Share this post Link to post Share on other sites