name22

CreateTimerQueueTimer

Nov 17th, 2012
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; -Author: name22 (www.autoit.de)
  2.  
  3. $hDll_Kernel32 = DllOpen("kernel32.dll")
  4.  
  5. $hCallBack = DllCallbackRegister("_Callback", "NONE", "LPARAM;INT")
  6. DllCall($hDll_Kernel32, "INT", "CreateTimerQueueTimer", "HWND*", 0, "HWND", 0, "PTR", DllCallbackGetPtr($hCallBack), "INT", 1337, "DWORD", 5, "DWORD", 0, "ULONG", 0)
  7. ConsoleWrite("Before Callback" & @CRLF)
  8. Sleep(100)
  9. ConsoleWrite("After Callback" & @CRLF)
  10.  
  11. DllClose($hDll_Kernel32)
  12. DllCallbackFree($hCallBack)
  13.  
  14. Func _Callback($lParam, $TimerOrWaitFired)
  15.     ConsoleWrite("Callback Parameter: " & $lParam & @CRLF)
  16. EndFunc
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×