libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
SystemCallIndex.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 <cstdint>
19#include <ostream>
20#include <string>
21
22namespace introvirt {
23namespace windows {
24
30enum class SystemCallIndex : uint32_t {
31 // Nt
95 NtClose,
230 NtLoadKey,
261 NtOpenKey,
401 NtSaveKey,
507
508 // Win32k
1040 NtGdiFlush,
1145 NtGdiInit,
1965
1967
1969 UNKNOWN_SYSTEM_CALL = 0xFFFFFFFF,
1970};
1971
1978const std::string& to_string(SystemCallIndex index);
1979
1984
1988std::ostream& operator<<(std::ostream&, SystemCallIndex index);
1989
1990} // namespace windows
1991} // namespace introvirt
std::ostream & operator<<(std::ostream &os, const Utf16String &str)
SystemCallIndex
This is our "normalized" list of Windows system calls.
Definition SystemCallIndex.hh:30
const std::string & to_string(const Utf16String &)
SystemCallIndex system_call_from_string(std::string name)
Given a string (like 'NtOpenFile'), return the enum value.
Core IntroVirt classes.
Definition Cr0.hh:20