mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-22 17:25:54 +02:00
Client: SMB2FileStore: SetFileInformation implementation
This commit is contained in:
parent
3f733c352d
commit
d505998a25
1 changed files with 14 additions and 1 deletions
|
@ -177,7 +177,20 @@ namespace SMBLibrary.Client
|
|||
|
||||
public NTStatus SetFileInformation(object handle, FileInformation information)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
SetInfoRequest request = new SetInfoRequest();
|
||||
request.InfoType = InfoType.File;
|
||||
request.FileInformationClass = information.FileInformationClass;
|
||||
request.FileId = (FileID)handle;
|
||||
request.SetFileInformation(information);
|
||||
|
||||
TrySendCommand(request);
|
||||
SMB2Command response = m_client.WaitForCommand(SMB2CommandName.SetInfo);
|
||||
if (response != null)
|
||||
{
|
||||
return response.Header.Status;
|
||||
}
|
||||
|
||||
return NTStatus.STATUS_INVALID_SMB;
|
||||
}
|
||||
|
||||
public NTStatus GetFileSystemInformation(out FileSystemInformation result, FileSystemInformationClass informationClass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue