stdafx.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. //
  5. #pragma once
  6. #include "targetver.h"
  7. #define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
  8. // Windows 头文件:
  9. #include <windows.h>
  10. #include <shlwapi.h>
  11. #pragma comment(lib,"Shlwapi.lib")
  12. #include <tlhelp32.h>
  13. #include <shellapi.h>
  14. #include <tchar.h>
  15. #include <stdio.h>
  16. #include <string>
  17. using namespace std;
  18. //#include "CD750Proto.h"
  19. #ifndef _UNICODE
  20. typedef string TString;
  21. #else
  22. typedef wstring TString;
  23. #endif
  24. #include <vector>
  25. using namespace std;
  26. // 全局变量;
  27. extern DWORD g_dwAppId;
  28. extern TCHAR g_szAppDir[MAX_PATH];
  29. // 全局函数;
  30. extern BOOL GetDebugPriv();
  31. extern void ShowSystemErrorInfo( LPCTSTR lpszTitle,const DWORD &dwError);
  32. extern DWORD IsAppRunning(LPCTSTR lpszAppDir);
  33. extern bool CloseApp(DWORD dwAppId);
  34. extern void WriteTextLog(const TCHAR *format, ...);
  35. extern unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
  36. extern void findfile(IN CONST TString& folder, IN vector<TString> &files);
  37. // TODO: 在此处引用程序需要的其他头文件