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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. spwinp.h
  5. Abstract:
  6. Win32 portability layer
  7. file i/o
  8. Get/SetLastError
  9. Author:
  10. Calin Negreanu (calinn) 27-Apr-2000
  11. Revision History:
  12. Jay Krell (a-JayK) November 2000
  13. ported from windows\winstate\... to admin\ntsetup\textmode\kernel\spcab.h
  14. --*/
  15. #define PATHS_ALWAYS_NATIVE 1
  16. NTSTATUS
  17. SpConvertWin32FileOpenOrCreateToNtFileOpenOrCreate(
  18. ULONG Win32OpenOrCreate,
  19. ULONG* NtOpenOrCreate
  20. );
  21. NTSTATUS
  22. SpConvertWin32FileAccessToNtFileAccess(
  23. ULONG Win32FileAccess,
  24. ULONG* NtFileAccess
  25. );
  26. NTSTATUS
  27. SpConvertWin32FileShareToNtFileShare(
  28. ULONG Win32FileShare,
  29. ULONG* NtFileShare
  30. );
  31. HANDLE
  32. SpCreateFileW(
  33. PCUNICODE_STRING Path,
  34. IN ULONG FileAccess,
  35. IN ULONG FileShare,
  36. IN LPSECURITY_ATTRIBUTES SecurityAttributes,
  37. IN ULONG Win32FileOpenOrCreate,
  38. IN ULONG FlagsAndAttributes,
  39. IN HANDLE TemplateFile
  40. );
  41. BOOL
  42. SpDeleteFileW(
  43. PCUNICODE_STRING Path
  44. );
  45. #if !PATHS_ALWAYS_NATIVE
  46. NTSTATUS
  47. SpConvertPathToNtPath(
  48. PRTL_UNICODE_STRING_BUFFER Buffer
  49. )
  50. #endif