ReactOS 0.4.15-dev-8241-g63935f8
InitializeLpkHooks.c File Reference
#include "precomp.h"
Include dependency graph for InitializeLpkHooks.c:

Go to the source code of this file.

Classes

struct  _LPK_LPEDITCONTROL_LIST
 
struct  _USER32_INTERN_INITIALIZEHOOKS
 

Typedefs

typedef struct _LPK_LPEDITCONTROL_LIST LPK_LPEDITCONTROL_LIST
 
typedef struct _LPK_LPEDITCONTROL_LISTPLPK_LPEDITCONTROL_LIST
 
typedef struct _USER32_INTERN_INITIALIZEHOOKS USER32_INTERN_INITIALIZEHOOKS
 
typedef struct _USER32_INTERN_INITIALIZEHOOKSPUSER32_INTERN_INITIALIZEHOOKS
 

Functions

static DWORD (APIENTRY *fpLpkTabbedTextOut)(LPVOID
 
static PLPK_LPEDITCONTROL_LIST (APIENTRY *fpLpkEditControl)()
 
DWORD WINAPI myLpkTabbedTextOut (LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6, LPVOID x7, LPVOID x8, LPVOID x9, LPVOID x10, LPVOID x11, LPVOID x12)
 
DWORD myLpkPSMTextOut (LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6)
 
DWORD myLpkDrawTextEx (LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6, LPVOID x7, LPVOID x8, LPVOID x9, LPVOID x10)
 
VOID WINAPI InitializeLpkHooks (PUSER32_INTERN_INITIALIZEHOOKS)
 
void Test_InitializeLpkHooks ()
 
 START_TEST (InitializeLpkHooks)
 

Variables

static LPVOID
 
static int Count_myLpkTabbedTextOut = 0
 
static int Count_myLpkPSMTextOut = 0
 
static int Count_myLpkDrawTextEx = 0
 

Typedef Documentation

◆ LPK_LPEDITCONTROL_LIST

◆ PLPK_LPEDITCONTROL_LIST

◆ PUSER32_INTERN_INITIALIZEHOOKS

◆ USER32_INTERN_INITIALIZEHOOKS

Function Documentation

◆ DWORD()

static DWORD ( APIENTRY fpLpkTabbedTextOut)
static

◆ InitializeLpkHooks()

◆ myLpkDrawTextEx()

DWORD myLpkDrawTextEx ( LPVOID  x1,
LPVOID  x2,
LPVOID  x3,
LPVOID  x4,
LPVOID  x5,
LPVOID  x6,
LPVOID  x7,
LPVOID  x8,
LPVOID  x9,
LPVOID  x10 
)

Definition at line 51 of file InitializeLpkHooks.c.

52{
54 return fpLpkDrawTextEx(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10);
55}
static int Count_myLpkDrawTextEx
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3710
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3708

Referenced by Test_InitializeLpkHooks().

◆ myLpkPSMTextOut()

DWORD myLpkPSMTextOut ( LPVOID  x1,
LPVOID  x2,
LPVOID  x3,
LPVOID  x4,
LPVOID  x5,
LPVOID  x6 
)

Definition at line 45 of file InitializeLpkHooks.c.

46{
48 return fpLpkPSMTextOut ( x1, x2, x3, x4, x5, x6);
49}
static int Count_myLpkPSMTextOut

Referenced by Test_InitializeLpkHooks().

◆ myLpkTabbedTextOut()

DWORD WINAPI myLpkTabbedTextOut ( LPVOID  x1,
LPVOID  x2,
LPVOID  x3,
LPVOID  x4,
LPVOID  x5,
LPVOID  x6,
LPVOID  x7,
LPVOID  x8,
LPVOID  x9,
LPVOID  x10,
LPVOID  x11,
LPVOID  x12 
)

Definition at line 38 of file InitializeLpkHooks.c.

40{
42 return fpLpkTabbedTextOut(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12);
43}
static int Count_myLpkTabbedTextOut

Referenced by Test_InitializeLpkHooks().

◆ PLPK_LPEDITCONTROL_LIST()

static PLPK_LPEDITCONTROL_LIST ( APIENTRY fpLpkEditControl)
static

◆ START_TEST()

START_TEST ( InitializeLpkHooks  )

Definition at line 103 of file InitializeLpkHooks.c.

104{
106}
void Test_InitializeLpkHooks()

◆ Test_InitializeLpkHooks()

void Test_InitializeLpkHooks ( )

Definition at line 68 of file InitializeLpkHooks.c.

69{
71 HMODULE lib = LoadLibrary("LPK.DLL");
72
73 ok(lib != NULL, "lib = 0\n");
74 if (lib != NULL)
75 {
76 fpLpkTabbedTextOut = (DWORD (APIENTRY *) (LPVOID,LPVOID,LPVOID,LPVOID,LPVOID, LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID)) GetProcAddress(lib, "LpkTabbedTextOut");
77 fpLpkPSMTextOut = (DWORD (APIENTRY *) (LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID)) GetProcAddress(lib, "fpLpkPSMTextOut");
78 fpLpkDrawTextEx = (DWORD (APIENTRY *) (LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID,LPVOID)) GetProcAddress(lib, "LpkDrawTextEx");
79 fpLpkEditControl = (PLPK_LPEDITCONTROL_LIST (APIENTRY *) (VOID)) GetProcAddress(lib, "LpkEditControl");
80
81 setup.fpLpkTabbedTextOut = myLpkTabbedTextOut;
82 setup.fpLpkPSMTextOut = myLpkPSMTextOut;
83 setup.fpLpkDrawTextEx = myLpkDrawTextEx;
84
85 /* we have not add any test to this api */
86 setup.fpListLpkEditControl = (PLPK_LPEDITCONTROL_LIST)fpLpkEditControl;
87
88 /* use our own api that we just made */
90
91 /* FIXME add test now */
92
93 /* restore */
94 setup.fpLpkTabbedTextOut = fpLpkTabbedTextOut;
95 setup.fpLpkPSMTextOut = fpLpkPSMTextOut;
96 setup.fpLpkDrawTextEx = fpLpkDrawTextEx;
97 setup.fpListLpkEditControl = (PLPK_LPEDITCONTROL_LIST)fpLpkEditControl;
99 }
100
101}
DWORD myLpkPSMTextOut(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6)
DWORD myLpkDrawTextEx(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6, LPVOID x7, LPVOID x8, LPVOID x9, LPVOID x10)
struct _LPK_LPEDITCONTROL_LIST * PLPK_LPEDITCONTROL_LIST
static LPVOID
VOID WINAPI InitializeLpkHooks(PUSER32_INTERN_INITIALIZEHOOKS)
DWORD WINAPI myLpkTabbedTextOut(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6, LPVOID x7, LPVOID x8, LPVOID x9, LPVOID x10, LPVOID x11, LPVOID x12)
#define VOID
Definition: acefi.h:82
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define APIENTRY
Definition: api.h:79
#define GetProcAddress(x, y)
Definition: compat.h:753
static BOOL setup(void)
Definition: enum_files.c:97
#define DWORD
Definition: nt_native.h:44
#define LoadLibrary
Definition: winbase.h:3862

Referenced by START_TEST().

Variable Documentation

◆ Count_myLpkDrawTextEx

int Count_myLpkDrawTextEx = 0
static

Definition at line 36 of file InitializeLpkHooks.c.

Referenced by myLpkDrawTextEx().

◆ Count_myLpkPSMTextOut

int Count_myLpkPSMTextOut = 0
static

Definition at line 35 of file InitializeLpkHooks.c.

Referenced by myLpkPSMTextOut().

◆ Count_myLpkTabbedTextOut

int Count_myLpkTabbedTextOut = 0
static

Definition at line 34 of file InitializeLpkHooks.c.

Referenced by myLpkTabbedTextOut().

◆ LPVOID

Definition at line 29 of file InitializeLpkHooks.c.

Referenced by Test_InitializeLpkHooks().