libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptProtectMemory.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>
22#include <ostream>
23#include <string>
24
25namespace introvirt {
26namespace windows {
27namespace crypt32 {
28
35 public:
37 void pDataIn(const guest_ptr<uint8_t[]>& pDataIn);
38
39 uint32_t cbDataIn() const;
40 void cbDataIn(uint32_t cbDataIn);
41
42 uint32_t dwFlags() const;
43 void dwFlags(uint32_t dwFlags);
44
45 const std::string& function_name() const override;
46 const std::string& library_name() const override;
47 void write(std::ostream& os = std::cout) const override;
48 Json::Value json() const override;
49
50 bool result() const;
51 void result(bool result);
52
55
56 /* Injection helper */
57 static bool inject(const guest_ptr<uint8_t[]>& pDataIn, uint32_t cbDataIn, uint32_t dwFlags);
58
59 static constexpr int ArgumentCount = 3;
60 inline static const std::string LibraryName = "crypt32";
61 inline static const std::string FunctionName = "CryptProtectMemory";
62
63 private:
64 /* Injection constructor */
65 CryptProtectMemory(Event& event, const guest_ptr<uint8_t[]>& pDataIn, uint32_t cbDataIn,
66 uint32_t dwFlags);
67
68 private:
69 guest_ptr<void> pDataIn_;
70 uint32_t cbDataIn_;
71 uint32_t dwFlags_;
72};
73
74} // namespace crypt32
75} // namespace windows
76} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptProtectMemory.
Definition CryptProtectMemory.hh:34
const std::string & library_name() const override
Get the name of the library this call is for.
static const std::string LibraryName
Definition CryptProtectMemory.hh:60
void pDataIn(const guest_ptr< uint8_t[]> &pDataIn)
static bool inject(const guest_ptr< uint8_t[]> &pDataIn, uint32_t cbDataIn, uint32_t dwFlags)
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 CryptProtectMemory.hh:61
Json::Value json() const override
Get the function as Json.
static constexpr int ArgumentCount
Definition CryptProtectMemory.hh:59
const std::string & function_name() const override
Get the function name.
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20