[AutoIt]Get current process hWnd 10-31-2011, 10:14 PM
#1
Code:
Func _CurProcHWND()
;by 1234hotmaster
$CurrentProcHWND = DllCall("kernel32.dll", "hwnd", "GetCurrentProcess")
$Ret = DllCall('kernel32.dll', 'bool', 'DuplicateHandle', 'ptr', $CurrentProcHWND[0], 'ptr', $CurrentProcHWND[0], 'ptr', $CurrentProcHWND[0], 'ptr*', 0, 'dword', 0, 'bool', 0, 'dword', 2)
Return $Ret[4]
EndFuncPierce the life fibers with your drill.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)