libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
HANDLE_ATTRIBUTES.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 <introvirt/util/json/json.hh>
19
20#include <cstdint>
21#include <string>
22
23namespace introvirt {
24namespace windows {
25namespace nt {
26
28 OBJ_INHERIT = 0x00000002,
29 OBJ_PERMANENT = 0x00000010,
30 OBJ_EXCLUSIVE = 0x00000020,
31 OBJ_CASE_INSENSITIVE = 0x00000040,
32 OBJ_OPENIF = 0x00000080,
33 OBJ_OPENLINK = 0x00000100,
34 OBJ_KERNEL_HANDLE = 0x00000200,
35 OBJ_FORCE_ACCESS_CHECK = 0x00000400,
36 OBJ_VALID_ATTRIBUTES = 0x000007f2
37};
38
40 public:
41 HANDLE_ATTRIBUTES(uint32_t flags = 0);
44
45 public:
46 uint32_t get() const;
47 Json::Value json() const;
48
49 operator uint32_t() const;
50 operator Json::Value() const;
51
52 bool isSet(HANDLE_ATTRIBUTES_FLAG flag) const;
55
56 uint32_t flags;
57};
58
59const std::string& to_string(HANDLE_ATTRIBUTES_FLAG atts);
60
61std::string to_string(HANDLE_ATTRIBUTES type);
62
63} // namespace nt
64} // namespace windows
65} // namespace introvirt
Definition HANDLE_ATTRIBUTES.hh:39
HANDLE_ATTRIBUTES & operator=(const HANDLE_ATTRIBUTES &)
bool isSet(HANDLE_ATTRIBUTES_FLAG flag) const
void set(HANDLE_ATTRIBUTES_FLAG flag)
HANDLE_ATTRIBUTES(const HANDLE_ATTRIBUTES &)
void clear(HANDLE_ATTRIBUTES_FLAG flag)
uint32_t flags
Definition HANDLE_ATTRIBUTES.hh:56
HANDLE_ATTRIBUTES_FLAG
Definition HANDLE_ATTRIBUTES.hh:27
const std::string & to_string(APPHELPCACHESERVICECLASS val)
Core IntroVirt classes.
Definition Cr0.hh:20