Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

  1. /*
  2. ** oeminf.h - Public interface for oeminf.c.
  3. */
  4. // Constants
  5. /////////////
  6. #define MAX_INF_COMP_LEN 0xffff // Must not overrun a segment.
  7. #define MAX_INF_READ_SIZE 0xffff // INT_MAX // Must not overrun an int.
  8. #define INF_PREFIX TEXT( "oem" )
  9. #define INF_EXTENSION TEXT( "inf" )
  10. #define MAX_5_DEC_DIGITS 99999
  11. // Buffer size for Get...Directory() calls.
  12. #define MAX_NET_PATH MAX_PATH
  13. // .inf file specification and length.
  14. #define OEM_STAR_DOT_INF TEXT( "\\oem*.inf" )
  15. #define OEM_STAR_DOT_INF_LEN 9
  16. // Macros
  17. //////////
  18. #define IS_PATH_SEPARATOR(c) ((c) == TEXT( '\\' ) || (c) == TEXT( '/' ) || (c) == TEXT( ':' ))
  19. #define IS_SLASH(c) ((c) == TEXT( '\\' ) || (c) == TEXT( '/' ))
  20. BOOL FAR PASCAL RunningFromNet( void );
  21. HANDLE FAR PASCAL ReadFileIntoBuffer( int doshSource );
  22. int FAR PASCAL FilesMatch( HANDLE h1, HANDLE h2, unsigned uLength );
  23. LPTSTR FAR PASCAL TruncateFileName( LPTSTR lpszPathSpec );
  24. int FAR PASCAL OpenFileAndGetLength( LPTSTR pszSourceFile, LPLONG plFileLength );
  25. int FAR PASCAL IsNewFile( LPTSTR lpszSourceFile, LPTSTR lpszSearchSpec );
  26. LPTSTR FAR PASCAL MakeUniqueFilename( LPTSTR pszDirName, LPTSTR pszPrefix, LPTSTR pszExtension );
  27. BOOL FAR PASCAL CopyNewOEMInfFile( LPTSTR pszOEMInfPath );
  28. // Macros
  29. //////////
  30. #define FILEMAX 14 // 8.3 + null terminator
  31. // #define FOPEN(sz) _lopen(sz, OF_READ)
  32. // #define FCLOSE(fh) _lclose(fh)
  33. // #define FCREATE(sz) _lcreat(sz, 0)
  34.