Commit 15382c5e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Make the REFxxx types const even in C. Also add FMTID.

parent a4e29e5b
......@@ -63,7 +63,7 @@ HRESULT WINAPI CoRegisterClassObject32(REFCLSID rclsid,LPUNKNOWN pUnk,DWORD dwCl
HRESULT WINAPI CoRevokeClassObject32(DWORD dwRegister);
#define CoRevokeClassObject WINELIB_NAME(CoRevokeClassObject)
HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,LPVOID pvReserved, const REFIID iid, LPVOID *ppv);
HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,LPVOID pvReserved, REFIID iid, LPVOID *ppv);
HRESULT WINAPI CoCreateInstance(REFCLSID rclsid,LPUNKNOWN pUnkOuter,DWORD dwClsContext,REFIID iid,LPVOID *ppv);
......
......@@ -34,27 +34,29 @@ DECL_WINELIB_TYPE(LPBSTR)
#ifndef GUID_DEFINED
#define GUID_DEFINED
typedef struct _GUID
struct _GUID
{
DWORD Data1;
WORD Data2;
WORD Data3;
BYTE Data4[8];
} GUID;
};
#endif
typedef GUID *LPGUID;
typedef GUID CLSID,*LPCLSID;
typedef GUID IID,*LPIID;
typedef struct _GUID GUID,*LPGUID;
typedef struct _GUID CLSID,*LPCLSID;
typedef struct _GUID IID,*LPIID;
typedef struct _GUID FMTID,*LPFMTID;
#ifdef __cplusplus
#define REFGUID const GUID &
#define REFIID const IID &
#define REFCLSID const CLSID &
#define REFIID const IID &
#define REFFMTID const FMTID &
#else // !__cplusplus
#define REFGUID GUID *
#define REFIID IID *
#define REFCLSID CLSID *
#define REFGUID const GUID* const
#define REFCLSID const CLSID* const
#define REFIID const IID* const
#define REFFMTID const FMTID* const
#endif // !__cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment