libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
WSAConnect.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/* This file is automatically generated. Do not edit. */
17#pragma once
18
19#include <cstdint>
26#include <ostream>
27#include <string>
28
29namespace introvirt {
30namespace windows {
31namespace ws2_32 {
32
38class WSAConnect final : public WindowsFunctionCall {
39 public:
40 SOCKET s() const;
41 void s(SOCKET s);
42
45 std::shared_ptr<SOCKADDR> name();
46
47 int32_t namelen() const;
48 void namelen(int32_t namelen);
49
52 std::shared_ptr<WSABUF> CallerData();
53
56 std::shared_ptr<WSABUF> CalleeData();
57
60 std::shared_ptr<QOS> SQOS();
61
64 std::shared_ptr<QOS> GQOS();
65
66 const std::string& function_name() const override;
67 const std::string& library_name() const override;
68 void write(std::ostream& os = std::cout) const override;
69 Json::Value json() const override;
70
71 int32_t result() const;
72 void result(int32_t result);
73
75 ~WSAConnect() override;
76
77 /* Injection helper */
78 static int32_t inject(SOCKET s, const guest_ptr<void>& pname, int32_t namelen,
81
82 static constexpr int ArgumentCount = 7;
83 inline static const std::string LibraryName = "ws2_32";
84 inline static const std::string FunctionName = "WSAConnect";
85
86 private:
87 /* Injection constructor */
88 WSAConnect(Event& event, SOCKET s, const guest_ptr<void>& pname, int32_t namelen,
91
92 private:
93 SOCKET s_;
94 guest_ptr<void> pname_;
95 int32_t namelen_;
96 guest_ptr<void> pCallerData_;
97 guest_ptr<void> pCalleeData_;
98 guest_ptr<void> pSQOS_;
99 guest_ptr<void> pGQOS_;
100};
101
102} // namespace ws2_32
103} // namespace windows
104} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Helper class to transparently convert between guest size and a value.
Definition guest_size_t_ptr.hh:498
Definition WindowsFunctionCall.hh:31
Handler for ws2_32!WSAConnect.
Definition WSAConnect.hh:38
std::shared_ptr< WSABUF > CalleeData()
static constexpr int ArgumentCount
Definition WSAConnect.hh:82
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void pSQOS(const guest_ptr< void > &pSQOS)
std::shared_ptr< WSABUF > CallerData()
void pCallerData(const guest_ptr< void > &pCallerData)
void pname(const guest_ptr< void > &pname)
std::shared_ptr< SOCKADDR > name()
static int32_t inject(SOCKET s, const guest_ptr< void > &pname, int32_t namelen, const guest_ptr< void > &pCallerData, const guest_ptr< void > &pCalleeData, const guest_ptr< void > &pSQOS, const guest_ptr< void > &pGQOS)
void pGQOS(const guest_ptr< void > &pGQOS)
Json::Value json() const override
Get the function as Json.
guest_ptr< void > pCallerData() const
const std::string & library_name() const override
Get the name of the library this call is for.
static const std::string FunctionName
Definition WSAConnect.hh:84
guest_ptr< void > pGQOS() const
static const std::string LibraryName
Definition WSAConnect.hh:83
guest_ptr< void > pCalleeData() const
void pCalleeData(const guest_ptr< void > &pCalleeData)
const std::string & function_name() const override
Get the function name.
guest_ptr< void > pSQOS() const
guest_ptr< void > pname() const
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20