2007-11-04 03:34:51 +00:00
|
|
|
#ifndef _WIN32
|
|
|
|
|
|
|
|
#define WINAPI
|
2008-02-28 16:50:26 +00:00
|
|
|
#ifndef APIENTRY
|
|
|
|
#define APIENTRY
|
|
|
|
#endif
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
typedef void* HMODULE;
|
|
|
|
typedef void* LPVOID;
|
|
|
|
typedef char* LPCSTR;
|
|
|
|
typedef char* LPSTR;
|
|
|
|
|
|
|
|
#define IsEqualGUID(a,b) (memcmp(&a,&b,sizeof(a)) == 0)
|
|
|
|
|
|
|
|
#ifndef GUID_DEFINED
|
|
|
|
#define GUID_DEFINED
|
|
|
|
typedef struct _GUID
|
|
|
|
{
|
|
|
|
unsigned long Data1;
|
|
|
|
unsigned short Data2;
|
|
|
|
unsigned short Data3;
|
|
|
|
unsigned char Data4[8];
|
|
|
|
} GUID;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
#ifndef _REFGUID_DEFINED
|
|
|
|
#define _REFGUID_DEFINED
|
|
|
|
#define REFGUID const GUID &
|
|
|
|
#endif // !_REFGUID_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Message box constants
|
|
|
|
#define MB_OK 0x00000000L
|
|
|
|
#define MB_OKCANCEL 0x00000001L
|
|
|
|
#define MB_ABORTRETRYIGNORE 0x00000002L
|
|
|
|
#define MB_YESNOCANCEL 0x00000003L
|
|
|
|
#define MB_YESNO 0x00000004L
|
|
|
|
#define MB_RETRYCANCEL 0x00000005L
|
|
|
|
|
|
|
|
#define MB_ICONHAND 0x00000010L
|
|
|
|
#define MB_ICONQUESTION 0x00000020L
|
|
|
|
#define MB_ICONEXCLAMATION 0x00000030L
|
|
|
|
#define MB_ICONASTERISK 0x00000040L
|
|
|
|
|
|
|
|
#define MB_USERICON 0x00000080L
|
|
|
|
#define MB_ICONWARNING MB_ICONEXCLAMATION
|
|
|
|
#define MB_ICONERROR MB_ICONHAND
|
|
|
|
#define MB_ICONINFORMATION MB_ICONASTERISK
|
|
|
|
#define MB_ICONSTOP MB_ICONHAND
|
|
|
|
|
|
|
|
#define MB_TYPEMASK 0x0000000FL
|
|
|
|
#define MB_ICONMASK 0x000000F0L
|
|
|
|
#define MB_DEFMASK 0x00000F00L
|
|
|
|
#define MB_MODEMASK 0x00003000L
|
|
|
|
#define MB_MISCMASK 0x0000C000L
|
|
|
|
|
|
|
|
#define IDOK 1
|
|
|
|
#define IDCANCEL 2
|
|
|
|
#define IDABORT 3
|
|
|
|
#define IDRETRY 4
|
|
|
|
#define IDIGNORE 5
|
|
|
|
#define IDYES 6
|
|
|
|
#define IDNO 7
|
|
|
|
|
|
|
|
#endif
|