libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptAcquireContextW.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 advapi32 {
29
36 public:
39
41 void pszContainer(const guest_ptr<char16_t[]>& pszContainer);
42
44 void pszProvider(const guest_ptr<char16_t[]>& pszProvider);
45
46 uint32_t dwProvType() const;
47 void dwProvType(uint32_t dwProvType);
48
49 uint32_t dwFlags() const;
50 void dwFlags(uint32_t dwFlags);
51
52 const std::string& function_name() const override;
53 const std::string& library_name() const override;
54 void write(std::ostream& os = std::cout) const override;
55 Json::Value json() const override;
56
57 bool result() const;
58 void result(bool result);
59
62
63 /* Injection helper */
65 const guest_ptr<char16_t[]>& pszContainer,
66 const guest_ptr<char16_t[]>& pszProvider, uint32_t dwProvType,
67 uint32_t dwFlags);
68
69 static constexpr int ArgumentCount = 5;
70 inline static const std::string LibraryName = "advapi32";
71 inline static const std::string FunctionName = "CryptAcquireContextW";
72
73 private:
74 /* Injection constructor */
76 const guest_ptr<char16_t[]>& pszContainer,
77 const guest_ptr<char16_t[]>& pszProvider, uint32_t dwProvType,
78 uint32_t dwFlags);
79
80 private:
81 mutable guest_ptr<HCRYPTPROV> phProv_;
82 guest_ptr<void> pszContainer_;
83 guest_ptr<void> pszProvider_;
84 uint32_t dwProvType_;
85 uint32_t dwFlags_;
86};
87
88} // namespace advapi32
89} // namespace windows
90} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for advapi32!CryptAcquireContextW.
Definition CryptAcquireContextW.hh:35
static constexpr int ArgumentCount
Definition CryptAcquireContextW.hh:69
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void pszContainer(const guest_ptr< char16_t[]> &pszContainer)
void pszProvider(const guest_ptr< char16_t[]> &pszProvider)
static const std::string LibraryName
Definition CryptAcquireContextW.hh:70
const std::string & function_name() const override
Get the function name.
Json::Value json() const override
Get the function as Json.
static bool inject(const guest_ptr< HCRYPTPROV > &phProv, const guest_ptr< char16_t[]> &pszContainer, const guest_ptr< char16_t[]> &pszProvider, uint32_t dwProvType, uint32_t dwFlags)
void phProv(const guest_ptr< HCRYPTPROV > &phProv)
guest_ptr< char16_t[]> pszProvider() const
static const std::string FunctionName
Definition CryptAcquireContextW.hh:71
guest_ptr< char16_t[]> pszContainer() const
const std::string & library_name() const override
Get the name of the library this call is for.
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20