61#define X(x) case x: return #x
95 default:
return "???";
102 static const WCHAR helpW[] = {
'\\',
'h',
'e',
'l',
'p',
'\\',0};
103 static const WCHAR delimW[] = {
':',
':',0};
104 static const WCHAR delim2W[] = {
'>',0};
161 TRACE(
"(%p, %s, command=%s, data=%lx)\n",
187 index = default_index;
202 if(!
info->WinType.pszType)
214 static const WCHAR delimW[] = {
':',
':',0};
221 FIXME(
"Opening a CHM file in the context of another is not supported.\n");
253 FIXME(
"Should display search specified by HH_FTS_QUERY structure.\n");
257 memset(&nmhdr, 0,
sizeof(nmhdr));
262 return info->WinType.hwndHelp;
288 if(!
info->WinType.pszType)
297 return info->WinType.hwndHelp;
304 return info->WinType.hwndHelp;
311 FIXME(
"HH_PRETRANSLATEMESSAGE unimplemented\n");
373 *wintype =
info->WinType;
436 FIXME(
"structures not handled yet\n");
503 int len, buflen, mapid = -1;
515 while(*szCmdLine ==
'-')
537 FIXME(
"Unhandled HTML Help command line parameter! (%.*s)\n", (
int)(
space-szCmdLine), szCmdLine);
543 if (*szCmdLine ==
'\"')
544 endq =
strchr(++szCmdLine,
'\"');
547 len = endq - szCmdLine;
570 ERR(
"Failed to open HTML Help file '%s'.\n", szCmdLine);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static WCHAR * strdupW(const WCHAR *src)
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
LPWSTR FindContextAlias(CHMInfo *chm, DWORD index)
LPCWSTR skip_schema(LPCWSTR url)
void MergeChmProperties(HH_WINTYPEW *src, HHInfo *info, BOOL override)
static WCHAR * strdupAtoW(const char *str)
#define DLL_PROCESS_ATTACH
#define MultiByteToWideChar
void wintype_stringsW_free(struct wintype_stringsW *stringsW)
HHInfo * CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
void wintype_stringsA_free(struct wintype_stringsA *stringsA)
void ReleaseHelpViewer(HHInfo *info)
BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
void UpdateHelpWindow(HHInfo *info)
BOOL NavigateToUrl(HHInfo *info, LPCWSTR surl)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpvReserved)
HRESULT WINAPI DllRegisterServer(void)
static BOOL resolve_filename(const WCHAR *env_filename, WCHAR *fullname, DWORD buflen, WCHAR **index, WCHAR **window)
static void wintypeWtoA(const HH_WINTYPEW *wdata, HH_WINTYPEA *data, struct wintype_stringsA *stringsA)
HRESULT WINAPI DllUnregisterServer(void)
HINSTANCE hhctrl_hinstance
HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR data)
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
static const char * command_to_string(UINT command)
HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD_PTR data)
static void wintypeAtoW(const HH_WINTYPEA *data, HH_WINTYPEW *wdata, struct wintype_stringsW *stringsW)
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
static LPSTR strdupWtoA(LPCWSTR str)
static const WCHAR helpW[]
#define HH_RESET_IT_FILTER
#define HH_SET_EXCLUSIVE_FILTER
#define HH_ENUM_CATEGORY_IT
#define HH_SET_INCLUSIVE_FILTER
#define HH_GET_LAST_ERROR
#define HH_TP_HELP_WM_HELP
#define HH_PRETRANSLATEMESSAGE
#define HH_SAFE_DISPLAY_TOPIC
#define HH_DISPLAY_TEXT_POPUP
#define HH_ENUM_INFO_TYPE
#define HH_DISPLAY_SEARCH
#define HH_SET_GLOBAL_PROPERTY
#define HH_KEYWORD_LOOKUP
#define HH_TP_HELP_CONTEXTMENU
#define HH_GET_WIN_HANDLE
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
static IN DWORD IN LPVOID lpvReserved
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
#define memcpy(s1, s2, n)
static IHTMLWindow2 * window
static unsigned __int64 next
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define INVALID_FILE_ATTRIBUTES
static HWND find_window()
#define CLASS_E_CLASSNOTAVAILABLE
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
HWND WINAPI GetDesktopWindow(void)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)