Leaked source code of windows server 2003
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.

93 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1996, 1997 Microsoft Corporation
  3. Module Name:
  4. filemisc.h
  5. Abstract:
  6. This module contains routines to perform miscellaneous file related
  7. operations in the protected store.
  8. Author:
  9. Scott Field (sfield) 27-Nov-96
  10. --*/
  11. #ifndef __FILEMISC_H__
  12. #define __FILEMISC_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. BOOL
  17. GetFileNameFromPath(
  18. IN LPCWSTR FullPath,
  19. IN OUT LPCWSTR *FileName // points to filename component in FullPath
  20. );
  21. BOOL
  22. GetFileNameFromPathA(
  23. IN LPCSTR FullPath,
  24. IN OUT LPCSTR *FileName // points to filename component in FullPath
  25. );
  26. BOOL
  27. TranslateFromSlash(
  28. IN LPWSTR szInput,
  29. IN OUT LPWSTR *pszOutput
  30. );
  31. BOOL
  32. TranslateToSlash(
  33. IN LPWSTR szInput,
  34. IN OUT LPWSTR *pszOutput
  35. );
  36. BOOL
  37. TranslateString(
  38. IN LPWSTR szInput,
  39. IN OUT LPWSTR *pszOutput, // optional
  40. IN WCHAR From,
  41. IN WCHAR To
  42. );
  43. BOOL
  44. FindAndOpenFile(
  45. IN LPCWSTR szFileName, // file to search for + open
  46. IN OUT LPWSTR pszFullPath, // file to fill fullpath with
  47. IN DWORD cchFullPath, // size of full path buffer, including NULL
  48. IN OUT PHANDLE phFile // resultant open file handle
  49. );
  50. BOOL
  51. HashEntireDiskImage(
  52. IN HANDLE hFile, // handle of file to hash
  53. IN LPBYTE FileHash // on success, buffer contains file hash
  54. );
  55. BOOL
  56. HashDiskImage(
  57. IN HANDLE hFile, // handle of file to hash
  58. IN LPBYTE FileHash // on success, buffer contains file hash
  59. );
  60. HINSTANCE
  61. LoadAndOpenResourceDll(
  62. IN LPCWSTR szFileName, // file name to load + open
  63. IN OUT LPWSTR pszFullPath, // buffer to fill file fullpath with
  64. IN DWORD cchFullPath, // size of full path buffer (chars), including NULL
  65. IN OUT PHANDLE phFile
  66. );
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif // __FILEMISC_H__