Constants - Windows API

C#

public const int INFINITE = 0xFFFF;

public const uint PAGE_READONLY = 0x2;
public const uint FILE_MAP_READ = 0x0004;
public const int MAX_PATH = 260;
public const uint IOCTL_KERNELMEMORY_GETOBJECTNAME = 0x80002004;

public const int SystemHandleInformation = 16;
public const uint STATUS_INFO_LENGTH_MISMATCH = 0xC0000004;
public const int STATUS_SUCCESS = 0x0;

public const int ObjectBasicInformation = 0; // 0 Y N
public const int ObjectNameInformation = 1; // 1 Y N
public const int ObjectTypeInformation = 2; // 2 Y N
public const int ObjectAllTypesInformation = 3; // 3 Y N
public const int ObjectHandleInformation = 4; // 4 Y Y

public const int PROCESS_CREATE_THREAD = 0x2;
public const int PROCESS_VM_OPERATION = 0x8;
public const int PROCESS_VM_READ = 0x10;
public const int PROCESS_VM_WRITE = 0x20;
public const int PROCESS_DUP_HANDLE = (0x40);
public const int DUPLICATE_SAME_ACCESS = 0x2;
public const int TH32CS_SNAPPROCESS = 0x2;

public const int PIPE_NOWAIT = 0x1;
public const int PIPE_WAIT = 0x0;
public const int PIPE_READMODE_MESSAGE = 0x2;
public const int PIPE_READMODE_BYTE = 0x0;

public const int OBJ_INHERIT = 0x2;
public const int OBJ_PERMANENT = 0x10;
public const int OBJ_EXCLUSIVE = 0x20;
public const int OBJ_CASE_INSENSITIVE = 0x40;
public const int OBJ_OPENIF = 0x80;
public const int OBJ_OPENLINK = 0x100;
public const int OBJ_KERNEL_HANDLE = 0x200;

public const int DIRECTORY_QUERY = 0x1;
public const int DIRECTORY_TRAVERSE = 0x2;
public const int DIRECTORY_CREATE_OBJECT = 0x4;
public const int DIRECTORY_CREATE_SUBDIRECTORY = 0x8;

public const int SYMBOLIC_LINK_QUERY = 0x1;

public const uint STATUS_NO_MORE_ENTRIES = 0x8000001A;
public const uint STATUS_BUFFER_TOO_SMALL = 0xC0000023;

private const int MMSYSERR_NOERROR = 0;
private const int MAXPNAMELEN = 32;
private const int MIXER_LONG_NAME_CHARS = 64;
private const int MIXER_SHORT_NAME_CHARS = 16;
private const int MIXER_GETLINEINFOF_COMPONENTTYPE = 3;
private const int MIXER_GETLINECONTROLSF_ONEBYTYPE = 2;
private const int MIXER_SETCONTROLDETAILSF_VALUE = 0;
private const int MIXER_GETCONTROLDETAILSF_VALUE = 0;
private const int MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = 4;
private const int MIXERLINE_COMPONENTTYPE_DST_FIRST = 0;
private const int MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER = 4100;
private const int MIXERCONTROL_CONTROLTYPE_VOLUME = 1342373889;

public const int BM_CLICK = 245;
public const int WM_LBUTTONDOWN = 513;	// &H201
public const int WM_LBUTTONUP = 514;	// &H202
public const int BM_SETSTATE = 243;

private const int SRCCOPY = 13369376;