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.

65 lines
2.0 KiB

  1. // Copyright (c) 1997 - 1999 Microsoft Corporation. All Rights Reserved.
  2. #define _ATL_STATIC_REGISTRY
  3. // stdafx.h : include file for standard system include files,
  4. // or project specific include files that are used frequently,
  5. // but are changed infrequently
  6. #if !defined(AFX_STDAFX_H__242C8F45_9AE6_11D0_8212_00C04FC32C45__INCLUDED_)
  7. #define AFX_STDAFX_H__242C8F45_9AE6_11D0_8212_00C04FC32C45__INCLUDED_
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11. #ifndef _WIN32_WINNT
  12. #define _WIN32_WINNT 0x0400
  13. #endif
  14. #define _ATL_FREE_THREADED
  15. #include <atlbase.h>
  16. //You may derive a class from CComModule and use it if you want to override
  17. //something, but do not change the name of _Module
  18. extern CComModule _Module;
  19. //#include "crtfree.h"
  20. #include <atlcom.h>
  21. #include <ddraw.h>
  22. #include <mmstream.h>
  23. #include <ddstream.h>
  24. #include <amstream.h>
  25. #include <austream.h>
  26. // Debugging
  27. #ifdef DEBUG
  28. extern BOOL bDbgTraceFunctions;
  29. extern BOOL bDbgTraceInterfaces;
  30. extern BOOL bDbgTraceTimes;
  31. LPWSTR inline TextFromGUID(REFGUID guid) {
  32. WCHAR *pch = (WCHAR *)_alloca((CHARS_IN_GUID + 1) * sizeof(WCHAR));
  33. StringFromGUID2(guid, pch, (CHARS_IN_GUID + 1) * sizeof(TCHAR));
  34. return pch;
  35. }
  36. LPTSTR inline TextFromPurposeId(REFMSPID guid) {
  37. if (guid == MSPID_PrimaryAudio) {
  38. return _T("MSPID_PrimaryAudio");
  39. } else
  40. if (guid == MSPID_PrimaryVideo) {
  41. return _T("MSPID_PrimaryVideo");
  42. } else
  43. {
  44. return _T("Unrecognized PurposeId");
  45. }
  46. }
  47. #define TRACEFUNC if (bDbgTraceFunctions) ATLTRACE(_T("AMSTREAM.DLL : ")), ATLTRACE
  48. #define TRACEINTERFACE if (bDbgTraceFunctions || bDbgTraceInterfaces) ATLTRACE(_T("AMSTREAM.DLL : ")), ATLTRACE
  49. #else
  50. #define TRACEFUNC ATLTRACE
  51. #define TRACEINTERFACE ATLTRACE
  52. #define TextFromGUID(_x_) 0
  53. #define TextFromPurposeId(_x_) 0
  54. #endif
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_STDAFX_H__242C8F45_9AE6_11D0_8212_00C04FC32C45__INCLUDED)