728x90
반응형
728x170
using System;
using System.Runtime.InteropServices;
#region 커널 객체 보안 설정하기 - SetKernelObjectSecurity(handle, securityInformation, securityDescriptor)
/// <summary>
/// 커널 객체 보안 설정하기
/// </summary>
/// <param name="handle">커널 객체 핸들</param>
/// <param name="securityInformation">보안 정보</param>
/// <param name="securityDescriptor">보안 설명자</param>
/// <returns>처리 결과</returns>
[DllImport("advapi32", SetLastError = true)]
private static extern bool SetKernelObjectSecurity
(
IntPtr handle,
int securityInformation,
[In] byte[] securityDescriptor
);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[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] RtlSetProcessIsCritical API 함수 선언하기 (0) | 2021.05.25 |
[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 |
[C#/WIN32] DwmGetWindowAttribute API 함수 선언하기 (0) | 2021.05.25 |
댓글을 달아 주세요