Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: stdafx.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // stdafx.h : include file for standard system include files,
  11. // or project specific include files that are used frequently,
  12. // but are changed infrequently
  13. #define DX6 1
  14. #define DX7 1
  15. #include "windows.h"
  16. #include "mmsystem.h"
  17. #include "atlbase.h"
  18. //You may derive a class from CComModule and use it if you want to override
  19. //something, but do not change the name of _Module
  20. extern CComModule _Module;
  21. #include "atlcom.h"
  22. #include "ddraw.h"
  23. #include "dvp.h"
  24. #ifndef _DEBUG
  25. __inline void* __cdecl malloc(size_t cbSize)
  26. {
  27. return (void*) LocalAlloc(LMEM_FIXED, cbSize);
  28. }
  29. __inline void* __cdecl realloc(void* oldptr, size_t cbSize)
  30. {
  31. return (void*) LocalReAlloc(oldptr, cbSize, LMEM_MOVEABLE);
  32. }
  33. __inline void __cdecl free(void *pv)
  34. {
  35. LocalFree((HLOCAL)pv);
  36. }
  37. __inline void* __cdecl operator new(size_t cbSize)
  38. {
  39. return (void*) malloc(cbSize);
  40. }
  41. __inline void __cdecl operator delete(void *pv)
  42. {
  43. free(pv);
  44. }
  45. __inline int __cdecl _purecall(void)
  46. {
  47. return(0);
  48. }
  49. #endif
  50. #include "d3d.h"
  51. #include "d3dcaps.h"
  52. #include "d3drm.h"
  53. #include "d3drmwin.h"
  54. #include "dSound.h"
  55. #include "dPlay.h"
  56. #include "dpLobby.h"
  57. #include "d3drmdef.h"
  58. #include "d3drmobj.h"
  59. #include "dinput.h"
  60. #define DECL_VARIABLE(c) typedef_##c m_##c