11 static volatile DWORD z;
12 static volatile DWORD x=0;
14 static NTSTATUS STDCALL
24 printf("I should have been suspended for years :-)\n");
27 if(y==3) ExitProcess(0);
33 main(int argc, char *argv[])
39 context.ContextFlags=CONTEXT_CONTROL;
42 thread=CreateThread(NULL,
51 printf("Error: could not create thread ...\n");
57 SuspendThread(thread);
63 if(x>100 && GetThreadContext(thread, &context))
65 printf("EIP: %x\n", context.Eip);
66 printf("Calling resumethread ... \n");