/usr/x86_64-w64-mingw32/include/ddk/punknown.h is in mingw-w64-x86-64-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*
ReactOS Kernel-Mode COM
by Andrew Greenwood
This file is in the public domain.
*/
#ifndef _UNKNOWN_H_
#define _UNKNOWN_H_
#ifdef __cplusplus
extern "C" {
#include <wdm.h>
}
#else
#include <wdm.h>
#endif
#include <windef.h>
#define COM_NO_WINDOWS_H
#include <basetyps.h>
#ifdef PUT_GUIDS_HERE
#include <initguid.h>
#endif
/* ===============================================================
IUnknown
*/
#ifndef __IUnknown_INTERFACE_DEFINED__
#define __IUnknown_INTERFACE_DEFINED__
DEFINE_GUID(
IID_IUnknown,
0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x46);
#undef INTERFACE
#define INTERFACE IUnknown
DECLARE_INTERFACE(IUnknown)
{
STDMETHOD_(NTSTATUS, QueryInterface)( THIS_
IN REFIID,
OUT PVOID*)
PURE;
STDMETHOD_(ULONG, AddRef)( THIS )
PURE;
STDMETHOD_(ULONG, Release)( THIS )
PURE;
};
#endif
#undef INTERFACE
typedef IUnknown *PUNKNOWN;
/* ===============================================================
IUnknown definition
Boilerplate code macro for use in subclassed interfaces
*/
#define DEFINE_ABSTRACT_UNKNOWN() \
STDMETHOD_(NTSTATUS, QueryInterface)( THIS_ \
REFIID InterfaceId, \
PVOID* Interface) \
PURE; \
\
STDMETHOD_(ULONG, AddRef)(THIS) \
PURE; \
\
STDMETHOD_(ULONG, Release)(THIS) \
PURE;
/* ===============================================================
Constructor callback definition
*/
typedef HRESULT (NTAPI *PFNCREATEINSTANCE)(
OUT PUNKNOWN* Unknown,
IN REFCLSID ClassId,
IN PUNKNOWN OuterUnknown,
IN POOL_TYPE PoolType);
#endif /* _UNKNOWN_H_ */
|