Nikolay Sivov nsivov@codeweavers.com wrote:
+static NTSTATUS (WINAPI *pNtSuspendThread)(HANDLE thread, ULONG *count); +static NTSTATUS (WINAPI *pNtResumeThread)(HANDLE thread, ULONG *count);
...
- pNtSuspendThread = (void *)GetProcAddress( hntdll, "NtSuspendThread" );
- pNtResumeThread = (void *)GetProcAddress( hntdll, "NtResumeThread" );
It would be helpful to actually use them in the test. Also it's would be interesting to create a suspended thread, and perform same kind of tests as with a not suspended one.