libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtCreatePort.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"
22
23#include <memory>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
32class NtCreatePort : public NtSystemCall {
33 public:
34 /* Direct parameter getters */
35
41 virtual guest_ptr<void> PortHandlePtr() const = 0;
53 virtual uint32_t MaxConnectionInfoLength() const = 0;
59 virtual uint32_t MaxMessageLength() const = 0;
65 virtual uint32_t MaxPoolUsage() const = 0;
66
67 /* Direct parameter setters */
68
74 virtual void PortHandlePtr(const guest_ptr<void>& pPortHandle) = 0;
80 virtual void ObjectAttributesPtr(const guest_ptr<void>& pObjectAttributes) = 0;
92 virtual void MaxMessageLength(uint32_t MaxMessageLength) = 0;
98 virtual void MaxPoolUsage(uint32_t MaxPoolUsage) = 0;
99
100 /* Helper methods */
101 virtual uint64_t PortHandle() const = 0;
102 virtual void PortHandle(uint64_t PortHandle) = 0;
103 virtual const OBJECT_ATTRIBUTES* ObjectAttributes() const = 0;
105
106 /*
107 * System call injection support. You probably want to use inject::system_call<NtCreatePort>.
108 */
109 static NTSTATUS inject(uint64_t& PortHandle, const guest_ptr<void>& pObjectAttributes,
110 uint32_t MaxConnectionInfoLength, uint32_t MaxMessageLength,
111 uint32_t MaxPoolUsage);
112};
113
114} /* namespace nt */
115} /* namespace windows */
116} /* namespace introvirt */
Definition guest_ptr.hh:88
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtCreatePort system call.
Definition NtCreatePort.hh:32
virtual guest_ptr< void > PortHandlePtr() const =0
Getter for PortHandlePtr.
virtual uint32_t MaxConnectionInfoLength() const =0
Getter for MaxConnectionInfoLength.
virtual void MaxPoolUsage(uint32_t MaxPoolUsage)=0
Setter for MaxPoolUsage.
virtual void ObjectAttributesPtr(const guest_ptr< void > &pObjectAttributes)=0
Setter for ObjectAttributesPtr.
virtual uint32_t MaxPoolUsage() const =0
Getter for MaxPoolUsage.
virtual void PortHandle(uint64_t PortHandle)=0
virtual const OBJECT_ATTRIBUTES * ObjectAttributes() const =0
virtual uint32_t MaxMessageLength() const =0
Getter for MaxMessageLength.
virtual guest_ptr< void > ObjectAttributesPtr() const =0
Getter for ObjectAttributesPtr.
virtual void MaxMessageLength(uint32_t MaxMessageLength)=0
Setter for MaxMessageLength.
virtual void MaxConnectionInfoLength(uint32_t MaxConnectionInfoLength)=0
Setter for MaxConnectionInfoLength.
virtual OBJECT_ATTRIBUTES * ObjectAttributes()=0
static NTSTATUS inject(uint64_t &PortHandle, const guest_ptr< void > &pObjectAttributes, uint32_t MaxConnectionInfoLength, uint32_t MaxMessageLength, uint32_t MaxPoolUsage)
virtual void PortHandlePtr(const guest_ptr< void > &pPortHandle)=0
Setter for PortHandlePtr.
virtual uint64_t PortHandle() const =0
Base type for NT system calls.
Definition NtSystemCall.hh:29
Definition OBJECT_ATTRIBUTES.hh:38
Core IntroVirt classes.
Definition Cr0.hh:20