728x90
반응형
728x170
■ RtlSetProcessIsCritical API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
using System.Runtime.InteropServices;
#region 크리티컬 프로세스 설정하기 - RtlSetProcessIsCritical(newValue, oldValue, needSCB)
/// <summary>
/// 크리티컬 프로세스 설정하기
/// </summary>
/// <param name="newValue">신규 값</param>
/// <param name="oldValue">기존 값</param>
/// <param name="needSCB">시스템 중요 중단 활성화 여부</param>
[DllImport("ntdll", SetLastError = true)]
private static extern void RtlSetProcessIsCritical(uint newValue, uint oldValue, uint needSCB);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[C#/WIN32] IsProcessorFeaturePresent API 함수 선언하기 (0) | 2021.06.05 |
---|---|
[C#/WIN32] GetLogicalProcessorInformation API 함수 선언하기 (0) | 2021.06.05 |
[C#/WIN32] GetCursorPos API 함수 선언하기 (0) | 2021.05.31 |
[C#/WIN32] GetDiskFreeSpaceEx API 함수 선언하기 (0) | 2021.05.30 |
[C#/WIN32] FormatMessage API 함수 선언하기 (0) | 2021.05.26 |
[C#/WIN32] SetKernelObjectSecurity API 함수 선언하기 (0) | 2021.05.25 |
[C#/WIN32] GetKernelObjectSecurity API 함수 선언하기 (0) | 2021.05.25 |
[C#/WIN32] SetThreadExecutionState API 함수 선언하기 (0) | 2021.05.25 |
[C#/WIN32] SetWindowDisplayAffinity API 함수 선언하기 (0) | 2021.05.25 |
[C#/WIN32] GetWindowLong API 함수 선언하기 (0) | 2021.05.25 |
댓글을 달아 주세요