2008-02-10 20:09:06 +00:00
|
|
|
#ifndef __unknwn_h__
|
|
|
|
#define __unknwn_h__
|
2007-03-30 20:04:05 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#include <wdm.h>
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
#include <wdm.h>
|
|
|
|
#endif
|
|
|
|
|
2008-12-01 15:12:23 +00:00
|
|
|
#include <windef.h>
|
2007-03-30 20:04:05 +00:00
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <basetyps.h>
|
|
|
|
#ifdef PUT_GUIDS_HERE
|
|
|
|
#include <initguid.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
|
|
|
|
#if defined(__cplusplus) && _MSC_VER >= 1100
|
|
|
|
struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE IUnknown
|
|
|
|
DECLARE_INTERFACE(IUnknown)
|
|
|
|
{
|
|
|
|
STDMETHOD(QueryInterface)
|
|
|
|
( THIS_
|
|
|
|
IN REFIID,
|
|
|
|
OUT PVOID *
|
|
|
|
) PURE;
|
|
|
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)
|
|
|
|
( THIS
|
|
|
|
) PURE;
|
|
|
|
|
|
|
|
STDMETHOD_(ULONG,Release)
|
|
|
|
( THIS
|
|
|
|
) PURE;
|
|
|
|
};
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
typedef IUnknown *PUNKNOWN;
|
|
|
|
typedef
|
|
|
|
HRESULT
|
2009-08-20 14:45:32 +00:00
|
|
|
(NTAPI *PFNCREATEINSTANCE)
|
2007-03-30 20:04:05 +00:00
|
|
|
(
|
|
|
|
OUT PUNKNOWN * Unknown,
|
|
|
|
IN REFCLSID ClassId,
|
|
|
|
IN PUNKNOWN OuterUnknown,
|
|
|
|
IN POOL_TYPE PoolType
|
|
|
|
);
|
2008-02-10 20:09:06 +00:00
|
|
|
|
2007-03-30 20:04:05 +00:00
|
|
|
#endif
|
|
|
|
|