PublicFun.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  FileName    :   PublicFun.h
  4. //  Version     :   1.0
  5. //  Creater     :   Cheng Bitao
  6. //  Date        :   2002-4-8 16:40:16
  7. //  Comment     :   Define the public function
  8. //
  9. //////////////////////////////////////////////////////////////////////////////////////
  10. #ifndef __PUBLIC_FUNCTION_H__
  11. #define __PUBLIC_FUNCTION_H__
  12. #pragma pack(push, 1)
  13. typedef struct tagFILE_MAPPING
  14. {
  15. HWND hWnd;
  16. }FILE_MAPPING, *PFILE_MAPPING;
  17. #pragma pack(pop)
  18.  
  19. void AddPathChar(char szPath[], char chPathChar); 
  20. void AddPathChar(char szPath[]);
  21. void MkDirEx(const char cszPathDir[]);
  22. int FileExists(LPCTSTR lpszFileName);
  23. int CopyDir(const char cszSource[], const char cszDest[], int nFailedIfExist);
  24. int StopAService(const char cszServiceName[]);
  25. int StartAService(const char cszServiceName[]);
  26. // Get Exit CommandLine parameter
  27. // Return 1:  Quit Parameter
  28. // Return 0:  No Quit parameter
  29. int GetExitCommandLineParameter();
  30. void StrAddStr(char szStr1[], const char cszStr2[]);
  31. int GetRegKeyValue(const char cszRegKey[], const char cszKeyName[], char szValue[], int nSize);
  32. #endif  //__PUBLIC_FUNCTION_H__