libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
WSASocketA.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>
23#include <ostream>
24#include <string>
25
26namespace introvirt {
27namespace windows {
28namespace ws2_32 {
29
35class WSASocketA final : public WindowsFunctionCall {
36 public:
37 int32_t af() const;
38 void af(int32_t af);
39
40 int32_t type() const;
41 void type(int32_t type);
42
43 int32_t protocol() const;
44 void protocol(int32_t protocol);
45
48
49 uint32_t g() const;
50 void g(uint32_t g);
51
52 uint32_t dwFlags() const;
53 void dwFlags(uint32_t dwFlags);
54
55 const std::string& function_name() const override;
56 const std::string& library_name() const override;
57 void write(std::ostream& os = std::cout) const override;
58 Json::Value json() const override;
59
60 SOCKET result() const;
62
64 ~WSASocketA() override;
65
66 /* Injection helper */
67 static SOCKET inject(int32_t af, int32_t type, int32_t protocol,
68 const guest_ptr<void>& pProtocolInfo, uint32_t g, uint32_t dwFlags);
69
70 static constexpr int ArgumentCount = 6;
71 inline static const std::string LibraryName = "ws2_32";
72 inline static const std::string FunctionName = "WSASocketA";
73
74 private:
75 /* Injection constructor */
76 WSASocketA(Event& event, int32_t af, int32_t type, int32_t protocol,
77 const guest_ptr<void>& pProtocolInfo, uint32_t g, uint32_t dwFlags);
78
79 private:
80 int32_t af_;
81 int32_t type_;
82 int32_t protocol_;
83 mutable guest_ptr<void> pProtocolInfo_;
84 uint32_t g_;
85 uint32_t dwFlags_;
86};
87
88} // namespace ws2_32
89} // namespace windows
90} // 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!WSASocketA.
Definition WSASocketA.hh:35
static const std::string LibraryName
Definition WSASocketA.hh:71
guest_ptr< void > pProtocolInfo() const
static SOCKET inject(int32_t af, int32_t type, int32_t protocol, const guest_ptr< void > &pProtocolInfo, uint32_t g, uint32_t dwFlags)
const std::string & library_name() const override
Get the name of the library this call is for.
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
static const std::string FunctionName
Definition WSASocketA.hh:72
void pProtocolInfo(const guest_ptr< void > &pProtocolInfo)
static constexpr int ArgumentCount
Definition WSASocketA.hh:70
const std::string & function_name() const override
Get the function name.
Json::Value json() const override
Get the function as Json.
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20