Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenunknown.h
Go to the documentation of this file.
00001 /* 00002 * unknown.h 00003 * 00004 * Contributors: 00005 * Created by Magnus Olsen 00006 * 00007 * THIS SOFTWARE IS NOT COPYRIGHTED 00008 * 00009 * This source code is offered for use in the public domain. You may 00010 * use, modify or distribute it freely. 00011 * 00012 * This code is distributed in the hope that it will be useful but 00013 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00014 * DISCLAIMED. This includes but is not limited to warranties of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * 00017 */ 00018 00019 #ifndef _UNKNOWN_H_ 00020 #define _UNKNOWN_H_ 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #include <wdm.h> 00025 } 00026 #else 00027 #include <wdm.h> 00028 #endif 00029 00030 #include <windef.h> 00031 #define COM_NO_WINDOWS_H 00032 #include <basetyps.h> 00033 #ifdef PUT_GUIDS_HERE 00034 #include <initguid.h> 00035 #endif 00036 00037 DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 00038 #if defined(__cplusplus) && _MSC_VER >= 1100 00039 struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown; 00040 #endif 00041 00042 #undef INTERFACE 00043 #define INTERFACE IUnknown 00044 DECLARE_INTERFACE(IUnknown) 00045 { 00046 STDMETHOD(QueryInterface) 00047 ( THIS_ 00048 IN REFIID, 00049 OUT PVOID * 00050 ) PURE; 00051 00052 STDMETHOD_(ULONG,AddRef) 00053 ( THIS 00054 ) PURE; 00055 00056 STDMETHOD_(ULONG,Release) 00057 ( THIS 00058 ) PURE; 00059 }; 00060 #undef INTERFACE 00061 00062 typedef IUnknown *PUNKNOWN; 00063 typedef 00064 HRESULT 00065 (NTAPI *PFNCREATEINSTANCE) 00066 ( 00067 OUT PUNKNOWN * Unknown, 00068 IN REFCLSID ClassId, 00069 IN PUNKNOWN OuterUnknown, 00070 IN POOL_TYPE PoolType 00071 ); 00072 00073 #endif /* _UNKNOWN_H_ */ 00074 Generated on Sun May 27 2012 04:32:30 for ReactOS by
1.7.6.1
|