home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5036 / source.7z / x_file.h < prev    next >
Encoding:
C/C++ Source or Header  |  2012-01-01  |  961 b   |  25 lines

  1. #ifndef __XENTAX_FILE_H
  2. #define __XENTAX_FILE_H
  3.  
  4. /*
  5. ** FILE LISTING FUNCTIONS
  6. ** (1) LOOKS IN PATH OF EXE
  7. ** (2) LOOKS IN PATH OF CHOICE
  8. */
  9.  
  10. void GetModulePathname(LPSTR pathname, DWORD maxlen);
  11. std::string GetShortFilename(const std::string& filename);
  12. std::string GetShortFilenameWithoutExtension(const std::string& filename);
  13. std::string GetPathnameFromFilename(const std::string& filename);
  14. std::string GetExtensionFromFilename(const std::string& filename);
  15. bool BuildFilenameList(std::deque<std::string>& namelist, const char* fext);
  16. bool BuildFilenameList(std::deque<std::string>& namelist, const char* fext, const char* rootname);
  17.  
  18. /*
  19. ** FILE SEARCHING FUNCTIONS
  20. */
  21. bool SearchFileForSignature(std::ifstream& ifile, const char* signature, size_t sigsize, std::deque<uint64>& offsets);
  22. bool SearchFileForSignature(std::ifstream& ifile, const char* signature, size_t sigsize, size_t alignment, std::deque<uint64>& offsets);
  23.  
  24. #endif
  25.