Shut MSVC warnings up
[reactos.git] / reactos / regtests / regtests / regtests.c
1 /*
2 * PROJECT: ReactOS kernel
3 * FILE: regtests/regtests/regtests.c
4 * PURPOSE: Regression testing framework
5 * PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
6 * UPDATE HISTORY:
7 * 23-10-2004 CSH Created
8 */
9 #include <windows.h>
10
11 HMODULE STDCALL
12 _GetModuleHandleA(LPCSTR lpModuleName)
13 {
14 return GetModuleHandleA(lpModuleName);
15 }
16
17 FARPROC STDCALL
18 _GetProcAddress(HMODULE hModule,
19 LPCSTR lpProcName)
20 {
21 return GetProcAddress(hModule, lpProcName);
22 }
23
24 HINSTANCE STDCALL
25 _LoadLibraryA(LPCSTR lpLibFileName)
26 {
27 return LoadLibraryA(lpLibFileName);
28 }
29
30 VOID STDCALL
31 _ExitProcess(UINT uExitCode)
32 {
33 ExitProcess(uExitCode);
34 }
35
36 HANDLE STDCALL
37 _CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes, DWORD dwStackSize,
38 LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter,
39 DWORD dwCreationFlags, LPDWORD lpThreadId)
40 {
41 return CreateThread(lpThreadAttributes, dwStackSize, lpStartAddress,
42 lpParameter, dwCreationFlags, lpThreadId);
43 }
44
45 WINBOOL STDCALL
46 _TerminateThread(HANDLE hThread, DWORD dwExitCode)
47 {
48 return TerminateThread(hThread, dwExitCode);
49 }
50
51 DWORD STDCALL
52 _WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
53 {
54 return WaitForSingleObject(hHandle, dwMilliseconds);
55 }
56
57 DWORD STDCALL
58 _GetLastError()
59 {
60 return GetLastError();
61 }
62
63 VOID STDCALL
64 _CloseHandle(HANDLE handle)
65 {
66 CloseHandle (handle);
67 }
68
69 BOOL STDCALL
70 _GetThreadTimes(HANDLE hThread, LPFILETIME lpCreationTime,
71 LPFILETIME lpExitTime, LPFILETIME lpKernelTime,
72 LPFILETIME lpUserTime)
73 {
74 return GetThreadTimes(hThread, lpCreationTime, lpExitTime,
75 lpKernelTime, lpUserTime);
76 }
77
78 BOOL STDCALL
79 _SetPriorityClass(HANDLE hProcess, DWORD dwPriorityClass)
80 {
81 return SetPriorityClass(hProcess, dwPriorityClass);
82 }
83
84 BOOL STDCALL
85 _SetThreadPriority(HANDLE hThread, int nPriority)
86 {
87 return SetThreadPriority(hThread, nPriority);
88 }
89
90 HANDLE STDCALL
91 _GetCurrentProcess()
92 {
93 return GetCurrentProcess();
94 }
95
96 HANDLE STDCALL
97 _GetCurrentThread()
98 {
99 return GetCurrentThread();
100 }
101
102 VOID STDCALL
103 _Sleep(DWORD dwMilliseconds)
104 {
105 return Sleep(dwMilliseconds);
106 }