libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
VS_VERSIONINFO.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#pragma once
17
18#include "FILE_INFO.hh"
19
21
22#include <cstdint>
23
24namespace introvirt {
25namespace windows {
26namespace pe {
27
34class VS_VERSIONINFO : public FILE_INFO {
35 public:
36 /*
37 * Will return nullptr if wValueLength() is 0
38 */
39 virtual const VS_FIXEDFILEINFO& Value() const = 0;
40
44 virtual const pe::StringFileInfo* StringFileInfo() const = 0;
45
49 virtual const pe::VarFileInfo* VarFileInfo() const = 0;
50
51 static std::unique_ptr<VS_VERSIONINFO> make_unique(const guest_ptr<void>& ptr);
52};
53
54} /* namespace pe */
55} /* namespace windows */
56} /* namespace introvirt */
Definition guest_ptr.hh:88
A common base class for VS_VERSIONINFO types.
Definition FILE_INFO.hh:31
Definition StringFileInfo.hh:25
Definition VS_FIXEDFILEINFO.hh:30
Definition VS_VERSIONINFO.hh:34
static std::unique_ptr< VS_VERSIONINFO > make_unique(const guest_ptr< void > &ptr)
virtual const pe::StringFileInfo * StringFileInfo() const =0
virtual const pe::VarFileInfo * VarFileInfo() const =0
virtual const VS_FIXEDFILEINFO & Value() const =0
TODO: Implement this class.
Definition VarFileInfo.hh:30
Core IntroVirt classes.
Definition Cr0.hh:20