ReactOS 0.4.15-dev-5666-gc548b97
htmlhelp.c File Reference
#include "calc.h"
Include dependency graph for htmlhelp.c:

Go to the source code of this file.

Macros

#define GET_CB(name)
 

Functions

static HWND WINAPI dummy_HtmlHelpA (HWND hWnd, LPCSTR pszFile, UINT uCommand, DWORD dwData)
 
static HWND WINAPI dummy_HtmlHelpW (HWND hWnd, LPCWSTR pszFile, UINT uCommand, DWORD dwData)
 
void HtmlHelp_Start (HINSTANCE hInstance)
 
void HtmlHelp_Stop (void)
 

Variables

type_HtmlHelpA calc_HtmlHelpA = dummy_HtmlHelpA
 
type_HtmlHelpW calc_HtmlHelpW = dummy_HtmlHelpW
 
static HMODULE hHtmlHelp
 

Macro Definition Documentation

◆ GET_CB

#define GET_CB (   name)
Value:
calc_##name = (type_##name)GetProcAddress(hHtmlHelp, #name); \
if (calc_##name == NULL) calc_##name = dummy_##name;
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
static HMODULE hHtmlHelp
Definition: htmlhelp.c:36
Definition: name.c:39

Definition at line 23 of file htmlhelp.c.

Function Documentation

◆ dummy_HtmlHelpA()

static HWND WINAPI dummy_HtmlHelpA ( HWND  hWnd,
LPCSTR  pszFile,
UINT  uCommand,
DWORD  dwData 
)
static

Definition at line 39 of file htmlhelp.c.

40{
41 return NULL;
42}

◆ dummy_HtmlHelpW()

static HWND WINAPI dummy_HtmlHelpW ( HWND  hWnd,
LPCWSTR  pszFile,
UINT  uCommand,
DWORD  dwData 
)
static

Definition at line 45 of file htmlhelp.c.

46{
47 return NULL;
48}

◆ HtmlHelp_Start()

void HtmlHelp_Start ( HINSTANCE  hInstance)

Definition at line 50 of file htmlhelp.c.

51{
52 hHtmlHelp = LoadLibrary(_T("HHCTRL.OCX"));
53 if (hHtmlHelp == NULL)
54 return;
55
58}
HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR data)
Definition: hhctrl.c:157
HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD_PTR data)
Definition: hhctrl.c:421
#define GET_CB(name)
Definition: htmlhelp.c:23
#define _T(x)
Definition: vfdio.h:22
#define LoadLibrary
Definition: winbase.h:3733

Referenced by _tWinMain().

◆ HtmlHelp_Stop()

void HtmlHelp_Stop ( void  )

Definition at line 60 of file htmlhelp.c.

61{
62 if(hHtmlHelp == NULL)
63 return;
64
67}
#define FreeLibrary(x)
Definition: compat.h:748

Referenced by _tWinMain().

Variable Documentation

◆ calc_HtmlHelpA

type_HtmlHelpA calc_HtmlHelpA = dummy_HtmlHelpA

Definition at line 33 of file htmlhelp.c.

◆ calc_HtmlHelpW

type_HtmlHelpW calc_HtmlHelpW = dummy_HtmlHelpW

Definition at line 34 of file htmlhelp.c.

◆ hHtmlHelp

HMODULE hHtmlHelp
static

Definition at line 36 of file htmlhelp.c.

Referenced by HtmlHelp_Start(), and HtmlHelp_Stop().