Created
April 23, 2012 18:31
-
-
Save piscisaureus/2472912 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <assert.h> | |
#include <stdio.h> | |
#include <Windows.h> | |
void __stdcall apc(ULONG_PTR context) { | |
printf("APC jeuj\n"); | |
} | |
int main() { | |
HANDLE e; | |
e = CreateEvent(NULL, TRUE, TRUE, NULL); | |
QueueUserAPC(apc, GetCurrentThread(), 42); | |
WaitForSingleObjectEx(e, INFINITE, TRUE); | |
printf("WaitForSingleObjectEx returned\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment