#include <windows.h>
#include <stdio.h>
#include <ndk/ntndk.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ NTOS_MODE_USER
◆ UNICODE
◆ WIN32_NO_STATUS
◆ main()
Definition at line 33 of file suspend.c.
34{
38
40
43 0x1000,
46 0,
48
50 {
51 printf(
"Error: could not create thread ...\n");
53 }
54
56
58
59 for(;;)
60 {
64 {
65#if defined(_M_IX86)
67#elif defined(_M_AMD64)
69#endif
70 printf(
"Calling resumethread ... \n");
72 }
73 }
74
76 return(0);
77}
VOID WINAPI ExitProcess(IN UINT uExitCode)
DWORD WINAPI ResumeThread(IN HANDLE hThread)
DWORD WINAPI SuspendThread(IN HANDLE hThread)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
BOOL WINAPI GetThreadContext(IN HANDLE hThread, OUT LPCONTEXT lpContext)
GLint GLint GLint GLint GLint x
static NTSTATUS WINAPI thread_1(PVOID Param)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
◆ thread_1()
Definition at line 15 of file suspend.c.
16{
18
19 for(;;)
20 {
23 {
24 printf(
"I should have been suspended for years :-)\n");
28 }
29 }
30}
GLint GLint GLint GLint GLint GLint y
Referenced by main().