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.

36 lines
1.8 KiB

  1. /* uni2utf.h */
  2. /* Copyright (c) 1998-1999 Microsoft Corporation */
  3. #define MAX_UTF_LENGTH 200 /* arbitrary */
  4. #define MAX_UNICODE_LENGTH 200 /* arbitrary */
  5. extern char *Unicode2UTF(const wchar_t *unicodeString);
  6. extern wchar_t *UTF2Unicode(const char *utfString);
  7. BOOL test_fdi(const char *cabinet_fullpath);
  8. BOOL isCabFile(int hf, void **phfdi);
  9. //FNFDINOTIFY(notification_function);
  10. BOOL DoesFileExist(const char *szFile);
  11. BOOL test_fdi(const char *cabinet_fullpath);
  12. static char dest_dir[MAX_PATH];
  13. //BOOL explode_cab(const char *cabinet_fullpath, const char *destination);
  14. BOOL explode_cab(char *cabinet_fullpath,char *destination);
  15. //---------------------------------------------------------------------------
  16. // The following definitions are pulled from stat.h and types.h. I was having
  17. // trouble getting the build tree make to pull them in, so I just copied the
  18. // relevant stuff. This may very well need to be changed if those include
  19. // files change.
  20. //---------------------------------------------------------------------------
  21. #define _S_IREAD 0000400 /* read permission, owner */
  22. #define _S_IWRITE 0000200 /* write permission, owner */
  23. //Functions to open CAB files
  24. BOOL IsDataspecFilePresent(CString strCabExplodedDir);
  25. BOOL IsIncidentXMLFilePresent(CString strCabExplodedDir, CString strIncidentFileName);
  26. void DirectorySearch(const CString & strSpec, const CString & strDir, CStringList &results);
  27. BOOL GetCABExplodeDir(CString &destination, BOOL fDeleteFiles = TRUE, const CString & strDontDelete = CString(""));
  28. BOOL OpenCABFile(const CString &filename, const CString &destination);
  29. BOOL FindFileToOpen(const CString & destination, CString & filename);
  30. void KillDirectory(const CString & strDir, const CString & strDontDelete = CString(""));