libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtSetVolumeInformationFile.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/* This file is automatically generated. Do not edit. */
18#pragma once
19
20#include "NtSystemCall.hh"
24
25#include <memory>
26
27namespace introvirt {
28namespace windows {
29namespace nt {
30
35 public:
36 /* Direct parameter getters */
37
43 virtual uint64_t FileHandle() const = 0;
49 virtual guest_ptr<void> IoStatusBlockPtr() const = 0;
61 virtual uint32_t FileSystemInformationLength() const = 0;
68
69 /* Direct parameter setters */
70
76 virtual void FileHandle(uint64_t FileHandle) = 0;
82 virtual void IoStatusBlockPtr(const guest_ptr<void>& pIoStatusBlock) = 0;
88 virtual void FileSystemInformationPtr(const guest_ptr<void>& pFileSystemInformation) = 0;
103
104 /* Helper methods */
105 virtual const IO_STATUS_BLOCK* IoStatusBlock() const = 0;
107 virtual const FS_INFORMATION* FileSystemInformation() const = 0;
109
110 /*
111 * System call injection support. You probably want to use
112 * inject::system_call<NtSetVolumeInformationFile>.
113 */
114 static NTSTATUS inject(uint64_t FileHandle, const guest_ptr<void>& pIoStatusBlock,
115 const guest_ptr<void>& pFileSystemInformation,
118};
119
120} /* namespace nt */
121} /* namespace windows */
122} /* namespace introvirt */
Definition guest_ptr.hh:88
An abstract class reprseneting a more specific filesystem information buffer.
Definition FS_INFORMATION.hh:36
Definition IO_STATUS_BLOCK.hh:31
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtSetVolumeInformationFile system call.
Definition NtSetVolumeInformationFile.hh:34
virtual void FileHandle(uint64_t FileHandle)=0
Setter for FileHandle.
virtual void FileSystemInformationLength(uint32_t FileSystemInformationLength)=0
Setter for FileSystemInformationLength.
virtual const FS_INFORMATION * FileSystemInformation() const =0
virtual uint32_t FileSystemInformationLength() const =0
Getter for FileSystemInformationLength.
virtual FS_INFORMATION * FileSystemInformation()=0
virtual guest_ptr< void > FileSystemInformationPtr() const =0
Getter for FileSystemInformationPtr.
virtual FS_INFORMATION_CLASS FileSystemInformationClass() const =0
Getter for FileSystemInformationClass.
virtual const IO_STATUS_BLOCK * IoStatusBlock() const =0
virtual guest_ptr< void > IoStatusBlockPtr() const =0
Getter for IoStatusBlockPtr.
static NTSTATUS inject(uint64_t FileHandle, const guest_ptr< void > &pIoStatusBlock, const guest_ptr< void > &pFileSystemInformation, uint32_t FileSystemInformationLength, FS_INFORMATION_CLASS FileSystemInformationClass)
virtual uint64_t FileHandle() const =0
Getter for FileHandle.
virtual void IoStatusBlockPtr(const guest_ptr< void > &pIoStatusBlock)=0
Setter for IoStatusBlockPtr.
virtual void FileSystemInformationClass(FS_INFORMATION_CLASS FileSystemInformationClass)=0
Setter for FileSystemInformationClass.
virtual void FileSystemInformationPtr(const guest_ptr< void > &pFileSystemInformation)=0
Setter for FileSystemInformationPtr.
Base type for NT system calls.
Definition NtSystemCall.hh:29
FS_INFORMATION_CLASS
Definition FS_INFORMATION_CLASS.hh:25
Core IntroVirt classes.
Definition Cr0.hh:20