ReactOS 0.4.15-dev-7712-gbbbcd8e
NtUserCallOneParam.c File Reference
#include "../win32nt.h"
Include dependency graph for NtUserCallOneParam.c:

Go to the source code of this file.

Functions

void Test_OneParamRoutine_BeginDeferWindowPos (void)
 
void Test_OneParamRoutine_WindowFromDC (void)
 
void Test_OneParamRoutine_CreateEmptyCurObject (void)
 
void Test_OneParamRoutine_MapDesktopObject (void)
 
void Test_OneParamRoutine_SwapMouseButtons (void)
 
 START_TEST (NtUserCallOneParam)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtUserCallOneParam  )

Definition at line 89 of file NtUserCallOneParam.c.

90{
93 Test_OneParamRoutine_CreateEmptyCurObject(); /* XP/2k3 : 0x21, vista 0x25 */
96}
void Test_OneParamRoutine_WindowFromDC(void)
void Test_OneParamRoutine_CreateEmptyCurObject(void)
void Test_OneParamRoutine_BeginDeferWindowPos(void)
void Test_OneParamRoutine_MapDesktopObject(void)
void Test_OneParamRoutine_SwapMouseButtons(void)

◆ Test_OneParamRoutine_BeginDeferWindowPos()

void Test_OneParamRoutine_BeginDeferWindowPos ( void  )

Definition at line 13 of file NtUserCallOneParam.c.

14{
15 HDWP hWinPosInfo;
16
17 hWinPosInfo = (HDWP)NtUserCallOneParam(5, 0x1e);
18 TEST(hWinPosInfo != 0);
19 TEST(EndDeferWindowPos(hWinPosInfo) != 0);
20
21}
DWORD_PTR NTAPI NtUserCallOneParam(DWORD_PTR Param, DWORD Routine)
Definition: simplecall.c:153
#define TEST(x)
Definition: precomp.h:20
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)

Referenced by START_TEST().

◆ Test_OneParamRoutine_CreateEmptyCurObject()

void Test_OneParamRoutine_CreateEmptyCurObject ( void  )

Definition at line 37 of file NtUserCallOneParam.c.

38{
39 HICON hIcon ;
40
41 /* Test 0 */
43 TEST(hIcon != NULL);
44
46
47 /* Test Garbage */
49 TEST(hIcon != NULL);
50
51 TEST(NtUserDestroyCursor(hIcon, 0xbaadf00d) == TRUE);
52
53}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
BOOL NTAPI NtUserDestroyCursor(_In_ HANDLE Handle, _In_ BOOL bForce)
Definition: cursoricon.c:789
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
#define _ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT
Definition: w32knapi.h:62

Referenced by START_TEST().

◆ Test_OneParamRoutine_MapDesktopObject()

void Test_OneParamRoutine_MapDesktopObject ( void  )

Definition at line 56 of file NtUserCallOneParam.c.

57{
59 HWND hWnd;
60 HMENU hMenu;
61
64 TEST(pObject > 0);
65 TEST(pObject < 0x80000000);
66
67 hMenu = CreateMenu();
69 DestroyMenu(hMenu);
70 TEST(pObject > 0);
71 TEST(pObject < 0x80000000);
72
73}
HWND hWnd
Definition: settings.c:17
unsigned long DWORD
Definition: ntddk_ex.h:95
FxObject * pObject
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define _ONEPARAM_ROUTINE_MAPDEKTOPOBJECT
Definition: w32knapi.h:63
HMENU WINAPI CreateMenu(void)
Definition: menu.c:829
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:656
BOOL WINAPI DestroyMenu(_In_ HMENU)

Referenced by START_TEST().

◆ Test_OneParamRoutine_SwapMouseButtons()

void Test_OneParamRoutine_SwapMouseButtons ( void  )

Definition at line 76 of file NtUserCallOneParam.c.

77{
78 BOOL bInverse;
79
82 TEST(bInverse == TRUE);
84 TEST(bInverse == FALSE);
85
86 // TODO: test other values
87}
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define BOOL
Definition: nt_native.h:43
#define _ONEPARAM_ROUTINE_SWAPMOUSEBUTTON
Definition: w32knapi.h:64

Referenced by START_TEST().

◆ Test_OneParamRoutine_WindowFromDC()

void Test_OneParamRoutine_WindowFromDC ( void  )

Definition at line 24 of file NtUserCallOneParam.c.

25{
26 HDC hDC = GetDC(NULL);
27 HWND hWnd;
28
30 TEST(hWnd != 0);
33
34}
static HDC hDC
Definition: 3dtext.c:33
HANDLE HWND
Definition: compat.h:19
static HDC
Definition: imagelist.c:92
BOOL WINAPI IsWindow(_In_opt_ HWND)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by START_TEST().