SMB1FileStoreHelper.Set.cs 874 B

123456789101112131415161718192021222324
  1. /* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.IO;
  10. using System.Text;
  11. using SMBLibrary.SMB1;
  12. using Utilities;
  13. namespace SMBLibrary.Server.SMB1
  14. {
  15. internal partial class SMB1FileStoreHelper
  16. {
  17. public static NTStatus SetFileInformation(INTFileStore fileStore, object handle, SetInformation information)
  18. {
  19. FileInformation fileInformation = SetInformationHelper.ToFileInformation(information);
  20. return fileStore.SetFileInformation(handle, fileInformation);
  21. }
  22. }
  23. }