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.

71 lines
1.4 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. #ifndef _DEBUG
  23. __inline void* __cdecl malloc(size_t cbSize)
  24. {
  25. return (void*) LocalAlloc(LMEM_FIXED, cbSize);
  26. }
  27. __inline void* __cdecl realloc(void* oldptr, size_t cbSize)
  28. {
  29. return (void*) LocalReAlloc(oldptr, cbSize, LMEM_MOVEABLE);
  30. }
  31. __inline void __cdecl free(void *pv)
  32. {
  33. LocalFree((HLOCAL)pv);
  34. }
  35. __inline void* __cdecl operator new(size_t cbSize)
  36. {
  37. return (void*) malloc(cbSize);
  38. }
  39. __inline void __cdecl operator delete(void *pv)
  40. {
  41. free(pv);
  42. }
  43. __inline int __cdecl _purecall(void)
  44. {
  45. return(0);
  46. }
  47. #endif
  48. //#define _D3DTYPES_H_ 1
  49. #include <d3d8.h>
  50. #include <dSound.h>
  51. #include <dPlay8.h>
  52. #include <dpLobby8.h>
  53. #include <dinput.h>
  54. #include <dvoice.h>
  55. #define DECL_VARIABLE(c) typedef_##c m_##c