libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
WSAStartup.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 WSAStartup final : public WindowsFunctionCall {
36 public:
37 int16_t wVersionRequested() const;
39
42 std::shared_ptr<WSADATA> WSAData();
43
44 const std::string& function_name() const override;
45 const std::string& library_name() const override;
46 void write(std::ostream& os = std::cout) const override;
47 Json::Value json() const override;
48
49 int32_t result() const;
50 void result(int32_t result);
51
53 ~WSAStartup() override;
54
55 /* Injection helper */
56 static int32_t inject(int16_t wVersionRequested, const guest_ptr<void>& pWSAData);
57
58 static constexpr int ArgumentCount = 2;
59 inline static const std::string LibraryName = "ws2_32";
60 inline static const std::string FunctionName = "WSAStartup";
61
62 private:
63 /* Injection constructor */
65
66 private:
67 int16_t wVersionRequested_;
68 guest_ptr<void> pWSAData_;
69};
70
71} // namespace ws2_32
72} // namespace windows
73} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for ws2_32!WSAStartup.
Definition WSAStartup.hh:35
guest_ptr< void > pWSAData() const
const std::string & library_name() const override
Get the name of the library this call is for.
std::shared_ptr< WSADATA > WSAData()
static int32_t inject(int16_t wVersionRequested, const guest_ptr< void > &pWSAData)
Json::Value json() const override
Get the function as Json.
const std::string & function_name() const override
Get the function name.
static const std::string FunctionName
Definition WSAStartup.hh:60
static constexpr int ArgumentCount
Definition WSAStartup.hh:58
void pWSAData(const guest_ptr< void > &pWSAData)
void wVersionRequested(int16_t wVersionRequested)
static const std::string LibraryName
Definition WSAStartup.hh:59
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20