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