libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtConnectPort.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
33 public:
34 /* Direct parameter getters */
35
53 virtual guest_ptr<void> SecurityQosPtr() const = 0;
84
85 /* Direct parameter setters */
86
92 virtual void ClientPortHandlePtr(const guest_ptr<void>& pClientPortHandle) = 0;
98 virtual void ServerPortNamePtr(const guest_ptr<void>& pServerPortName) = 0;
104 virtual void SecurityQosPtr(const guest_ptr<void>& pSecurityQos) = 0;
110 virtual void ClientSharedMemoryPtr(const guest_ptr<void>& pClientSharedMemory) = 0;
116 virtual void ServerSharedMemoryPtr(const guest_ptr<void>& pServerSharedMemory) = 0;
122 virtual void MaximumMessageLengthPtr(const guest_ptr<void>& pMaximumMessageLength) = 0;
128 virtual void ConnectionInfoPtr(const guest_ptr<void>& pConnectionInfo) = 0;
134 virtual void ConnectionInfoLengthPtr(const guest_ptr<void>& pConnectionInfoLength) = 0;
135
136 /* Helper methods */
137 virtual uint64_t ClientPortHandle() const = 0;
138 virtual void ClientPortHandle(uint64_t ClientPortHandle) = 0;
139 virtual const UNICODE_STRING* ServerPortName() const = 0;
141 virtual uint32_t MaximumMessageLength() const = 0;
142 virtual void MaximumMessageLength(uint32_t MaximumMessageLength) = 0;
143 virtual uint32_t ConnectionInfoLength() const = 0;
144 virtual void ConnectionInfoLength(uint32_t ConnectionInfoLength) = 0;
145
146 /*
147 * System call injection support. You probably want to use inject::system_call<NtConnectPort>.
148 */
150 const guest_ptr<void>& pSecurityQos,
151 const guest_ptr<void>& pClientSharedMemory,
152 const guest_ptr<void>& pServerSharedMemory,
153 uint32_t* MaximumMessageLength, const guest_ptr<void>& pConnectionInfo,
154 const uint32_t* ConnectionInfoLength);
155};
156
157} /* namespace nt */
158} /* namespace windows */
159} /* namespace introvirt */
Definition guest_ptr.hh:88
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Handler class for the NtConnectPort system call.
Definition NtConnectPort.hh:32
virtual guest_ptr< void > ServerSharedMemoryPtr() const =0
Getter for ServerSharedMemoryPtr.
virtual void ServerPortNamePtr(const guest_ptr< void > &pServerPortName)=0
Setter for ServerPortNamePtr.
virtual guest_ptr< void > ConnectionInfoPtr() const =0
Getter for ConnectionInfoPtr.
virtual guest_ptr< void > ConnectionInfoLengthPtr() const =0
Getter for ConnectionInfoLengthPtr.
virtual uint32_t MaximumMessageLength() const =0
virtual guest_ptr< void > ClientPortHandlePtr() const =0
Getter for ClientPortHandlePtr.
virtual void ConnectionInfoLength(uint32_t ConnectionInfoLength)=0
virtual void ConnectionInfoLengthPtr(const guest_ptr< void > &pConnectionInfoLength)=0
Setter for ConnectionInfoLengthPtr.
virtual void ClientPortHandlePtr(const guest_ptr< void > &pClientPortHandle)=0
Setter for ClientPortHandlePtr.
virtual void MaximumMessageLengthPtr(const guest_ptr< void > &pMaximumMessageLength)=0
Setter for MaximumMessageLengthPtr.
virtual void ClientPortHandle(uint64_t ClientPortHandle)=0
virtual void MaximumMessageLength(uint32_t MaximumMessageLength)=0
virtual guest_ptr< void > MaximumMessageLengthPtr() const =0
Getter for MaximumMessageLengthPtr.
static NTSTATUS inject(uint64_t &ClientPortHandle, const UNICODE_STRING &ServerPortName, const guest_ptr< void > &pSecurityQos, const guest_ptr< void > &pClientSharedMemory, const guest_ptr< void > &pServerSharedMemory, uint32_t *MaximumMessageLength, const guest_ptr< void > &pConnectionInfo, const uint32_t *ConnectionInfoLength)
virtual void ClientSharedMemoryPtr(const guest_ptr< void > &pClientSharedMemory)=0
Setter for ClientSharedMemoryPtr.
virtual const UNICODE_STRING * ServerPortName() const =0
virtual guest_ptr< void > SecurityQosPtr() const =0
Getter for SecurityQosPtr.
virtual uint32_t ConnectionInfoLength() const =0
virtual void SecurityQosPtr(const guest_ptr< void > &pSecurityQos)=0
Setter for SecurityQosPtr.
virtual UNICODE_STRING * ServerPortName()=0
virtual void ConnectionInfoPtr(const guest_ptr< void > &pConnectionInfo)=0
Setter for ConnectionInfoPtr.
virtual guest_ptr< void > ServerPortNamePtr() const =0
Getter for ServerPortNamePtr.
virtual void ServerSharedMemoryPtr(const guest_ptr< void > &pServerSharedMemory)=0
Setter for ServerSharedMemoryPtr.
virtual guest_ptr< void > ClientSharedMemoryPtr() const =0
Getter for ClientSharedMemoryPtr.
virtual uint64_t ClientPortHandle() const =0
Base type for NT system calls.
Definition NtSystemCall.hh:29
Class for the Windows UNICODE_STRING structure.
Definition UNICODE_STRING.hh:37
Core IntroVirt classes.
Definition Cr0.hh:20