Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 208 of file hhctrl.c.
{ WCHAR *wfile = NULL, *wdata = NULL; DWORD len; HWND result; if (filename) { len = MultiByteToWideChar( CP_ACP, 0, filename, -1, NULL, 0 ); wfile = heap_alloc(len*sizeof(WCHAR)); MultiByteToWideChar( CP_ACP, 0, filename, -1, wfile, len ); } if (data) { switch(command) { case HH_ALINK_LOOKUP: case HH_DISPLAY_SEARCH: case HH_DISPLAY_TEXT_POPUP: case HH_GET_LAST_ERROR: case HH_GET_WIN_TYPE: case HH_KEYWORD_LOOKUP: case HH_SET_WIN_TYPE: case HH_SYNC: FIXME("structures not handled yet\n"); break; case HH_DISPLAY_INDEX: case HH_DISPLAY_TOPIC: case HH_DISPLAY_TOC: case HH_GET_WIN_HANDLE: case HH_SAFE_DISPLAY_TOPIC: len = MultiByteToWideChar( CP_ACP, 0, (const char*)data, -1, NULL, 0 ); wdata = heap_alloc(len*sizeof(WCHAR)); MultiByteToWideChar( CP_ACP, 0, (const char*)data, -1, wdata, len ); break; case HH_CLOSE_ALL: case HH_HELP_CONTEXT: case HH_INITIALIZE: case HH_PRETRANSLATEMESSAGE: case HH_TP_HELP_CONTEXTMENU: case HH_TP_HELP_WM_HELP: case HH_UNINITIALIZE: /* either scalar or pointer to scalar - do nothing */ break; default: FIXME("Unknown command: %s (%d)\n", command_to_string(command), command); break; } } result = HtmlHelpW( caller, wfile, command, wdata ? (DWORD_PTR)wdata : data ); heap_free(wfile); heap_free(wdata); return result; }