1 /* 2 * PROJECT: ReactOS api tests 3 * LICENSE: GPL - See COPYING in the top level directory 4 * PURPOSE: Test for NtUserCallNoParam 5 * PROGRAMMERS: 6 */ 7 8 #include "../win32nt.h" 9 10 void Test_NoParamRoutine_CreateMenu(void)11Test_NoParamRoutine_CreateMenu(void) /* 0 */ 12 { 13 HMENU hMenu; 14 15 hMenu = (HMENU)NtUserCallNoParam(_NOPARAM_ROUTINE_CREATEMENU); 16 TEST(IsMenu(hMenu) == TRUE); 17 DestroyMenu(hMenu); 18 19 } 20 21 void Test_NoParamRoutine_CreatePopupMenu(void)22Test_NoParamRoutine_CreatePopupMenu(void) /* 1 */ 23 { 24 HMENU hMenu; 25 26 hMenu = (HMENU)NtUserCallNoParam(_NOPARAM_ROUTINE_CREATEMENUPOPUP); 27 TEST(IsMenu(hMenu) == TRUE); 28 DestroyMenu(hMenu); 29 30 } 31 32 void Test_NoParamRoutine_DisableProcessWindowsGhosting(void)33Test_NoParamRoutine_DisableProcessWindowsGhosting(void) /* 2 */ 34 { 35 36 } 37 38 void Test_NoParamRoutine_ClearWakeMask(void)39Test_NoParamRoutine_ClearWakeMask(void) /* 3 */ 40 { 41 42 } 43 44 void Test_NoParamRoutine_AllowForegroundActivation(void)45Test_NoParamRoutine_AllowForegroundActivation(void) /* 4 */ 46 { 47 48 } 49 50 void Test_NoParamRoutine_DestroyCaret(void)51Test_NoParamRoutine_DestroyCaret(void) /* 5 */ 52 { 53 54 } 55 56 void Test_NoParamRoutine_LoadUserApiHook(void)57Test_NoParamRoutine_LoadUserApiHook(void) /* 0x1d */ 58 { 59 //DWORD dwRet; 60 /* dwRet = */NtUserCallNoParam(_NOPARAM_ROUTINE_LOADUSERAPIHOOK); 61 62 // TEST(dwRet != 0); 63 64 } 65 66 START_TEST(NtUserCallNoParam)67START_TEST(NtUserCallNoParam) 68 { 69 Test_NoParamRoutine_CreateMenu(); 70 Test_NoParamRoutine_CreatePopupMenu(); 71 Test_NoParamRoutine_LoadUserApiHook(); /* 0x1d */ 72 73 return APISTATUS_NORMAL; 74 } 75