ReactOS  0.4.15-dev-1152-g6c94e4f
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

 DWORD (APIENTRY *fpLpkTabbedTextOut)(LPVOID
 
 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

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

Typedef Documentation

◆ LPK_LPEDITCONTROL_LIST

◆ PLPK_LPEDITCONTROL_LIST

◆ PUSER32_INTERN_INITIALIZEHOOKS

◆ USER32_INTERN_INITIALIZEHOOKS

Function Documentation

◆ DWORD()

DWORD ( APIENTRY fpLpkTabbedTextOut)

Referenced by Test_InitializeLpkHooks().

◆ 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 }
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
int Count_myLpkDrawTextEx

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 }
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
int Count_myLpkPSMTextOut
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706

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 }
int Count_myLpkTabbedTextOut
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706

Referenced by Test_InitializeLpkHooks().

◆ PLPK_LPEDITCONTROL_LIST()

PLPK_LPEDITCONTROL_LIST ( APIENTRY fpLpkEditControl)

◆ 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 }
#define LoadLibrary
Definition: winbase.h:3702
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)
smooth NULL
Definition: ftsmooth.c:416
#define VOID
Definition: acefi.h:82
DWORD(APIENTRY *fpLpkTabbedTextOut)(LPVOID
VOID WINAPI InitializeLpkHooks(PUSER32_INTERN_INITIALIZEHOOKS)
#define ok(value,...)
Definition: atltest.h:57
DWORD myLpkPSMTextOut(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6)
void setup(char *serport, int baud)
Definition: gdblib.c:169
DWORD myLpkDrawTextEx(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5, LPVOID x6, LPVOID x7, LPVOID x8, LPVOID x9, LPVOID x10)
#define GetProcAddress(x, y)
Definition: compat.h:501
#define APIENTRY
Definition: api.h:79
struct _LPK_LPEDITCONTROL_LIST * PLPK_LPEDITCONTROL_LIST

Referenced by START_TEST().

Variable Documentation

◆ Count_myLpkDrawTextEx

int Count_myLpkDrawTextEx = 0

Definition at line 36 of file InitializeLpkHooks.c.

Referenced by myLpkDrawTextEx().

◆ Count_myLpkPSMTextOut

int Count_myLpkPSMTextOut = 0

Definition at line 35 of file InitializeLpkHooks.c.

Referenced by myLpkPSMTextOut().

◆ Count_myLpkTabbedTextOut

int Count_myLpkTabbedTextOut = 0

Definition at line 34 of file InitializeLpkHooks.c.

Referenced by myLpkTabbedTextOut().

◆ LPVOID

Definition at line 29 of file InitializeLpkHooks.c.

Referenced by Test_InitializeLpkHooks().