3f14fd1eb0e10b4e84a06381a6a19c18a61463f8
3 #define WIN32_NO_STATUS
8 #define WIN32_NO_STATUS
10 #define COM_NO_WINDOWS_H
11 #define NTOS_MODE_USER
19 #include <shlguid_undoc.h>
22 #include <shlobj_undoc.h>
23 #include <shlwapi_undoc.h>
29 #include <wine/debug.h>
30 #include <wine/unicode.h>
32 extern const GUID CLSID_SysTray
;
37 Win32DbgPrint(const char *filename
, int line
, const char *lpFormat
, ...)
45 fname
= strrchr(filename
, '\\');
48 fname
= strrchr(filename
, '/');
56 szMsgStart
= szMsg
+ sprintf(szMsg
, "[%10lu] %s:%d: ", GetTickCount(), fname
, line
);
58 va_start(vl
, lpFormat
);
59 uRet
= (ULONG
) vsprintf(szMsgStart
, lpFormat
, vl
);
62 OutputDebugStringA(szMsg
);
67 #define DbgPrint(fmt, ...) \
68 Win32DbgPrint(__FILE__, __LINE__, fmt, ##__VA_ARGS__)
71 #define FAILED_UNEXPECTEDLY(hr) (FAILED(hr) && (DbgPrint("Unexpected failure %08x.\n", hr), TRUE))
73 #define FAILED_UNEXPECTEDLY(hr) FAILED(hr)