kernel32/tests: Get rid of unneeded function typedefs.

This commit is contained in:
Francois Gouget 2012-06-15 15:20:24 +02:00 committed by Alexandre Julliard
parent 7f0cfac5cc
commit 74605efe74
1 changed files with 4 additions and 7 deletions

View File

@ -23,27 +23,24 @@
#include "wine/test.h"
#include "winbase.h"
typedef HANDLE (WINAPI *fnCreateWaitableTimerA)( SECURITY_ATTRIBUTES*, BOOL, LPSTR );
typedef BOOL (WINAPI *fnSetWaitableTimer)(HANDLE, LARGE_INTEGER*, LONG, PTIMERAPCROUTINE, LPVOID, BOOL);
static void test_timer(void)
{
HANDLE (WINAPI *pCreateWaitableTimerA)( SECURITY_ATTRIBUTES*, BOOL, LPSTR );
BOOL (WINAPI *pSetWaitableTimer)(HANDLE, LARGE_INTEGER*, LONG, PTIMERAPCROUTINE, LPVOID, BOOL);
HMODULE hker = GetModuleHandle("kernel32");
fnCreateWaitableTimerA pCreateWaitableTimerA;
fnSetWaitableTimer pSetWaitableTimer;
HANDLE handle;
BOOL r;
LARGE_INTEGER due;
pCreateWaitableTimerA = (fnCreateWaitableTimerA) GetProcAddress( hker, "CreateWaitableTimerA");
pCreateWaitableTimerA = (void*)GetProcAddress( hker, "CreateWaitableTimerA");
if( !pCreateWaitableTimerA )
{
win_skip("CreateWaitableTimerA is not available\n");
return;
}
pSetWaitableTimer = (fnSetWaitableTimer) GetProcAddress( hker, "SetWaitableTimer");
pSetWaitableTimer = (void*)GetProcAddress( hker, "SetWaitableTimer");
if( !pSetWaitableTimer )
{
win_skip("SetWaitableTimer is not available\n");