home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / C_C++ / BorlandCompiler / freecommandLinetools.exe / Include / msdetect.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-27  |  5.3 KB  |  129 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2. //
  3. // Imported functions from MSDETSTF.DLL
  4. //
  5.  
  6. extern BOOL  APIENTRY FFileInUse(LPSTR szFile);
  7. extern int   APIENTRY CbGetDateOfFile(LPSTR szFile, LPSTR szBuf, int cbBuf);
  8. extern int   APIENTRY CbGetVersionOfFile(LPSTR szFile, LPSTR szBuf,
  9.                 int cbBuf);
  10. extern int   APIENTRY GetExistingFOTFileForTTF(LPSTR szFile, LPSTR szBuf,
  11.                 int cbBuf);
  12. extern int   APIENTRY FGetValidDrivesList(LPSTR szSymbol);
  13. extern int   APIENTRY FGetLocalHardDrivesList(LPSTR szSymbol);
  14. extern int   APIENTRY FGetNetworkDrivesList(LPSTR szSymbol);
  15. #ifdef WIN16
  16. extern DWORD APIENTRY LcbTotalDrive(int nDrive);
  17. extern DWORD APIENTRY LcbFreeDrive(int nDrive);
  18. #endif
  19. #ifdef WIN32
  20. extern DWORDLONG  APIENTRY LcbTotalDrive(int nDrive);
  21. extern DWORDLONG  APIENTRY LcbFreeDrive(int nDrive);
  22. #endif
  23. extern DWORD APIENTRY LcbGetSizeOfFile(LPSTR szFile);
  24. extern int   APIENTRY FIsValidDrive(int nDrive);
  25. extern int   APIENTRY FIsLocalHardDrive(int nDrive);
  26. extern int   APIENTRY FIsRemoveDrive(int nDrive);
  27. extern int   APIENTRY FIsRemoteDrive(int nDrive);
  28. extern int   APIENTRY FDirExists(LPSTR szDir);
  29. extern int   APIENTRY FDoesFileExist(LPSTR szFileName, int mode);
  30. extern int   APIENTRY FDoesIniKeyExist(LPSTR szFile, LPSTR szSect,
  31.                 LPSTR szKey);
  32. extern int   APIENTRY CbGetIniKeyString(LPSTR szFile, LPSTR szSect,
  33.                 LPSTR szKey, LPSTR szBuf, int cbBuf);
  34. #ifndef STF_LITE
  35. extern int   APIENTRY FGetRemovableDrivesList(LPSTR szSymbol);
  36. extern LONG  APIENTRY LGetVersionNthField(LPSTR szVersion, int nField);
  37. extern int   APIENTRY FDoesIniSectionExist(LPSTR szFile, LPSTR szSect);
  38. extern int   APIENTRY WGetDOSMajorVersion(void);
  39. extern int   APIENTRY WGetDOSMinorVersion(void);
  40. extern int   APIENTRY CbGetEnvVariableValue(LPSTR szEnvVar, LPSTR szBuf,
  41.                 int cbBuf);
  42. extern int   APIENTRY WGetNumWinApps(void);
  43. extern int   APIENTRY FGetParallelPortsList(LPSTR szSymbol);
  44. extern int   APIENTRY FGetSerialPortsList(LPSTR szSymbol);
  45. extern int   APIENTRY FHas87MathChip(void);
  46. extern int   APIENTRY FHasMonochromeDisplay(void);
  47. extern int   APIENTRY FHasMouseInstalled(void);
  48. extern int   APIENTRY FIsDriverInConfig(LPSTR szDrv);
  49. extern int   APIENTRY WGetConfigSmartdrvSize(void);
  50. extern int   APIENTRY WGetConfigRamdriveSize(void);
  51. extern int   APIENTRY WGetConfigNumBuffers(void);
  52. extern int   APIENTRY WGetConfigNumFiles(void);
  53. extern int   APIENTRY WGetConfigLastDrive(void);
  54. extern int   APIENTRY FGetProcessorType(LPSTR, USHORT, LPSTR, unsigned);
  55. extern int   APIENTRY CbFindTargetOnEnvVar(LPSTR szFile, LPSTR szEnvVar,
  56.                 LPSTR szBuf, int cbBuf);
  57. extern int   APIENTRY CbFindFileInTree(LPSTR szFile, LPSTR szDir, LPSTR szBuf,
  58.                 int cbBuf);
  59. #endif
  60.  
  61.  
  62.  
  63. //
  64. //  Configuration detection wrapper functions
  65. //
  66. extern BOOL  IsDriveValid(LPSTR szDrive);
  67. extern BOOL  IsDriveLocalHard(LPSTR szDrive);
  68. extern BOOL  IsDriveRemovable(LPSTR szDrive);
  69. extern BOOL  IsDriveNetwork(LPSTR szDrive);
  70. extern VOID  GetValidDrivesList(LPSTR szSymbol);
  71. extern VOID  GetLocalHardDrivesList(LPSTR szSymbol);
  72. extern VOID  GetNetworkDrivesList(LPSTR szSymbol);
  73. #ifdef WIN16
  74. extern DWORD GetTotalSpaceForDrive(LPSTR szDrive);
  75. extern DWORD GetFreeSpaceForDrive(LPSTR szDrive);
  76. #endif
  77. #ifdef WIN32
  78. extern DWORDLONG GetTotalSpaceForDrive(LPSTR szDrive);
  79. extern DWORDLONG GetFreeSpaceForDrive(LPSTR szDrive);
  80. #endif
  81. extern BOOL  DoesFileExist(LPSTR szFile, int mode);
  82. extern DWORD GetSizeOfFile(LPSTR szFile);
  83. extern BOOL  DoesDirExist(LPSTR szDir);
  84. extern BOOL  DoesIniKeyExist(LPSTR szFile, LPSTR szSect,
  85.                 LPSTR szKey);
  86. extern LPSTR GetIniKeyString(LPSTR szFile, LPSTR szSect, LPSTR szKey,
  87.                 LPSTR szBuf, int cbBuf);
  88. extern LPSTR GetDateOfFile(LPSTR szFile, LPSTR szBuf, int cbBuf);
  89. extern INT   GetYearFromDate(LPSTR szDate);
  90. extern INT   GetMonthFromDate(LPSTR szDate);
  91. extern INT   GetDayFromDate(LPSTR szDate);
  92.  
  93. #ifndef STF_LITE
  94. extern VOID  GetRemovableDrivesList(LPSTR szSymbol);
  95. extern INT   GetTypeFaceNameFromTTF(LPSTR szFile, LPSTR szBuf,
  96.                 int cbBuf);
  97.  
  98. extern LPSTR GetEnvVariableValue(LPSTR szEnvVar, LPSTR szBuf,
  99.                 int cbBuf);
  100.  
  101. extern INT   GetHourFromDate(LPSTR szDate);
  102. extern INT   GetMinuteFromDate(LPSTR szDate);
  103. extern INT   GetSecondFromDate(LPSTR szDate);
  104. extern LPSTR GetVersionOfFile(LPSTR szFile, LPSTR szBuf, int cbBuf);
  105. extern LONG  GetVersionNthField(LPSTR szVersion, int nField);
  106. extern LPSTR FindTargetOnEnvVar(LPSTR szFile, LPSTR szEnvVar,
  107.                 LPSTR szBuf, int cbBuf);
  108. extern LPSTR FindFileInTree(LPSTR szFile, LPSTR szDir, LPSTR szBuf,
  109.                 int cbBuf);
  110. extern BOOL  DoesIniSectionExist(LPSTR szFile, LPSTR szSect);
  111. extern BOOL  IsDriverInConfig(LPSTR szDrv);
  112. extern INT   GetProcessorType(void);
  113. extern VOID  GetParallelPortsList(LPSTR szSymbol);
  114. extern VOID  GetSerialPortsList(LPSTR szSymbol);
  115. extern BOOL  Has87MathChip(void);
  116. extern BOOL  HasFPPMathChip(void);
  117. extern BOOL  HasMonochromeDisplay(void);
  118. extern BOOL  HasMouseInstalled(void);
  119. extern INT   GetDOSMajorVersion(void);
  120. extern INT   GetDOSMinorVersion(void);
  121. extern INT   GetNumWinApps(void);
  122. extern INT   GetConfigSmartdrvSize(void);
  123. extern INT   GetConfigRamdriveSize(void);
  124. extern INT   GetConfigNumBuffers(void);
  125. extern INT   GetConfigNumFiles(void);
  126. extern LPSTR GetConfigLastDrive(LPSTR szBuf, int cbBuf);
  127. #endif  /* !STF_LITE */
  128. #pragma option pop /*P_O_Pop*/
  129.