첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
본 블로그는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 블로그 콘텐츠 향상을 위해 쓰여집니다.

728x90
반응형
728x170
using System;
using System.Runtime.InteropServices;

#region 프로세스 열기 - OpenProcess(processAccessFlag, inheritHandle, processID)

/// <summary>
/// 프로세스 열기
/// </summary>
/// <param name="processAccessFlag">프로세스 액세스 플래그</param>
/// <param name="inheritHandle">핸들 상속 여부</param>
/// <param name="processID">프로세스 ID</param>
/// <returns>프로세스 핸들</returns>
[DllImport("kernel32", SetLastError = true)]
private static extern IntPtr OpenProcess(ProcessAccessFlag processAccessFlag, bool inheritHandle, int processID);

#endregion

/// <summary>
/// 프로세스 액세스 플래그
/// </summary>
[Flags]
public enum ProcessAccessFlag : uint
{
    /// <summary>
    /// All
    /// </summary>
    All = 0x001f0fff,

    /// <summary>
    /// Terminate
    /// </summary>
    Terminate = 0x00000001,

    /// <summary>
    /// CreateThread
    /// </summary>
    CreateThread = 0x00000002,

    /// <summary>
    /// VirtualMemoryOperation
    /// </summary>
    VirtualMemoryOperation = 0x00000008,

    /// <summary>
    /// VirtualMemoryRead
    /// </summary>
    VirtualMemoryRead = 0x00000010,

    /// <summary>
    /// VirtualMemoryWrite
    /// </summary>
    VirtualMemoryWrite = 0x00000020,

    /// <summary>
    /// DuplicateHandle
    /// </summary>
    DuplicateHandle = 0x00000040,

    /// <summary>
    /// CreateProcess
    /// </summary>
    CreateProcess = 0x000000080,

    /// <summary>
    /// SetQuota
    /// </summary>
    SetQuota = 0x00000100,

    /// <summary>
    /// SetInformation
    /// </summary>
    SetInformation = 0x00000200,

    /// <summary>
    /// QueryInformation
    /// </summary>
    QueryInformation = 0x00000400,

    /// <summary>
    /// QueryLimitedInformation
    /// </summary>
    QueryLimitedInformation = 0x00001000,

    /// <summary>
    /// Synchronize
    /// </summary>
    Synchronize = 0x00100000
}
728x90
반응형
그리드형(광고전용)
Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요