libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtQueryInformationFile.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 FileInformationLength() 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 FileInformationPtr(const guest_ptr<void>& pFileInformation) = 0;
94 virtual void FileInformationLength(uint32_t FileInformationLength) = 0;
101
102 /* Helper methods */
103 virtual const IO_STATUS_BLOCK* IoStatusBlock() const = 0;
105 virtual const FILE_INFORMATION* FileInformation() const = 0;
107
108 /*
109 * System call injection support. You probably want to use
110 * inject::system_call<NtQueryInformationFile>.
111 */
112 static NTSTATUS inject(uint64_t FileHandle, const guest_ptr<void>& pIoStatusBlock,
113 const guest_ptr<void>& pFileInformation, uint32_t FileInformationLength,
115};
116
117} /* namespace nt */
118} /* namespace windows */
119} /* namespace introvirt */
Definition guest_ptr.hh:88
An abstract class reprseneting a more specific file information buffer.
Definition FILE_INFORMATION.hh:38
Definition IO_STATUS_BLOCK.hh:31
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtQueryInformationFile system call.
Definition NtQueryInformationFile.hh:34
virtual void FileInformationClass(FILE_INFORMATION_CLASS FileInformationClass)=0
Setter for FileInformationClass.
virtual IO_STATUS_BLOCK * IoStatusBlock()=0
virtual const IO_STATUS_BLOCK * IoStatusBlock() const =0
virtual const FILE_INFORMATION * FileInformation() const =0
virtual guest_ptr< void > FileInformationPtr() const =0
Getter for FileInformationPtr.
static NTSTATUS inject(uint64_t FileHandle, const guest_ptr< void > &pIoStatusBlock, const guest_ptr< void > &pFileInformation, uint32_t FileInformationLength, FILE_INFORMATION_CLASS FileInformationClass)
virtual FILE_INFORMATION * FileInformation()=0
virtual void FileHandle(uint64_t FileHandle)=0
Setter for FileHandle.
virtual guest_ptr< void > IoStatusBlockPtr() const =0
Getter for IoStatusBlockPtr.
virtual void FileInformationPtr(const guest_ptr< void > &pFileInformation)=0
Setter for FileInformationPtr.
virtual uint64_t FileHandle() const =0
Getter for FileHandle.
virtual FILE_INFORMATION_CLASS FileInformationClass() const =0
Getter for FileInformationClass.
virtual void FileInformationLength(uint32_t FileInformationLength)=0
Setter for FileInformationLength.
virtual void IoStatusBlockPtr(const guest_ptr< void > &pIoStatusBlock)=0
Setter for IoStatusBlockPtr.
virtual uint32_t FileInformationLength() const =0
Getter for FileInformationLength.
Base type for NT system calls.
Definition NtSystemCall.hh:29
FILE_INFORMATION_CLASS
Definition FILE_INFORMATION_CLASS.hh:24
Core IntroVirt classes.
Definition Cr0.hh:20