v 0. Pasted by Zeux as cpp at 2009-03-22 04:06:20 MSK and set expiration to never.

Paste will expire never. Expiration is locked.

  1. // This file is designed to be included in D3D9-dependent code instead of d3d9.h, while adding minimal amount of junk
  2. #pragma once
  3.  
  4. #include <BaseTyps.h>
  5. #include <BaseTsd.h>
  6.  
  7. // stdlib.h
  8. #ifndef _INC_STDLIB
  9. #define _INC_STDLIB
  10. #endif
  11.  
  12. // Objbase.h
  13. #ifndef _OBJBASE_H_
  14. #define _OBJBASE_H_
  15. #endif
  16.  
  17. // Rpc.h
  18. #ifndef __RPC_H__
  19. #define __RPC_H__
  20. #endif
  21.  
  22. // RpcNdr.h
  23. #ifndef __RPCNDR_H__
  24. #define __RPCNDR_H__
  25. #endif
  26.  
  27. // Windows.h
  28. #ifndef _WINDOWS_
  29. #define _WINDOWS_
  30. #endif
  31.  
  32. // WinNT.h
  33. #ifndef _WINNT_
  34. typedef void *HANDLE;
  35. #define DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
  36.  
  37. #ifndef VOID
  38. #define VOID void
  39. typedef char CHAR;
  40. typedef short SHORT;
  41. typedef long LONG;
  42. #endif
  43.  
  44. #ifndef _HRESULT_DEFINED
  45. #define _HRESULT_DEFINED
  46. typedef LONG HRESULT;
  47. #endif
  48.  
  49. typedef const wchar_t *LPCWSTR;
  50. #define DECLSPEC_NOVTABLE   __declspec(novtable)
  51. #endif
  52.  
  53. #ifndef NT_INCLUDED
  54. #define NT_INCLUDED
  55. #endif
  56.  
  57. // windef.h
  58. #ifndef _WINDEF_
  59. #define _X86_
  60. #include <windef.h>
  61. #endif
  62.  
  63. // WinNT.h
  64. #ifndef _WINNT_
  65. #define _WINNT_
  66.  
  67. typedef __int64 LONGLONG;
  68. typedef unsigned __int64 ULONGLONG;
  69.  
  70. typedef union _LARGE_INTEGER {
  71.     struct {
  72.         DWORD LowPart;
  73.         LONG HighPart;
  74.     };
  75.     struct {
  76.         DWORD LowPart;
  77.         LONG HighPart;
  78.     } u;
  79.     LONGLONG QuadPart;
  80. } LARGE_INTEGER;
  81.  
  82. typedef struct _LUID {
  83.     DWORD LowPart;
  84.     LONG HighPart;
  85. } LUID, *PLUID;
  86. #endif
  87.  
  88. // Unknwn.h
  89. #ifndef __unknwn_h__
  90. interface IUnknown
  91. {
  92.     virtual HRESULT STDMETHODCALLTYPE QueryInterface(
  93.             /* [in] */ REFIID riid,
  94.             /* [iid_is][out] */ void **ppvObject) = 0;
  95.        
  96.     virtual ULONG STDMETHODCALLTYPE AddRef( void) = 0;
  97.        
  98.     virtual ULONG STDMETHODCALLTYPE Release( void) = 0;
  99. };
  100. #endif
  101.  
  102. // WinGDI.h
  103. #ifndef _WINGDI_
  104. typedef struct _RGNDATA RGNDATA;
  105. typedef struct tagPALETTEENTRY PALETTEENTRY;
  106. #endif
  107.  
  108. // WinError.h
  109. #ifndef _WINERROR_
  110. #define _WINERROR_
  111.  
  112. #define SUCCEEDED(hr) ((HRESULT)(hr) >= 0)
  113. #define FAILED(hr) ((HRESULT)(hr) < 0)
  114. #define S_OK                                   ((HRESULT)0x00000000L)
  115. #endif
  116.  
  117. // d3d9.h
  118. #include <d3d9.h>


Editing is locked.