/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/Interop/Windows/RtlQueryProcessPlaceholderCompatibilityMode.cs
25 строк
827 B
Ilya
Replace `DllImport` with `LibraryImport` - 1 (#18603)
30 ноя 2022, 21:00
Не верифицирован
30 ноя 2022, 21:00
3dc95ce
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #nullable enable using System.Runtime.InteropServices; internal static partial class Interop { internal static unsafe partial class Windows { internal const sbyte PHCM_APPLICATION_DEFAULT = 0; internal const sbyte PHCM_DISGUISE_PLACEHOLDER = 1; internal const sbyte PHCM_EXPOSE_PLACEHOLDERS = 2; internal const sbyte PHCM_MAX = 2; internal const sbyte PHCM_ERROR_INVALID_PARAMETER = -1; internal const sbyte PHCM_ERROR_NO_TEB = -2; [LibraryImport("ntdll.dll")] internal static partial sbyte RtlQueryProcessPlaceholderCompatibilityMode(); [LibraryImport("ntdll.dll")] internal static partial sbyte RtlSetProcessPlaceholderCompatibilityMode(sbyte pcm); } }