stdafx.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. //
  5. #pragma once
  6. #include "targetver.h"
  7. #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
  8. #include <afx.h>
  9. #include <afxwin.h> // MFC 核心组件和标准组件
  10. // TODO: 在此处引用程序需要的其他头文件
  11. #include <iostream>
  12. #include <string>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include "StringConvert.h"
  16. using namespace std;
  17. #include <strsafe.h>
  18. #include <objbase.h>
  19. #pragma warning(push)
  20. #pragma warning(disable : 4201)
  21. #pragma warning(disable: 4996)
  22. #include <commctrl.h>
  23. #include <mmdeviceapi.h>
  24. #include <endpointvolume.h>
  25. #include <devicetopology.h>
  26. #include <Audioclient.h>
  27. #pragma warning(pop)
  28. #ifdef DEBUG
  29. #include <conio.h>
  30. #include <stdio.h>
  31. #define CONSOLE_ON() AllocConsole()
  32. #define CONSOLE_OFF() FreeConsole()
  33. #define PRINTF printf
  34. #else
  35. #define CONSOLE_ON()
  36. #define CONSOLE_OFF()
  37. #define PRINTF
  38. #endif
  39. UINT SYSTEM_ON(CStringA cmdLine);
  40. UINT SYSTEM_ON(CStringW cmdLine);