ReactOS  0.4.14-dev-297-g23e575c
gdihv.c File Reference
#include "gdihv.h"
Include dependency graph for gdihv.c:

Go to the source code of this file.

Functions

static PGDI_TABLE_ENTRY MyGdiQueryTable ()
 
int WINAPI _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument, int nStyle)
 

Variables

HINSTANCE g_hInstance
 
PGDI_TABLE_ENTRY GdiHandleTable = 0
 

Function Documentation

◆ _tWinMain()

int WINAPI _tWinMain ( HINSTANCE  hThisInstance,
HINSTANCE  hPrevInstance,
LPTSTR  lpszArgument,
int  nStyle 
)

Definition at line 37 of file gdihv.c.

42 {
43  g_hInstance = hThisInstance;
44 
46 
48 
50 
51  /* The program return value is 0 */
52  return 0;
53 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define IDD_MAINWND
Definition: resource.h:2
PGDI_TABLE_ENTRY GdiHandleTable
Definition: gdihv.c:26
static PGDI_TABLE_ENTRY MyGdiQueryTable()
Definition: gdihv.c:30
#define DialogBoxParam
Definition: winuser.h:5665
INT_PTR CALLBACK MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: mainwnd.c:81
HINSTANCE g_hInstance
Definition: gdihv.c:25
#define HWND_DESKTOP
Definition: winuser.h:1195
VOID WINAPI InitCommonControls(void)
Definition: commctrl.c:863

◆ MyGdiQueryTable()

static PGDI_TABLE_ENTRY MyGdiQueryTable ( )
static

Definition at line 30 of file gdihv.c.

31 {
32  PTEB pTeb = NtCurrentTeb();
33  PPEB pPeb = pTeb->ProcessEnvironmentBlock;
34  return pPeb->GdiSharedHandleTable;
35 }
PPEB ProcessEnvironmentBlock
Definition: ntddk_ex.h:337
PVOID GdiSharedHandleTable
Definition: ntddk_ex.h:292
Definition: compat.h:484
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420

Referenced by _tWinMain().

Variable Documentation

◆ g_hInstance

HINSTANCE g_hInstance

Definition at line 25 of file gdihv.c.

Referenced by _tWinMain().

◆ GdiHandleTable

PGDI_TABLE_ENTRY GdiHandleTable = 0

Definition at line 26 of file gdihv.c.

Referenced by _tWinMain().