11#define WIN32_NO_STATUS
24 throw _com_error(
hr, perrinfo);
64 if (!pSrc)
return NULL;
68 if (cwch == 0)
return NULL;
98 if (!pSrc)
return NULL;
121 szOut[
cb - 1] =
'\0';
void WINAPI _com_issue_errorex(HRESULT hr, IUnknown *punk, REFIID riid)
void WINAPI _com_issue_error(HRESULT hr)
void WINAPI _set_com_error_handler(COM_ERROR_HANDLER *phandler)
void WINAPI COM_ERROR_HANDLER(HRESULT, IErrorInfo *)
void WINAPI _com_raise_error(HRESULT hr, IErrorInfo *perrinfo)
static COM_ERROR_HANDLER * com_error_handler
_variant_t vtMissing(DISP_E_PARAMNOTFOUND, VT_ERROR)
#define WideCharToMultiByte
#define MultiByteToWideChar
HRESULT WINAPI GetErrorInfo(ULONG dwReserved, IErrorInfo **pperrinfo)
HRESULT InterfaceSupportsErrorInfo([in] REFIID riid)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static HMODULE MODULEINFO DWORD cb
BSTR WINAPI ConvertStringToBSTR(const char *pSrc)
char *WINAPI ConvertBSTRToString(BSTR pSrc)
UINT WINAPI SysStringLen(BSTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
DWORD WINAPI GetLastError(void)
#define DISP_E_PARAMNOTFOUND
#define HRESULT_FROM_WIN32(x)