FreeRDP/winpr/libwinpr/nt/test/TestNtCurrentTeb.c

22 lines
237 B
C
Raw Normal View History

2013-08-22 18:18:38 +04:00
#include <stdio.h>
#include <winpr/nt.h>
int TestNtCurrentTeb(int argc, char* argv[])
{
2013-09-19 21:50:00 +04:00
#ifndef _WIN32
2013-08-22 18:18:38 +04:00
PTEB teb;
teb = NtCurrentTeb();
if (!teb)
{
printf("NtCurrentTeb() returned NULL\n");
return -1;
}
2013-09-19 21:50:00 +04:00
#endif
2013-08-22 18:18:38 +04:00
return 0;
}