2015-12-28 20:31:10 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* PURPOSE: Test for NtUserCallNoParam
|
|
|
|
* PROGRAMMERS:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <win32nt.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_CreateMenu(void) /* 0 */
|
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
HMENU hMenu;
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
hMenu = (HMENU)NtUserCallNoParam(_NOPARAM_ROUTINE_CREATEMENU);
|
|
|
|
TEST(IsMenu(hMenu) == TRUE);
|
|
|
|
DestroyMenu(hMenu);
|
2015-12-28 20:31:10 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_CreatePopupMenu(void) /* 1 */
|
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
HMENU hMenu;
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
hMenu = (HMENU)NtUserCallNoParam(_NOPARAM_ROUTINE_CREATEMENUPOPUP);
|
|
|
|
TEST(IsMenu(hMenu) == TRUE);
|
|
|
|
DestroyMenu(hMenu);
|
2015-12-28 20:31:10 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_DisableProcessWindowsGhosting(void) /* 2 */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_ClearWakeMask(void) /* 3 */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_AllowForegroundActivation(void) /* 4 */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_DestroyCaret(void) /* 5 */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_NoParamRoutine_LoadUserApiHook(void) /* 0x1d */
|
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
//DWORD dwRet;
|
|
|
|
/* dwRet = */NtUserCallNoParam(_NOPARAM_ROUTINE_LOADUSERAPIHOOK);
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
// TEST(dwRet != 0);
|
2015-12-28 20:31:10 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
START_TEST(NtUserCallNoParam)
|
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
Test_NoParamRoutine_CreateMenu();
|
|
|
|
Test_NoParamRoutine_CreatePopupMenu();
|
|
|
|
Test_NoParamRoutine_LoadUserApiHook(); /* 0x1d */
|
2015-12-28 20:31:10 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
return APISTATUS_NORMAL;
|
2015-12-28 20:31:10 +00:00
|
|
|
}
|