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.

61 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. smb64.h
  5. Abstract:
  6. This module defines all functions, along with implementations for inline functions
  7. related to thunking structures for SMB to put them on the wire
  8. Revision History:
  9. David Kruse [DKruse] 30-November 2000
  10. --*/
  11. #ifndef _SMB64
  12. #define _SMB64
  13. // Need to thunk RenameInfo before hitting the wire
  14. typedef struct _FILE_RENAME_INFORMATION32 {
  15. BOOLEAN ReplaceIfExists;
  16. ULONG RootDirectory;
  17. ULONG FileNameLength;
  18. WCHAR FileName[1];
  19. } FILE_RENAME_INFORMATION32, *PFILE_RENAME_INFORMATION32;
  20. // For link tracking code thunking
  21. typedef struct _REMOTE_LINK_TRACKING_INFORMATION32_ {
  22. ULONG TargetFileObject;
  23. ULONG TargetLinkTrackingInformationLength;
  24. UCHAR TargetLinkTrackingInformationBuffer[1];
  25. } REMOTE_LINK_TRACKING_INFORMATION32,
  26. *PREMOTE_LINK_TRACKING_INFORMATION32;
  27. #ifdef _WIN64
  28. PBYTE
  29. Smb64ThunkFileRenameInfo(
  30. IN PFILE_RENAME_INFORMATION pRenameInfo,
  31. IN OUT PULONG BufferSize,
  32. OUT NTSTATUS *pStatus
  33. );
  34. PBYTE
  35. Smb64ThunkRemoteLinkTrackingInfo(
  36. IN PBYTE pRemoteTrackingInfo,
  37. IN OUT PULONG BufferSize,
  38. OUT NTSTATUS* pStatus
  39. );
  40. #define Smb64ReleaseThunkData(X) if( X ) RxFreePool( X );
  41. #endif // _WIN64
  42. #endif // _SMB64