liblog4vendor.h 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef RVC_VENDOR_LOG4VENDOR_H_
  2. #define RVC_VENDOR_LOG4VENDOR_H_
  3. #pragma once
  4. #if (defined(_WIN32) || defined(_WIN64))
  5. #define OS_WIN 1
  6. #else
  7. #define OS_WIN 0
  8. #endif
  9. #ifndef _WIN32
  10. #include <stdint.h>
  11. #ifdef __cplusplus
  12. #define EXTERN_C extern "C"
  13. #define EXTERN_C_START extern "C" {
  14. #define EXTERN_C_END }
  15. #else
  16. #define EXTERN_C extern
  17. #define EXTERN_C_START
  18. #define EXTERN_C_END
  19. #endif
  20. typedef uint8_t BYTE;
  21. typedef uint8_t* LPBYTE;
  22. typedef uint16_t WORD;
  23. typedef uint32_t DWORD;
  24. typedef char CHAR;
  25. typedef uint8_t BOOL;
  26. #define TRUE 1
  27. #define FALSE 0
  28. #ifndef MAX_PATH
  29. #define MAX_PATH 260
  30. #endif
  31. #else
  32. #include <SDKDDKVer.h>
  33. #ifndef WIN32_LEAN_AND_MEAN
  34. #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
  35. #endif
  36. // Windows 头文件:
  37. #include <windows.h>
  38. #endif
  39. EXTERN_C BOOL IsVTMProcess();
  40. EXTERN_C BOOL GetCurFileVersion(char szVerion[], DWORD dwVerionSize);
  41. #endif