Skip to content

Instantly share code, notes, and snippets.

@piscisaureus piscisaureus/test.c
Created Apr 23, 2012

Embed
What would you like to do?
#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
You can’t perform that action at this time.