Kernel.cs

 using System;
using System.Runtime.InteropServices;
using System.Text; using HANDLE = System.IntPtr;
using HWND = System.IntPtr; namespace Win32
{
public struct OVERLAPPED
{
public int Internal;
public int InternalHigh;
public int offset;
public int OffsetHigh;
public HANDLE hEvent;
}
public struct SECURITY_ATTRIBUTES
{
public int nLength;
public int lpSecurityDescriptor;
public int bInheritHandle;
}
public struct PROCESS_INFORMATION
{
public HANDLE hProcess;
public HANDLE hThread;
public int dwProcessId;
public int dwThreadId;
}
public struct COMMPROP
{
public short wPacketLength;
public short wPacketVersion;
public int dwServiceMask;
public int dwReserved1;
public int dwMaxTxQueue;
public int dwMaxRxQueue;
public int dwMaxBaud;
public int dwProvSubType;
public int dwProvCapabilities;
public int dwSettableParams;
public int dwSettableBaud;
public short wSettableData;
public short wSettableStopParity;
public int dwCurrentTxQueue;
public int dwCurrentRxQueue;
public int dwProvSpec1;
public int dwProvSpec2;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public short[] wcProvChar;
}
public struct COMSTAT
{
public int fBitFields;
public int cbInQue;
public int cbOutQue;
}
public struct DCB
{
public int DCBlength;
public int BaudRate;
public int fBitFields;
public short wReserved;
public short XonLim;
public short XoffLim;
public byte ByteSize;
public byte Parity;
public byte StopBits;
public byte XonChar;
public byte XoffChar;
public byte ErrorChar;
public byte EofChar;
public byte EvtChar;
public short wReserved1;
}
public struct COMMTIMEOUTS
{
public int ReadIntervalTimeout;
public int ReadTotalTimeoutMultiplier;
public int ReadTotalTimeoutConstant;
public int WriteTotalTimeoutMultiplier;
public int WriteTotalTimeoutConstant;
}
public struct SYSTEM_INFO
{
public int dwOemID;
public int dwPageSize;
public int lpMinimumApplicationAddress;
public int lpMaximumApplicationAddress;
public int dwActiveProcessorMask;
public int dwNumberOrfProcessors;
public int dwProcessorType;
public int dwAllocationGranularity;
public int dwReserved;
}
#region Global Memory Flags
#endregion
public struct MEMORYSTATUS
{
public int dwLength;
public int dwMemoryLoad;
public int dwTotalPhys;
public int dwAvailPhys;
public int dwTotalPageFile;
public int dwAvailPageFile;
public int dwTotalVirtual;
public int dwAvailVirtual;
}
public struct GENERIC_MAPPING
{
public int GenericRead;
public int GenericWrite;
public int GenericExecute;
public int GenericAll;
}
public struct LUID
{
public int LowPart;
public int HighPart;
}
public struct LUID_AND_ATTRIBUTES
{
public LUID pLuid;
public int Attributes;
}
public struct ACL
{
public byte AclRevision;
public byte Sbz1;
public short AclSize;
public short AceCount;
public short Sbz2;
}
public struct ACE_HEADER
{
public byte AceType;
public byte AceFlags;
public int AceSize;
}
public struct ACCESS_ALLOWED_ACE
{
public ACE_HEADER Header;
public int Mask;
public int SidStart;
}
public struct ACCESS_DENIED_ACE
{
public ACE_HEADER Header;
public int Mask;
public int SidStart;
}
public struct SYSTEM_AUDIT_ACE
{
public ACE_HEADER Header;
public int Mask;
public int SidStart;
}
public struct SYSTEM_ALARM_ACE
{
public ACE_HEADER Header;
public int Mask;
public int SidStart;
}
public struct ACL_REVISION_INFORMATION
{
public int AclRevision;
}
public struct ACL_SIZE_INFORMATION
{
public int AceCount;
public int AclBytesInUse;
public int AclBytesFree;
}
public struct SECURITY_DESCRIPTOR
{
public byte Revision;
public byte Sbz1;
public int Control;
public int Owner;
public int Group;
public ACL Sacl;
public ACL Dacl;
}
public struct PRIVILEGE_SET
{
public int PrivilegeCount;
public int Control;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public LUID_AND_ATTRIBUTES[] Privilege;
}
public struct EXCEPTION_RECORD
{
public int ExceptionCode;
public int ExceptionFlags;
public int pExceptionRecord;
public int ExceptionAddress;
public int NumberParameters;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public int [] ExceptionInformation;
}
public struct EXCEPTION_DEBUG_INFO
{
public EXCEPTION_RECORD pExceptionRecord;
public int dwFirstChance;
}
public struct CREATE_THREAD_DEBUG_INFO
{
public HANDLE hThread;
public int lpThreadLocalBase;
public int lpStartAddress;
}
public struct CREATE_PROCESS_DEBUG_INFO
{
public HANDLE hFile;
public HANDLE hProcess;
public HANDLE hThread;
public int lpBaseOfImage;
public int dwDebugInfoFileOffset;
public int nDebugInfoSize;
public int lpThreadLocalBase;
public int lpStartAddress;
public int lpImageName;
public short fUnicode;
}
public struct EXIT_THREAD_DEBUG_INFO
{
public int dwExitCode;
}
public struct EXIT_PROCESS_DEBUG_INFO
{
public int dwExitCode;
}
public struct LOAD_DLL_DEBUG_INFO
{
public HANDLE hFile;
public int lpBaseOfDll;
public int dwDebugInfoFileOffset;
public int nDebugInfoSize;
public int lpImageName;
public short fUnicode;
}
public struct UNLOAD_DLL_DEBUG_INFO
{
public int lpBaseOfDll;
}
public struct OUTPUT_DEBUG_STRING_INFO
{
public string lpDebugStringData;
public short fUnicode;
public short nDebugStringLength;
}
public struct RIP_INFO
{
public int dwError;
public int dwType;
}
public struct OFSTRUCT
{
public byte cBytes;
public byte fFixedDisk;
public short nErrCode;
public short Reserved1;
public short Reserved2;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte[] szPathName;
}
public struct CRITICAL_SECTION
{
public int pDebugInfo;
public int LockCount;
public int RecursionCount;
public int pOwningThread;
public int pLockSemaphore;
public int Reserved;
}
public struct BY_HANDLE_FILE_INFORMATION
{
public int dwFileAttributes;
public FILETIME ftCreationTime;
public FILETIME ftLastAccessTime;
public FILETIME ftLastWriteTime;
public int dwVolumeSerialNumber;
public int nFileSizeHigh;
public int nFileSizeLow;
public int nNumberOfLinks;
public int nFileIndexHigh;
public int nFileIndexLow;
}
public struct MEMORY_BASIC_INFORMATION
{
public int BaseAddress;
public int AllocationBase;
public int AllocationProtect;
public int RegionSize;
public int State;
public int Protect;
public int lType;
}
public struct EVENTLOGRECORD
{
public int Length;
public int Reserved;
public int RecordNumber;
public int TimeGenerated;
public int TimeWritten;
public int EventID;
public short EventType;
public short NumStrings;
public short EventCategory;
public short ReservedFlags;
public int ClosingRecordNumber;
public int StringOffset;
public int UserSidLength;
public int UserSidOffset;
public int DataLength;
public int DataOffset;
}
public struct TOKEN_GROUPS
{
public int GroupCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public SID_AND_ATTRIBUTES[] Groups;
}
public struct TOKEN_PRIVILEGES
{
public int PrivilegeCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public LUID_AND_ATTRIBUTES[] Privileges;
}
public struct CONTEXT
{
public double FltF0;
public double FltF1;
public double FltF2;
public double FltF3;
public double FltF4;
public double FltF5;
public double FltF6;
public double FltF7;
public double FltF8;
public double FltF9;
public double FltF10;
public double FltF11;
public double FltF12;
public double FltF13;
public double FltF14;
public double FltF15;
public double FltF16;
public double FltF17;
public double FltF18;
public double FltF19;
public double FltF20;
public double FltF21;
public double FltF22;
public double FltF23;
public double FltF24;
public double FltF25;
public double FltF26;
public double FltF27;
public double FltF28;
public double FltF29;
public double FltF30;
public double FltF31;
public double IntV0;
public double IntT0;
public double IntT1;
public double IntT2;
public double IntT3;
public double IntT4;
public double IntT5;
public double IntT6;
public double IntT7;
public double IntS0;
public double IntS1;
public double IntS2;
public double IntS3;
public double IntS4;
public double IntS5;
public double IntFp;
public double IntA0;
public double IntA1;
public double IntA2;
public double IntA3;
public double IntA4;
public double IntA5;
public double IntT8;
public double IntT9;
public double IntT10;
public double IntT11;
public double IntRa;
public double IntT12;
public double IntAt;
public double IntGp;
public double IntSp;
public double IntZero;
public double Fpcr;
public double SoftFpcr;
public double Fir;
public int Psr;
public int ContextFlags;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public int []Fill;
}
public struct EXCEPTION_POINTERS
{
public EXCEPTION_RECORD pExceptionRecord;
public CONTEXT ContextRecord;
}
public struct LDT_BYTES
{
public byte BaseMid;
public byte Flags1;
public byte Flags2;
public byte BaseHi;
}
public struct LDT_ENTRY
{
public short LimitLow;
public short BaseLow;
public int HighWord;
}
public struct TIME_ZONE_INFORMATION
{
public int Bias;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public short[] StandardName;
public SYSTEMTIME StandardDate;
public int StandardBias;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public short[] DaylightName;
public SYSTEMTIME DaylightDate;
public int DaylightBias;
}
public struct WIN32_STREAM_ID
{
public int dwStreamID;
public int dwStreamAttributes;
public int dwStreamSizeLow;
public int dwStreamSizeHigh;
public int dwStreamNameSize;
public byte cStreamName;
}
public struct STARTUPINFO
{
public int cb;
public string lpReserved;
public string lpDesktop;
public string lpTitle;
public int dwX;
public int dwY;
public int dwXSize;
public int dwYSize;
public int dwXCountChars;
public int dwYCountChars;
public int dwFillAttribute;
public int dwFlags;
public short wShowWindow;
public short cbReserved2;
public int lpReserved2;
public HANDLE hStdInput;
public HANDLE hStdOutput;
public HANDLE hStdError;
}
public struct CPINFO
{
public int MaxCharSize;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=Kernel.MAX_DEFAULTCHAR)] public byte[] DefaultChar;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=Kernel.MAX_LEADBYTES)] public byte[] LeadByte;
}
public struct NUMBERFMT
{
public int NumDigits;
public int LeadingZero;
public int Grouping;
public string lpDecimalSep;
public string lpThousandSep;
public int NegativeOrder;
}
public struct CURRENCYFMT
{
public int NumDigits;
public int LeadingZero;
public int Grouping;
public string lpDecimalSep;
public string lpThousandSep;
public int NegativeOrder;
public int PositiveOrder;
public string lpCurrencySymbol;
}
public struct COORD
{
public short x;
public short y;
}
public struct SMALL_RECT
{
public short Left;
public short Top;
public short Right;
public short Bottom;
}
public struct KEY_EVENT_RECORD
{
public int bKeyDown;
public short wRepeatCount;
public short wVirtualKeyCode;
public short wVirtualScanCode;
public byte uChar;
public int dwControlKeyState;
}
public struct MOUSE_EVENT_RECORD
{
public COORD dwMousePosition;
public int dwButtonState;
public int dwControlKeyState;
public int dwEventFlags;
}
public struct WINDOW_BUFFER_SIZE_RECORD
{
public COORD dwSize;
}
public struct MENU_EVENT_RECORD
{
public int dwCommandId;
}
public struct FOCUS_EVENT_RECORD
{
public int bSetFocus;
}
public struct CHAR_INFO
{
public short Char;
public short Attributes;
}
public struct CONSOLE_SCREEN_BUFFER_INFO
{
public COORD dwSize;
public COORD dwCursorPosition;
public short wAttributes;
public SMALL_RECT srWindow;
public COORD dwMaximumWindowSize;
}
public struct CONSOLE_CURSOR_INFO
{
public int dwSize;
public int bVisible;
}
public struct SID_IDENTIFIER_AUTHORITY
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte[] Value;
}
public struct SID_AND_ATTRIBUTES
{
public int Sid;
public int Attributes;
}
public struct WIN32_FIND_DATA
{
public int dwFileAttributes;
public FILETIME ftCreationTime;
public FILETIME ftLastAccessTime;
public FILETIME ftLastWriteTime;
public int nFileSizeHigh;
public int nFileSizeLow;
public int dwReserved0;
public int dwReserved1;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=Kernel.MAX_PATH)]
public string cFileName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)]
public string cAlternate;
}
public struct COMMCONFIG
{
public int dwSize;
public short wVersion;
public short wReserved;
public DCB dcbx;
public int dwProviderSubType;
public int dwProviderOffset;
public int dwProviderSize;
public byte wcProviderData;
}
public struct SERVICE_STATUS
{
public int dwServiceType;
public int dwCurrentState;
public int dwControlsAccepted;
public int dwWin32ExitCode;
public int dwServiceSpecificExitCode;
public int dwCheckPoint;
public int dwWaitHint;
}
public struct ENUM_SERVICE_STATUS
{
public string lpServiceName;
public string lpDisplayName;
public SERVICE_STATUS ServiceStatus;
}
public struct QUERY_SERVICE_LOCK_STATUS
{
public int fIsLocked;
public string lpLockOwner;
public int dwLockDuration;
}
public struct QUERY_SERVICE_CONFIG
{
public int dwServiceType;
public int dwStartType;
public int dwErrorControl;
public string lpBinaryPathName;
public string lpLoadOrderGroup;
public int dwTagId;
public string lpDependencies;
public string lpServiceStartName;
public string lpDisplayName;
}
public struct SERVICE_TABLE_ENTRY
{
public string lpServiceName;
public int lpServiceProc;
}
public struct LARGE_INTEGER
{
public int lowpart;
public int highpart;
}
public struct PERF_DATA_BLOCK
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string Signature;
public int LittleEndian;
public int Version;
public int Revision;
public int TotalByteLength;
public int HeaderLength;
public int NumObjectTypes;
public int DefaultObject;
public SYSTEMTIME SystemTime;
public LARGE_INTEGER PerfTime;
public LARGE_INTEGER PerfFreq;
public LARGE_INTEGER PerTime100nSec;
public int SystemNameLength;
public int SystemNameOffset;
}
public struct PERF_OBJECT_TYPE
{
public int TotalByteLength;
public int DefinitionLength;
public int HeaderLength;
public int ObjectNameTitleIndex;
public string ObjectNameTitle;
public int ObjectHelpTitleIndex;
public string ObjectHelpTitle;
public int DetailLevel;
public int NumCounters;
public int DefaultCounter;
public int NumInstances;
public int CodePage;
public LARGE_INTEGER PerfTime;
public LARGE_INTEGER PerfFreq;
}
public struct PERF_COUNTER_DEFINITION
{
public int ByteLength;
public int CounterNameTitleIndex;
public string CounterNameTitle;
public int CounterHelpTitleIndex;
public string CounterHelpTitle;
public int DefaultScale;
public int DetailLevel;
public int CounterType;
public int CounterSize;
public int CounterOffset;
}
public struct PERF_INSTANCE_DEFINITION
{
public int ByteLength;
public int ParentObjectTitleIndex;
public int ParentObjectInstance;
public int UniqueID;
public int NameOffset;
public int NameLength;
}
public struct PERF_COUNTER_BLOCK
{
public int ByteLength;
}
public struct OSVERSIONINFO
{
public int dwOSVersionInfoSize;
public int dwMajorVersion;
public int dwMinorVersion;
public int dwBuildNumber;
public int dwPlatformId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string szCSDVersion;
}
public struct SYSTEM_POWER_STATUS
{
public byte ACLineStatus;
public byte BatteryFlag;
public byte BatteryLifePercent;
public byte Reserved1;
public int BatteryLifeTime;
public int BatteryFullLifeTime;
} public abstract class AdvApi
{
[DllImport("AdvApi32")] public static extern int ImpersonateLoggedOnUser(HANDLE hToken);
[DllImport("advapi32")] public static extern int IsTextUnicode(IntPtr lpBuffer, int cb, ref int lpi);
[DllImport("advapi32")] public static extern int LogonUser(string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, ref int phToken);
[DllImport("advapi32")] public static extern int NotifyChangeEventLog(HANDLE hEventLog, HANDLE hEvent);
[DllImport("advapi32")] public static extern int SetThreadToken(int Thread, int Token);
[DllImport("advapi32")] public static extern Byte GetSidSubAuthorityCount(IntPtr pSid);
[DllImport("advapi32")] public static extern SID_IDENTIFIER_AUTHORITY GetSidIdentifierAuthority(IntPtr pSid);
[DllImport("advapi32")] public static extern int AbortSystemShutdown(string lpMachineName);
[DllImport("advapi32")] public static extern int AccessCheck(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int ClientToken, int DesiredAccess, GENERIC_MAPPING GenericMapping, PRIVILEGE_SET PrivilegeSet, int PrivilegeSetLength, int GrantedAccess, int Status);
[DllImport("advapi32")] public static extern int AccessCheckAndAuditAlarm(string SubsystemName, IntPtr HandleId, string ObjectTypeName, string ObjectName, SECURITY_DESCRIPTOR SecurityDescriptor, int DesiredAccess, GENERIC_MAPPING GenericMapping, int ObjectCreation, int GrantedAccess, int AccessStatus, ref int pfGenerateOnClose);
[DllImport("advapi32")] public static extern int AddAccessAllowedAce(ref ACL pAcl, int dwAceRevision, int AccessMask, IntPtr pSid);
[DllImport("advapi32")] public static extern int AddAccessDeniedAce(ref ACL pAcl, int dwAceRevision, int AccessMask, IntPtr pSid);
[DllImport("advapi32")] public static extern int AddAce(ref ACL pAcl, int dwAceRevision, int dwStartingAceIndex, IntPtr pAceList, int nAceListLength);
[DllImport("advapi32")] public static extern int AddAuditAccessAce(ref ACL pAcl, int dwAceRevision, int dwAccessMask, IntPtr pSid, int bAuditSuccess, int bAuditFailure);
[DllImport("advapi32")] public static extern int AdjustTokenGroups(int TokenHandle, int ResetToDefault, TOKEN_GROUPS NewState, int BufferLength, TOKEN_GROUPS PreviousState, int ReturnLength);
[DllImport("advapi32")] public static extern int AdjustTokenPrivileges(int TokenHandle, int DisableAllPrivileges, TOKEN_PRIVILEGES NewState, int BufferLength, TOKEN_PRIVILEGES PreviousState, int ReturnLength);
[DllImport("advapi32")] public static extern int AllocateAndInitializeSid(ref SID_IDENTIFIER_AUTHORITY pIdentifierAuthority, Byte nSubAuthorityCount, int nSubAuthority0, int nSubAuthority1, int nSubAuthority2, int nSubAuthority3, int nSubAuthority4, int nSubAuthority5, int nSubAuthority6, int nSubAuthority7, ref int lpPSid);
[DllImport("advapi32")] public static extern int AllocateLocallyUniqueId(LARGE_INTEGER Luid);
[DllImport("advapi32")] public static extern int AreAllAccessesGranted(int GrantedAccess, int DesiredAccess);
[DllImport("advapi32")] public static extern int AreAnyAccessesGranted(int GrantedAccess, int DesiredAccess);
[DllImport("advapi32")] public static extern int BackupEventLog(HANDLE hEventLog, string lpBackupFileName);
[DllImport("advapi32")] public static extern int ChangeServiceConfig(HANDLE hService, int dwServiceType, int dwStartType, int dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, ref int lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword, string lpDisplayName);
[DllImport("advapi32")] public static extern int ClearEventLog(HANDLE hEventLog, string lpBackupFileName);
[DllImport("advapi32")] public static extern int CloseEventLog(HANDLE hEventLog);
[DllImport("advapi32")] public static extern int CloseServiceHandle(HANDLE hSCObject);
[DllImport("advapi32")] public static extern int ControlService(HANDLE hService, int dwControl, ref SERVICE_STATUS lpServiceStatus);
[DllImport("advapi32")] public static extern int CopySid(int nDestinationSidLength, IntPtr pDestinationSid, IntPtr pSourceSid);
[DllImport("advapi32")] public static extern int CreatePrivateObjectSecurity(ref SECURITY_DESCRIPTOR ParentDescriptor, SECURITY_DESCRIPTOR CreatorDescriptor, SECURITY_DESCRIPTOR NewDescriptor, int IsDirectoryObject, int Token, GENERIC_MAPPING GenericMapping);
[DllImport("advapi32")] public static extern int CreateProcessAsUser(HANDLE hToken, string lpApplicationName, string lpCommandLine, ref SECURITY_ATTRIBUTES lpProcessAttributes, ref SECURITY_ATTRIBUTES lpThreadAttributes, int bInheritHandles, int dwCreationFlags, string lpEnvironment, string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo, ref PROCESS_INFORMATION lpProcessInformation);
[DllImport("advapi32")] public static extern int CreateService(HANDLE hSCManager, string lpServiceName, string lpDisplayName, int dwDesiredAccess, int dwServiceType, int dwStartType, int dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, ref int lpdwTagId, string lpDependencies, string lp, string lpPassword);
[DllImport("advapi32")] public static extern int DeleteAce(ref ACL pAcl, int dwAceIndex);
[DllImport("advapi32")] public static extern int DeleteService(HANDLE hService);
[DllImport("advapi32")] public static extern int DeregisterEventSource(HANDLE hEventLog);
[DllImport("advapi32")] public static extern int DestroyPrivateObjectSecurity(ref SECURITY_DESCRIPTOR ObjectDescriptor);
[DllImport("advapi32")] public static extern int DuplicateToken(int ExistingTokenHandle, short ImpersonationLevel, int DuplicateTokenHandle);
[DllImport("advapi32")] public static extern int EnumDependentServices(HANDLE hService, int dwServiceState, ref ENUM_SERVICE_STATUS lpServices, int cbBufSize, ref int pcbBytesNeeded, ref int lpServicesReturned);
[DllImport("advapi32")] public static extern int EnumServicesStatus(HANDLE hSCManager, int dwServiceType, int dwServiceState, ref ENUM_SERVICE_STATUS lpServices, int cbBufSize, ref int pcbBytesNeeded, ref int lpServicesReturned, ref int lpResumeHandle);
[DllImport("advapi32")] public static extern int EqualPrefixSid(IntPtr pSid1, IntPtr pSid2);
[DllImport("advapi32")] public static extern int EqualSid(IntPtr pSid1, IntPtr pSid2);
[DllImport("advapi32")] public static extern int FindFirstFreeAce(ref ACL pAcl, ref int pAce);
[DllImport("advapi32")] public static extern int GetAce(ref ACL pAcl, int dwAceIndex, IntPtr pAce);
[DllImport("advapi32")] public static extern int GetAclInformation(ref ACL pAcl, IntPtr pAclInformation, int nAclInformationLength, short dwAclInformationClass);
[DllImport("advapi32")] public static extern int GetFileSecurity(string lpFileName, int RequestedInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref int lpnLengthNeeded);
[DllImport("advapi32")] public static extern int GetKernelObjectSecurity(HANDLE handle, int RequestedInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref int lpnLengthNeeded);
[DllImport("advapi32")] public static extern int GetLengthSid(IntPtr pSid);
[DllImport("advapi32")] public static extern int GetNumberOfEventLogRecords(HANDLE hEventLog, int NumberOfRecords);
[DllImport("advapi32")] public static extern int GetOldestEventLogRecord(HANDLE hEventLog, int OldestRecord);
[DllImport("advapi32")] public static extern int GetPrivateObjectSecurity(ref SECURITY_DESCRIPTOR ObjectDescriptor, int SecurityInformation, SECURITY_DESCRIPTOR ResultantDescriptor, int DescriptorLength, int ReturnLength);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorControl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, short pControl, ref int lpdwRevision);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, ref int lpbDaclPresent, ref ACL pDacl, ref int lpbDaclDefaulted);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorGroup(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pGroup, ref int lpbGroupDefaulted);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorLength(ref SECURITY_DESCRIPTOR pSecurityDescriptor);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorOwner(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pOwner, ref int lpbOwnerDefaulted);
[DllImport("advapi32")] public static extern int GetSecurityDescriptorSacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, ref int lpbSaclPresent, ref ACL pSacl, ref int lpbSaclDefaulted);
[DllImport("advapi32")] public static extern int GetServiceDisplayName(HANDLE hSCManager, string lpServiceName, StringBuilder lpDisplayName, ref int cchBuffer);
[DllImport("advapi32")] public static extern int GetServiceKeyName(HANDLE hSCManager, string lpDisplayName, StringBuilder lpServiceName, ref int cchBuffer);
[DllImport("advapi32")] public static extern int GetSidLengthRequired(Byte nSubAuthorityCount);
[DllImport("advapi32")] public static extern int GetSidSubAuthority(IntPtr pSid, int nSubAuthority);
[DllImport("advapi32")] public static extern int GetTokenInformation(int TokenHandle, short TokenInformationClass, IntPtr TokenInformation, int TokenInformationLength, int ReturnLength);
[DllImport("advapi32")] public static extern int GetUserName(StringBuilder lpBuffer, int nSize);
[DllImport("advapi32")] public static extern int ImpersonateNamedPipeClient(HANDLE hNamedPipe);
[DllImport("advapi32")] public static extern int ImpersonateSelf(short ImpersonationLevel);
[DllImport("advapi32")] public static extern int InitializeAcl(ref ACL pAcl, int nAclLength, int dwAclRevision);
[DllImport("advapi32")] public static extern int InitializeSecurityDescriptor(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int dwRevision);
[DllImport("advapi32")] public static extern int InitializeSid(IntPtr Sid, ref SID_IDENTIFIER_AUTHORITY pIdentifierAuthority, Byte nSubAuthorityCount);
[DllImport("advapi32")] public static extern int InitiateSystemShutdown(string lpMachineName, string lpMessage, int dwTimeout, int bForceAppsClosed, int bRebootAfterShutdown);
[DllImport("advapi32")] public static extern int IsValidAcl(ref ACL pAcl);
[DllImport("advapi32")] public static extern int IsValidSecurityDescriptor(ref SECURITY_DESCRIPTOR pSecurityDescriptor);
[DllImport("advapi32")] public static extern int IsValidSid(IntPtr pSid);
[DllImport("advapi32")] public static extern int LockServiceDatabase(HANDLE hSCManager);
[DllImport("advapi32")] public static extern int LookupAccountName(string lpSystemName, string lpAccountName, int Sid, int cbSid, string ReferencedDomainName, int cbReferencedDomainName, int peUse);
[DllImport("advapi32")] public static extern int LookupAccountSid(string lpSystemName, IntPtr Sid, string name, int cbName, string ReferencedDomainName, int cbReferencedDomainName, int peUse);
[DllImport("advapi32")] public static extern int LookupPrivilegeDisplayName(string lpSystemName, string lpName, string lpDisplayName, int cbDisplayName, ref int lpLanguageID);
[DllImport("advapi32")] public static extern int LookupPrivilegeName(string lpSystemName, ref LARGE_INTEGER lpLuid, string lpName, int cbName);
[DllImport("advapi32")] public static extern int LookupPrivilegeValue(string lpSystemName, string lpName, ref LARGE_INTEGER lpLuid);
[DllImport("advapi32")] public static extern int MakeAbsoluteSD(ref SECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, ref SECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, ref int lpdwAbsoluteSecurityDescriptorSize, ref ACL pDacl, ref int lpdwDaclSize, ref ACL pSacl, ref int lpdwSaclSize, IntPtr pOwner, ref int lpdwOwnerSize, IntPtr pPrimaryGroup, ref int lpdwPrimaryGroupSize);
[DllImport("advapi32")] public static extern int MakeSelfRelativeSD(ref SECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, ref SECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, ref int lpdwBufferLength);
[DllImport("advapi32")] public static extern int NotifyBootConfigStatus(int BootAcceptable);
[DllImport("advapi32")] public static extern int ObjectCloseAuditAlarm(string SubsystemName, IntPtr HandleId, int GenerateOnClose);
[DllImport("advapi32")] public static extern int ObjectPrivilegeAuditAlarm(string SubsystemName, IntPtr HandleId, int ClientToken, int DesiredAccess, PRIVILEGE_SET Privileges, int AccessGranted);
[DllImport("advapi32")] public static extern int OpenBackupEventLog(string lpUNCServerName, string lpFileName);
[DllImport("advapi32")] public static extern int OpenEventLog(string lpUNCServerName, string lpSourceName);
[DllImport("advapi32")] public static extern int OpenSCManager(string lpMachineName, string lpDatabaseName, int dwDesiredAccess);
[DllImport("advapi32")] public static extern int OpenService(HANDLE hSCManager, string lpServiceName, int dwDesiredAccess);
[DllImport("advapi32")] public static extern int OpenThreadToken(int ThreadHandle, int DesiredAccess, int OpenAsSelf, int TokenHandle);
[DllImport("advapi32")] public static extern int PrivilegeCheck(int ClientToken, PRIVILEGE_SET RequiredPrivileges, ref int pfResult);
[DllImport("advapi32")] public static extern int PrivilegedServiceAuditAlarm(string SubsystemName, string ServiceName, int ClientToken, PRIVILEGE_SET Privileges, int AccessGranted);
[DllImport("advapi32")] public static extern int QueryServiceConfig(HANDLE hService, ref QUERY_SERVICE_CONFIG lpServiceConfig, int cbBufSize, ref int pcbBytesNeeded);
[DllImport("advapi32")] public static extern int QueryServiceLockStatus(HANDLE hSCManager, ref QUERY_SERVICE_LOCK_STATUS lpLockStatus, int cbBufSize, ref int pcbBytesNeeded);
[DllImport("advapi32")] public static extern int QueryServiceObjectSecurity(HANDLE hService, int dwSecurityInformation, IntPtr lpSecurityDescriptor, int cbBufSize, ref int pcbBytesNeeded);
[DllImport("advapi32")] public static extern int QueryServiceStatus(HANDLE hService, ref SERVICE_STATUS lpServiceStatus);
[DllImport("advapi32")] public static extern int ReadEventLog(HANDLE hEventLog, int dwReadFlags, int dwRecordOffset, ref EVENTLOGRECORD lpBuffer, int nNumberOfBytesToRead, ref int pnBytesRead, ref int pnMinNumberOfBytesNeeded);
[DllImport("advapi32")] public static extern int RegCloseKey(HANDLE hKey);
[DllImport("advapi32")] public static extern int RegConnectRegistry(string lpMachineName, HANDLE hKey, ref int phkResult);
[DllImport("advapi32")] public static extern int RegCreateKey(HANDLE hKey, string lpSubKey, ref int phkResult);
[DllImport("advapi32")] public static extern int RegCreateKeyEx(HANDLE hKey, string lpSubKey, int Reserved, string lpClass, int dwOptions, int samDesired, ref SECURITY_ATTRIBUTES lpSecurityAttributes, ref int phkResult, ref int lpdwDisposition);
[DllImport("advapi32")] public static extern int RegDeleteKey(HANDLE hKey, string lpSubKey);
[DllImport("advapi32")] public static extern int RegDeleteValue(HANDLE hKey, string lpValueName);
[DllImport("advapi32")] public static extern int RegEnumKey(HANDLE hKey, int dwIndex, string lpName, int cbName);
[DllImport("advapi32")] public static extern int RegEnumKeyEx(HANDLE hKey, int dwIndex, string lpName, ref int lpcbName, ref int lpReserved, string lpClass, ref int lpcbClass, ref FILETIME lpftLastWriteTime);
[DllImport("advapi32")] public static extern int RegEnumValue(HANDLE hKey, int dwIndex, string lpValueName, ref int lpcbValueName, ref int lpReserved, ref int lpType, Byte lpData, ref int lpcbData);
[DllImport("advapi32")] public static extern int RegFlushKey(HANDLE hKey);
[DllImport("advapi32")] public static extern int RegGetKeySecurity(HANDLE hKey, int SecurityInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor, ref int lpcbSecurityDescriptor);
[DllImport("advapi32")] public static extern int RegLoadKey(HANDLE hKey, string lpSubKey, string lpFile);
[DllImport("advapi32")] public static extern int RegNotifyChangeKeyValue(HANDLE hKey, int bWatchSubtree, int dwNotifyFilter, HANDLE hEvent, int fAsynchronus);
[DllImport("advapi32")] public static extern int RegOpenKey(HANDLE hKey, string lpSubKey, ref int phkResult);
[DllImport("advapi32")] public static extern int RegOpenKeyEx(HANDLE hKey, string lpSubKey, int ulOptions, int samDesired, ref int phkResult);
[DllImport("advapi32")] public static extern int RegQueryInfoKey(HANDLE hKey, string lpClass, ref int lpcbClass, ref int lpReserved, ref int lpcSubKeys, ref int lpcbMaxSubKeyLen, ref int lpcbMaxClassLen, ref int lpcValues, ref int lpcbMaxValueNameLen, ref int lpcbMaxValueLen, ref int lpcbSecurityDescriptor, ref FILETIME lpftLastWriteTime);
[DllImport("advapi32")] public static extern int RegQueryValue(HANDLE hKey, string lpSubKey, string lpValue, ref int lpcbValue);
[DllImport("advapi32")] public static extern int RegQueryValueEx(HANDLE hKey, string lpValueName, ref int lpReserved, ref int lpType, IntPtr lpData, ref int lpcbData);
[DllImport("advapi32")] public static extern int RegReplaceKey(HANDLE hKey, string lpSubKey, string lpNewFile, string lpOldFile);
[DllImport("advapi32")] public static extern int RegRestoreKey(HANDLE hKey, string lpFile, int dwFlags);
[DllImport("advapi32")] public static extern int RegSaveKey(HANDLE hKey, string lpFile, ref SECURITY_ATTRIBUTES lpSecurityAttributes);
[DllImport("advapi32")] public static extern int RegSetKeySecurity(HANDLE hKey, int SecurityInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor);
[DllImport("advapi32")] public static extern int RegSetValue(HANDLE hKey, string lpSubKey, int dwType, string lpData, int cbData);
[DllImport("advapi32")] public static extern int RegSetValueEx(HANDLE hKey, string lpValueName, int Reserved, int dwType, IntPtr lpData, int cbData);
[DllImport("advapi32")] public static extern int RegUnLoadKey(HANDLE hKey, string lpSubKey);
[DllImport("advapi32")] public static extern int RegisterEventSource(string lpUNCServerName, string lpSourceName);
[DllImport("advapi32")] public static extern int RegisterServiceCtrlHandler(string lpServiceName, ref int lpHandlerProc);
[DllImport("advapi32")] public static extern int ReportEvent(HANDLE hEventLog, int wType, int wCategory, int dwEventID, IntPtr lpUserSid, int wNumStrings, int dwDataSize, ref int lpStrings, IntPtr lpRawData);
[DllImport("advapi32")] public static extern int RevertToSelf();
[DllImport("advapi32")] public static extern int SetAclInformation(ref ACL pAcl, IntPtr pAclInformation, int nAclInformationLength, short dwAclInformationClass);
[DllImport("advapi32")] public static extern int SetFileSecurity(string lpFileName, int SecurityInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor);
[DllImport("advapi32")] public static extern int SetKernelObjectSecurity(HANDLE handle, int SecurityInformation, SECURITY_DESCRIPTOR SecurityDescriptor);
[DllImport("advapi32")] public static extern int SetPrivateObjectSecurity(int SecurityInformation, SECURITY_DESCRIPTOR ModificationDescriptor, SECURITY_DESCRIPTOR ObjectsSecurityDescriptor, GENERIC_MAPPING GenericMapping, int Token);
[DllImport("advapi32")] public static extern int SetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int bDaclPresent, ref ACL pDacl, int bDaclDefaulted);
[DllImport("advapi32")] public static extern int SetSecurityDescriptorGroup(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pGroup, int bGroupDefaulted);
[DllImport("advapi32")] public static extern int SetSecurityDescriptorOwner(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pOwner, int bOwnerDefaulted);
[DllImport("advapi32")] public static extern int SetSecurityDescriptorSacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int bSaclPresent, ref ACL pSacl, int bSaclDefaulted);
[DllImport("advapi32")] public static extern int SetServiceObjectSecurity(HANDLE hService, int dwSecurityInformation, IntPtr lpSecurityDescriptor);
[DllImport("advapi32")] public static extern int SetServiceStatus(HANDLE hServiceStatus, ref SERVICE_STATUS lpServiceStatus);
[DllImport("advapi32")] public static extern int SetTokenInformation(int TokenHandle, short TokenInformationClass, IntPtr TokenInformation, int TokenInformationLength);
[DllImport("advapi32")] public static extern int StartService(HANDLE hService, int dwNumServiceArgs, ref int lpServiceArgVectors);
[DllImport("advapi32")] public static extern int StartServiceCtrlDispatcher(ref SERVICE_TABLE_ENTRY lpServiceStartTable);
[DllImport("advapi32")] public static extern int UnlockServiceDatabase(IntPtr ScLock);
[DllImport("advapi32")] public static extern void FreeSid(IntPtr pSid);
[DllImport("advapi32")] public static extern void MapGenericMask(int AccessMask, GENERIC_MAPPING GenericMapping);
[DllImport("advapi32")] public static extern int GetUserNameW(Byte lpBuffer, int nSize);
[DllImport("advapi32")] public static extern int OpenProcessToken(int ProcessHandle, int DesiredAccess, int TokenHandle);
} public abstract class Version
{
[DllImport("version")] public static extern int GetFileVersionInfo(string lptstrFilename, int dwHandle, int dwLen, IntPtr lpData);
[DllImport("version")] public static extern int GetFileVersionInfoSize(string lptstrFilename, ref int lpdwHandle);
[DllImport("version")] public static extern int VerFindFile(int uFlags, string szFileName, string szWinDir, string szAppDir, string szCurDir, ref int lpuCurDirLen, string szDestDir, ref int lpuDestDirLen);
[DllImport("version")] public static extern int VerInstallFile(int uFlags, string szSrcFileName, string szDestFileName, string szSrcDir, string szDestDir, string szCurDir, string szTmpFile, ref int lpuTmpFileLen);
[DllImport("version")] public static extern int VerQueryValue(IntPtr pBlock, string lpSubBlock, ref int lplpBuffer, ref int puLen);
} public abstract class Kernel
{
[DllImport("kernel32")] public static extern void OutputDebugString(string lpszOutputString);
[DllImport("KERNEL32")] public static extern int ConvertDefaultLocale(int Locale);
[DllImport("KERNEL32")] public static extern int EnumDateFormats(int lpDateFmtEnumProc, int Locale, int dwFlags);
[DllImport("KERNEL32")] public static extern int EnumSystemCodePages(int lpCodePageEnumProc, int dwFlags);
[DllImport("KERNEL32")] public static extern int EnumSystemLocales(int lpLocaleEnumProc, int dwFlags);
[DllImport("KERNEL32")] public static extern int EnumTimeFormats(int lpTimeFmtEnumProc, int Locale, int dwFlags);
[DllImport("KERNEL32")] public static extern int GetThreadLocale();
[DllImport("KERNEL32")] public static extern int IsValidLocale(int Locale, int dwFlags);
[DllImport("KERNEL32")] public static extern void ZeroMemory(IntPtr dest, int numBytes);
[DllImport("kernel32")] public static extern COORD GetLargestConsoleWindowSize(HANDLE hConsoleOutput);
[DllImport("kernel32")] public static extern int AllocConsole();
[DllImport("kernel32")] public static extern int BackupRead(HANDLE hFile, Byte lpBuffer, int nNumberOfBytesToRead, ref int lpNumberOfBytesRead, int bAbort, int bProcessSecurity, IntPtr lpContext);
[DllImport("kernel32")] public static extern int BackupSeek(HANDLE hFile, int dwLowBytesToSeek, int dwHighBytesToSeek, ref int lpdwLowByteSeeked, ref int lpdwHighByteSeeked, ref int lpContext);
[DllImport("kernel32")] public static extern int BackupWrite(HANDLE hFile, Byte lpBuffer, int nNumberOfBytesToWrite, ref int lpNumberOfBytesWritten, int bAbort, int bProcessSecurity, ref int lpContext);
[DllImport("kernel32")] public static extern int Beep(int dwFreq, int dwDuration);
[DllImport("kernel32")] public static extern int BeginUpdateResource(string pFileName, int bDeleteExistingResources);
[DllImport("kernel32")] public static extern int BuildCommDCB(string lpDef, ref DCB lpDCB);
[DllImport("kernel32")] public static extern int BuildCommDCBAndTimeouts(string lpDef, ref DCB lpDCB, ref COMMTIMEOUTS lpCommTimeouts);
[DllImport("kernel32")] public static extern int CallNamedPipe(string lpNamedPipeName, IntPtr lpInBuffer, int nInBufferSize, IntPtr lpOutBuffer, int nOutBufferSize, ref int lpBytesRead, int nTimeOut);
[DllImport("kernel32")] public static extern int ClearCommBreak(int nCid);
[DllImport("kernel32")] public static extern int ClearCommError(HANDLE hFile, ref int lpErrors, ref COMSTAT lpStat);
[DllImport("kernel32")] public static extern int CloseHandle(HANDLE hObject);
[DllImport("kernel32")] public static extern int CommConfigDialog(string lpszName, HWND hwnd, ref COMMCONFIG lpCC);
[DllImport("kernel32")] public static extern int CompareFileTime(ref FILETIME lpFileTime1, ref FILETIME lpFileTime2);
[DllImport("kernel32")] public static extern int CompareString(int Locale, int dwCmpFlags, string lpString1, int cchCount1, string lpString2, int cchCount2);
[DllImport("kernel32")] public static extern int ConnectNamedPipe(HANDLE hNamedPipe, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int ContinueDebugEvent(int dwProcessId, int dwThreadId, int dwContinueStatus);
[DllImport("kernel32")] public static extern int CopyFile(string lpExistingFileName, string lpNewFileName, int bFailIfExists);
[DllImport("kernel32")] public static extern int CreateConsoleScreenBuffer(int dwDesiredAccess, int dwShareMode, ref SECURITY_ATTRIBUTES lpSecurityAttributes, int dwFlags, IntPtr lpScreenBufferData);
[DllImport("kernel32")] public static extern int CreateDirectory(string lpPathName, ref SECURITY_ATTRIBUTES lpSecurityAttributes);
[DllImport("kernel32")] public static extern int CreateDirectoryEx(string lpTemplateDirectory, string lpNewDirectory, ref SECURITY_ATTRIBUTES lpSecurityAttributes);
[DllImport("kernel32")] public static extern int CreateEvent(ref SECURITY_ATTRIBUTES lpEventAttributes, int bManualReset, int bInitialState, string lpName);
[DllImport("kernel32")] public static extern int CreateFile(string lpFileName, int dwDesiredAccess, int dwShareMode, ref SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, HANDLE hTemplateFile);
[DllImport("kernel32")] public static extern int CreateFileMapping(HANDLE hFile, ref SECURITY_ATTRIBUTES lpFileMappigAttributes, int flProtect, int dwMaximumSizeHigh, int dwMaximumSizeLow, string lpName);
[DllImport("kernel32")] public static extern int CreateIoCompletionPort(int FileHandle, int ExistingCompletionPort, int CompletionKey, int NumberOfConcurrentThreads);
[DllImport("kernel32")] public static extern int CreateMailslot(string lpName, int nMaxMessageSize, int lReadTimeout, ref SECURITY_ATTRIBUTES lpSecurityAttributes);
[DllImport("kernel32")] public static extern int CreateMutex(ref SECURITY_ATTRIBUTES lpMutexAttributes, int bInitialOwner, string lpName);
[DllImport("kernel32")] public static extern int CreateNamedPipe(string lpName, int dwOpenMode, int dwPipeMode, int nMaxInstances, int nOutBufferSize, int nInBufferSize, int nDefaultTimeOut, ref SECURITY_ATTRIBUTES lpSecurityAttributes);
[DllImport("kernel32")] public static extern int CreatePipe(int phReadPipe, int phWritePipe, ref SECURITY_ATTRIBUTES lpPipeAttributes, int nSize);
[DllImport("kernel32")] public static extern int CreateProcess(string lpApplicationName, string lpCommandLine, ref SECURITY_ATTRIBUTES lpProcessAttributes, ref SECURITY_ATTRIBUTES lpThreadAttributes, int bInheritHandles, int dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDriectory, ref STARTUPINFO lpStartupInfo, ref PROCESS_INFORMATION lpProcessInformation);
[DllImport("kernel32")] public static extern int CreateRemoteThread(HANDLE hProcess, ref SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, ref int lpStartAddress, IntPtr lpParameter, int dwCreationFlags, ref int lpThreadId);
[DllImport("kernel32")] public static extern int CreateSemaphore(ref SECURITY_ATTRIBUTES lpSemaphoreAttributes, int lInitialCount, int lMaximumCount, string lpName);
[DllImport("kernel32")] public static extern int CreateTapePartition(HANDLE hDevice, int dwPartitionMethod, int dwCount, int dwSize);
[DllImport("kernel32")] public static extern int CreateThread(ref SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, ref int lpStartAddress, IntPtr lpParameter, int dwCreationFlags, ref int lpThreadId);
[DllImport("kernel32")] public static extern int DebugActiveProcess(int dwProcessId);
[DllImport("kernel32")] public static extern int DefineDosDevice(int dwFlags, string lpDeviceName, string lpTargetPath);
[DllImport("kernel32")] public static extern int DeleteFile(string lpFileName);
[DllImport("kernel32")] public static extern int DeviceIoControl(HANDLE hDevice, int dwIoControlCode, IntPtr lpInBuffer, int nInBufferSize, IntPtr lpOutBuffer, int nOutBufferSize, ref int lpBytesReturned, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int DisableThreadLibraryCalls(HANDLE hLibModule);
[DllImport("kernel32")] public static extern int DisconnectNamedPipe(HANDLE hNamedPipe);
[DllImport("kernel32")] public static extern int DosDateTimeToFileTime(int wFatDate, int wFatTime, ref FILETIME lpFileTime);
[DllImport("kernel32")] public static extern int DuplicateHandle(HANDLE hSourceProcessHandle, HANDLE hSourceHandle, HANDLE hTargetProcessHandle, ref int lpTargetHandle, int dwDesiredAccess, int bInheritHandle, int dwOptions);
[DllImport("kernel32")] public static extern int EndUpdateResource(HANDLE hUpdate, int fDiscard);
[DllImport("kernel32")] public static extern int EnumCalendarInfo(int lpCalInfoEnumProc, int Locale, int Calendar, int CalType);
[DllImport("kernel32")] public static extern int EnumResourceLanguages(HANDLE hModule, string lpType, string lpName, ref int lpEnumFunc, int lParam);
[DllImport("kernel32")] public static extern int EnumResourceNames(HANDLE hModule, string lpType, ref int lpEnumFunc, int lParam);
[DllImport("kernel32")] public static extern int EnumResourceTypes(HANDLE hModule, ref int lpEnumFunc, int lParam);
[DllImport("kernel32")] public static extern int EraseTape(HANDLE hDevice, int dwEraseType, int bimmediate);
[DllImport("kernel32")] public static extern int EscapeCommFunction(int nCid, int nFunc);
[DllImport("kernel32")] public static extern int ExpandEnvironmentStrings(string lpSrc, string lpDst, int nSize);
[DllImport("kernel32")] public static extern int FileTimeToDosDateTime(ref FILETIME lpFileTime, ref int lpFatDate, ref int lpFatTime);
[DllImport("kernel32")] public static extern int FileTimeToLocalFileTime(ref FILETIME lpFileTime, ref FILETIME lpLocalFileTime);
[DllImport("kernel32")] public static extern int FileTimeToSystemTime(ref FILETIME lpFileTime, ref SYSTEMTIME lpSystemTime);
[DllImport("kernel32")] public static extern int FillConsoleOutputAttribute(HANDLE hConsoleOutput, int wAttribute, int nLength, COORD dwWriteCoord, ref int lpNumberOfAttrsWritten);
[DllImport("kernel32")] public static extern int FillConsoleOutputCharacter(HANDLE hConsoleOutput, Byte cCharacter, int nLength, COORD dwWriteCoord, ref int lpNumberOfCharsWritten);
[DllImport("kernel32")] public static extern int FindClose(HANDLE hFindFile);
[DllImport("kernel32")] public static extern int FindCloseChangeNotification(HANDLE hChangeHandle);
[DllImport("kernel32")] public static extern int FindFirstChangeNotification(string lpPathName, int bWatchSubtree, int dwNotifyFilter);
[DllImport("kernel32")] public static extern int FindFirstFile(string lpFileName, WIN32_FIND_DATA lpFindFileData);
[DllImport("kernel32")] public static extern int FindNextChangeNotification(HANDLE hChangeHandle);
[DllImport("kernel32")] public static extern int FindNextFile(HANDLE hFindFile, WIN32_FIND_DATA lpFindFileData);
[DllImport("kernel32")] public static extern int FindResource(HANDLE hInstance, string lpName, string lpType);
[DllImport("kernel32")] public static extern int FindResourceEx(HANDLE hModule, string lpType, string lpName, int wLanguage);
[DllImport("kernel32")] public static extern int FlushConsoleInputBuffer(HANDLE hConsoleInput);
[DllImport("kernel32")] public static extern int FlushFileBuffers(HANDLE hFile);
[DllImport("kernel32")] public static extern int FlushInstructionCache(HANDLE hProcess, IntPtr lpBaseAddress, int dwSize);
[DllImport("kernel32")] public static extern int FlushViewOfFile(IntPtr lpBaseAddress, int dwNumberOfBytesToFlush);
[DllImport("kernel32")] public static extern int FoldString(int dwMapFlags, string lpSrcStr, int cchSrc, string lpDestStr, int cchDest);
[DllImport("kernel32")] public static extern int FormatMessage(int dwFlags, IntPtr lpSource, int dwMessageId, int dwLanguageId, string lpBuffer, int nSize, int Arguments);
[DllImport("kernel32")] public static extern int FreeConsole();
[DllImport("kernel32")] public static extern int FreeEnvironmentStrings(string lpsz);
[DllImport("kernel32")] public static extern int FreeLibrary(HANDLE hLibModule);
[DllImport("kernel32")] public static extern int FreeResource(HANDLE hResData);
[DllImport("kernel32")] public static extern int GenerateConsoleCtrlEvent(int dwCtrlEvent, int dwProcessGroupId);
[DllImport("kernel32")] public static extern int GetACP();
[DllImport("kernel32")] public static extern int GetBinaryType(string lpApplicationName, ref int lpBinaryType);
[DllImport("kernel32")] public static extern int GetCPInfo(int CodePage, ref CPINFO lpCPInfo);
[DllImport("kernel32")] public static extern int GetCommConfig(HANDLE hCommDev, ref COMMCONFIG lpCC, ref int lpdwSize);
[DllImport("kernel32")] public static extern int GetCommMask(HANDLE hFile, ref int lpEvtMask);
[DllImport("kernel32")] public static extern int GetCommModemStatus(HANDLE hFile, ref int lpModemStat);
[DllImport("kernel32")] public static extern int GetCommProperties(HANDLE hFile, ref COMMPROP lpCommProp);
[DllImport("kernel32")] public static extern int GetCommState(int nCid, ref DCB lpDCB);
[DllImport("kernel32")] public static extern int GetCommTimeouts(HANDLE hFile, ref COMMTIMEOUTS lpCommTimeouts);
[DllImport("kernel32")] public static extern int GetCommandLine();
[DllImport("kernel32")] public static extern int GetCompressedFileSize(string lpFileName, ref int lpFileSizeHigh);
[DllImport("kernel32")] public static extern int GetComputerName(string lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GetConsoleCP();
[DllImport("kernel32")] public static extern int GetConsoleCursorInfo(HANDLE hConsoleOutput, ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
[DllImport("kernel32")] public static extern int GetConsoleMode(HANDLE hConsoleHandle, ref int lpMode);
[DllImport("kernel32")] public static extern int GetConsoleOutputCP();
[DllImport("kernel32")] public static extern int GetConsoleScreenBufferInfo(HANDLE hConsoleOutput, ref CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
[DllImport("kernel32")] public static extern int GetConsoleTitle(string lpConsoleTitle, int nSize);
[DllImport("kernel32")] public static extern int GetCurrencyFormat(int Locale, int dwFlags, string lpValue, ref CURRENCYFMT lpFormat, string lpCurrencyStr, int cchCurrency);
[DllImport("kernel32")] public static extern int GetCurrentDirectory(int nBufferLength, string lpBuffer);
[DllImport("kernel32")] public static extern int GetCurrentProcess();
[DllImport("kernel32")] public static extern int GetCurrentProcessId();
[DllImport("kernel32")] public static extern int GetCurrentThread();
[DllImport("kernel32")] public static extern int GetCurrentThreadId();
[DllImport("kernel32")] public static extern int GetCurrentTime();
[DllImport("kernel32")] public static extern int GetDateFormat(int Locale, int dwFlags, ref SYSTEMTIME lpDate, string lpFormat, string lpDateStr, int cchDate);
[DllImport("kernel32")] public static extern int GetDefaultCommConfig(string lpszName, ref COMMCONFIG lpCC, ref int lpdwSize);
[DllImport("kernel32")] public static extern int GetDiskFreeSpace(string lpRootPathName, ref int lpSectorsPerCluster, ref int lpBytesPerSector, ref int lpNumberOfFreeClusters, ref int lpTotalNumberOfClusters);
[DllImport("kernel32")] public static extern int GetDriveType(string nDrive);
[DllImport("kernel32")] public static extern int GetEnvironmentVariable(string lpName, string lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GetExitCodeProcess(HANDLE hProcess, ref int lpExitCode);
[DllImport("kernel32")] public static extern int GetExitCodeThread(HANDLE hThread, ref int lpExitCode);
[DllImport("kernel32")] public static extern int GetFileAttributes(string lpFileName);
[DllImport("kernel32")] public static extern int GetFileInformationByHandle(HANDLE hFile, ref BY_HANDLE_FILE_INFORMATION lpFileInformation);
[DllImport("kernel32")] public static extern int GetFileSize(HANDLE hFile, ref int lpFileSizeHigh);
[DllImport("kernel32")] public static extern int GetFileTime(HANDLE hFile, ref FILETIME lpCreationTime, ref FILETIME lpLastAccessTime, ref FILETIME lpLastWriteTime);
[DllImport("kernel32")] public static extern int GetFileType(HANDLE hFile);
[DllImport("kernel32")] public static extern int GetFullPathName(string lpFileName, int nBufferLength, StringBuilder lpBuffer, string lpFilePart);
[DllImport("kernel32")] public static extern int GetHandleInformation(HANDLE hObject, ref int lpdwFlags);
[DllImport("kernel32")] public static extern int GetLastError();
[DllImport("kernel32")] public static extern int GetLocaleInfo(int Locale, int LCType, string lpLCData, int cchData);
[DllImport("kernel32")] public static extern int GetLogicalDriveStrings(int nBufferLength, StringBuilder lpBuffer);
[DllImport("kernel32")] public static extern int GetLogicalDrives();
[DllImport("kernel32")] public static extern int GetMailslotInfo(HANDLE hMailslot, ref int lpMaxMessageSize, ref int lpNextSize, ref int lpMessageCount, ref int lpReadTimeout);
[DllImport("kernel32")] public static extern int GetModuleFileName(HANDLE hModule, StringBuilder lpFileName, int nSize);
[DllImport("kernel32")] public static extern int GetModuleHandle(string lpModuleName);
[DllImport("kernel32")] public static extern int GetNamedPipeHandleState(HANDLE hNamedPipe, ref int lpState, ref int lpCurInstances, ref int lpMaxCollectionCount, ref int lpCollectDataTimeout, string lpUserName, int nMaxUserNameSize);
[DllImport("kernel32")] public static extern int GetNamedPipeInfo(HANDLE hNamedPipe, ref int lpFlags, ref int lpOutBufferSize, ref int lpInBufferSize, ref int lpMaxInstances);
[DllImport("kernel32")] public static extern int GetNumberFormat(int Locale, int dwFlags, string lpValue, ref NUMBERFMT lpFormat, string lpNumberStr, int cchNumber);
[DllImport("kernel32")] public static extern int GetNumberOfConsoleInputEvents(HANDLE hConsoleInput, ref int lpNumberOfEvents);
[DllImport("kernel32")] public static extern int GetNumberOfConsoleMouseButtons(int lpNumberOfMouseButtons);
[DllImport("kernel32")] public static extern int GetOEMCP();
[DllImport("kernel32")] public static extern int GetOverlappedResult(HANDLE hFile, ref OVERLAPPED lpOverlapped, ref int lpNumberOfBytesTransferred, int bWait);
[DllImport("kernel32")] public static extern int GetPriorityClass(HANDLE hProcess);
[DllImport("kernel32")] public static extern int GetPrivateProfileInt(string lpApplicationName, string lpKeyName, int nDefault, string lpFileName);
[DllImport("kernel32")] public static extern int GetPrivateProfileSection(string lpAppName, StringBuilder lpReturnedString, int nSize, string lpFileName);
[DllImport("kernel32")] public static extern int GetPrivateProfileString(string lpApplicationName, IntPtr lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
[DllImport("kernel32")] public static extern int GetPrivateProfileString(string lpApplicationName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
[DllImport("kernel32")] public static extern int GetProcessAffinityMask(HANDLE hProcess, ref int lpProcessAffinityMask, int SystemAffinityMask);
[DllImport("kernel32")] public static extern int GetProcessHeap();
[DllImport("kernel32")] public static extern int GetProcessHeaps(int NumberOfHeaps, int ProcessHeaps);
[DllImport("kernel32")] public static extern int GetProcessShutdownParameters(int lpdwLevel, ref int lpdwFlags);
[DllImport("kernel32")] public static extern int GetProcessTimes(HANDLE hProcess, ref FILETIME lpCreationTime, ref FILETIME lpExitTime, ref FILETIME lpKernelTime, ref FILETIME lpUserTime);
[DllImport("kernel32")] public static extern int GetProcessWorkingSetSize(HANDLE hProcess, ref int lpMinimumWorkingSetSize, ref int lpMaximumWorkingSetSize);
[DllImport("kernel32")] public static extern int GetProfileInt(string lpAppName, string lpKeyName, int nDefault);
[DllImport("kernel32")] public static extern int GetProfileSection(string lpAppName, string lpReturnedString, int nSize);
[DllImport("kernel32")] public static extern int GetProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize);
[DllImport("kernel32")] public static extern int GetQueuedCompletionStatus(int CompletionPort, ref int lpNumberOfBytesTransferred, ref int lpCompletionKey, ref int lpOverlapped, int dwMilliseconds);
[DllImport("kernel32")] public static extern int GetShortPathName(string lpszLongPath, string lpszShortPath, int cchBuffer);
[DllImport("kernel32")] public static extern int GetStdHandle(int nStdHandle);
[DllImport("kernel32")] public static extern int GetStringTypeA(int lcid, int dwInfoType, string lpSrcStr, int cchSrc, ref int lpCharType);
[DllImport("kernel32")] public static extern int GetStringTypeEx(int Locale, int dwInfoType, string lpSrcStr, int cchSrc, short lpCharType);
[DllImport("kernel32")] public static extern int GetStringTypeW(int dwInfoType, string lpSrcStr, int cchSrc, short lpCharType);
[DllImport("kernel32")] public static extern int GetSystemDefaultLCID();
[DllImport("kernel32")] public static extern int GetSystemDirectory(StringBuilder lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GetSystemPowerStatus(ref SYSTEM_POWER_STATUS lpSystemPowerStatus);
[DllImport("kernel32")] public static extern int GetSystemTimeAdjustment(int lpTimeAdjustment, ref int lpTimeIncrement, ref int lpTimeAdjustmentDisabled);
[DllImport("kernel32")] public static extern int GetTapeParameters(HANDLE hDevice, int dwOperation, ref int lpdwSize, IntPtr lpTapeInformation);
[DllImport("kernel32")] public static extern int GetTapePosition(HANDLE hDevice, int dwPositionType, ref int lpdwPartition, ref int lpdwOffsetLow, ref int lpdwOffsetHigh);
[DllImport("kernel32")] public static extern int GetTapeStatus(HANDLE hDevice);
[DllImport("kernel32")] public static extern int GetTempFileName(string lpszPath, string lpPrefixString, int wUnique, StringBuilder lpTempFileName);
[DllImport("kernel32")] public static extern int GetTempPath(int nBufferLength, StringBuilder lpBuffer);
[DllImport("kernel32")] public static extern int GetThreadContext(HANDLE hThread, ref CONTEXT lpContext);
[DllImport("kernel32")] public static extern int GetThreadPriority(HANDLE hThread);
[DllImport("kernel32")] public static extern int GetThreadSelectorEntry(HANDLE hThread, int dwSelector, ref LDT_ENTRY lpSelectorEntry);
[DllImport("kernel32")] public static extern int GetThreadTimes(HANDLE hThread, ref FILETIME lpCreationTime, ref FILETIME lpExitTime, ref FILETIME lpKernelTime, ref FILETIME lpUserTime);
[DllImport("kernel32")] public static extern int GetTickCount();
[DllImport("kernel32")] public static extern int GetTimeFormat(int Locale, int dwFlags, ref SYSTEMTIME lpTime, string lpFormat, string lpTimeStr, int cchTime);
[DllImport("kernel32")] public static extern int GetTimeZoneInformation(ref TIME_ZONE_INFORMATION lpTimeZoneInformation);
[DllImport("kernel32")] public static extern int GetUserDefaultLCID();
[DllImport("kernel32")] public static extern int GetVersion();
[DllImport("kernel32")] public static extern int GetVersionEx(ref OSVERSIONINFO lpVersionInformation);
[DllImport("kernel32")] public static extern int GetVolumeInformation(string lpRootPathName, string lpVolumeNameBuffer, int nVolumeNameSize, ref int lpVolumeSerialNumber, ref int lpMaximumComponentLength, ref int lpFileSystemFlags, string lpFileSystemNameBuffer, int nFileSystemNameSize);
[DllImport("kernel32")] public static extern int GetWindowsDirectory(StringBuilder lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GlobalAlloc(int wFlags, int dwBytes);
[DllImport("kernel32")] public static extern int GlobalCompact(int dwMinFree);
[DllImport("kernel32")] public static extern int GlobalFlags(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalFree(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalGetAtomName(short nAtom, string lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GlobalHandle(IntPtr wMem);
[DllImport("kernel32")] public static extern int GlobalLock(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalReAlloc(HANDLE hMem, int dwBytes, int wFlags);
[DllImport("kernel32")] public static extern int GlobalSize(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalUnWire(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalUnlock(HANDLE hMem);
[DllImport("kernel32")] public static extern int GlobalWire(HANDLE hMem);
[DllImport("kernel32")] public static extern int HeapAlloc(HANDLE hHeap, int dwFlags, int dwBytes);
[DllImport("kernel32")] public static extern int HeapCompact(HANDLE hHeap, int dwFlags);
[DllImport("kernel32")] public static extern int HeapCreate(int flOptions, int dwInitialSize, int dwMaximumSize);
[DllImport("kernel32")] public static extern int HeapDestroy(HANDLE hHeap);
[DllImport("kernel32")] public static extern int HeapFree(HANDLE hHeap, int dwFlags, IntPtr lpMem);
[DllImport("kernel32")] public static extern int HeapLock(HANDLE hHeap);
[DllImport("kernel32")] public static extern int HeapReAlloc(HANDLE hHeap, int dwFlags, IntPtr lpMem, int dwBytes);
[DllImport("kernel32")] public static extern int HeapSize(HANDLE hHeap, int dwFlags, IntPtr lpMem);
[DllImport("kernel32")] public static extern int HeapUnlock(HANDLE hHeap);
[DllImport("kernel32")] public static extern int HeapValidate(HANDLE hHeap, int dwFlags, IntPtr lpMem);
[DllImport("kernel32")] public static extern int InitAtomTable(int nSize);
[DllImport("kernel32")] public static extern int InterlockedDecrement(int lpAddend);
[DllImport("kernel32")] public static extern int InterlockedExchange(int Target, int Value);
[DllImport("kernel32")] public static extern int InterlockedIncrement(int lpAddend);
[DllImport("kernel32")] public static extern int IsBadCodePtr(int lpfn);
[DllImport("kernel32")] public static extern int IsBadHugeReadPtr(IntPtr lp, int ucb);
[DllImport("kernel32")] public static extern int IsBadHugeWritePtr(IntPtr lp, int ucb);
[DllImport("kernel32")] public static extern int IsBadReadPtr(IntPtr lp, int ucb);
[DllImport("kernel32")] public static extern int IsBadStringPtr(string lpsz, int ucchMax);
[DllImport("kernel32")] public static extern int IsBadWritePtr(IntPtr lp, int ucb);
[DllImport("kernel32")] public static extern int IsDBCSLeadByte(Byte bTestChar);
[DllImport("kernel32")] public static extern int IsValidCodePage(int CodePage);
[DllImport("kernel32")] public static extern int LCMapString(int Locale, int dwMapFlags, string lpSrcStr, int cchSrc, string lpDestStr, int cchDest);
[DllImport("kernel32")] public static extern int LoadLibrary(string lpLibFileName);
[DllImport("kernel32")] public static extern int LoadLibraryEx(string lpLibFileName, HANDLE hFile, int dwFlags);
[DllImport("kernel32")] public static extern int LoadModule(string lpModuleName, IntPtr lpParameterBlock);
[DllImport("kernel32")] public static extern int LoadResource(HANDLE hInstance, HANDLE hResInfo);
[DllImport("kernel32")] public static extern int LocalAlloc(int wFlags, int wBytes);
[DllImport("kernel32")] public static extern int LocalCompact(int uMinFree);
[DllImport("kernel32")] public static extern int LocalFileTimeToFileTime(ref FILETIME lpLocalFileTime, ref FILETIME lpFileTime);
[DllImport("kernel32")] public static extern int LocalFlags(HANDLE hMem);
[DllImport("kernel32")] public static extern int LocalFree(HANDLE hMem);
[DllImport("kernel32")] public static extern int LocalHandle(HANDLE hMem);
[DllImport("kernel32")] public static extern int LocalLock(HANDLE hMem);
[DllImport("kernel32")] public static extern int LocalReAlloc(HANDLE hMem, int wBytes, int wFlags);
[DllImport("kernel32")] public static extern int LocalShrink(HANDLE hMem, int cbNewSize);
[DllImport("kernel32")] public static extern int LocalSize(HANDLE hMem);
[DllImport("kernel32")] public static extern int LocalUnlock(HANDLE hMem);
[DllImport("kernel32")] public static extern int LockFile(HANDLE hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh);
[DllImport("kernel32")] public static extern int LockFileEx(HANDLE hFile, int dwFlags, int dwReserved, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int LockResource(HANDLE hResData);
[DllImport("kernel32")] public static extern int MapViewOfFile(HANDLE hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap);
[DllImport("kernel32")] public static extern int MapViewOfFileEx(HANDLE hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap, IntPtr lpBaseAddress);
[DllImport("kernel32")] public static extern int MoveFile(string lpExistingFileName, string lpNewFileName);
[DllImport("kernel32")] public static extern int MoveFileEx(string lpExistingFileName, string lpNewFileName, int dwFlags);
[DllImport("kernel32")] public static extern int MulDiv(int nNumber, int nNumerator, int nDenominator);
[DllImport("kernel32")] public static extern int MultiByteToWideChar(int CodePage, int dwFlags, string lpMultiByteStr, int cchMultiByte, string lpWideCharStr, int cchWideChar);
[DllImport("kernel32")] public static extern int OpenEvent(int dwDesiredAccess, int bInheritHandle, string lpName);
[DllImport("kernel32")] public static extern int OpenFile(string lpFileName, ref OFSTRUCT lpReOpenBuff, int wStyle);
[DllImport("kernel32")] public static extern int OpenFileMapping(int dwDesiredAccess, int bInheritHandle, string lpName);
[DllImport("kernel32")] public static extern int OpenMutex(int dwDesiredAccess, int bInheritHandle, string lpName);
[DllImport("kernel32")] public static extern int OpenProcess(int dwDesiredAccess, int bInheritHandle, int dwProcessId);
[DllImport("kernel32")] public static extern int OpenSemaphore(int dwDesiredAccess, int bInheritHandle, string lpName);
[DllImport("kernel32")] public static extern int PeekNamedPipe(HANDLE hNamedPipe, IntPtr lpBuffer, int nBufferSize, ref int lpBytesRead, ref int lpTotalBytesAvail, ref int lpBytesLeftThisMessage);
[DllImport("kernel32")] public static extern int PrepareTape(HANDLE hDevice, int dwOperation, int bimmediate);
[DllImport("kernel32")] public static extern int PulseEvent(HANDLE hEvent);
[DllImport("kernel32")] public static extern int PurgeComm(HANDLE hFile, int dwFlags);
[DllImport("kernel32")] public static extern int QueryDosDevice(string lpDeviceName, string lpTargetPath, int ucchMax);
[DllImport("kernel32")] public static extern int QueryPerformanceCounter(ref LARGE_INTEGER lpPerformanceCount);
[DllImport("kernel32")] public static extern int QueryPerformanceFrequency(ref LARGE_INTEGER lpFrequency);
[DllImport("kernel32")] public static extern int ReadConsole(HANDLE hConsoleInput, IntPtr lpBuffer, int nNumberOfCharsToRead, ref int lpNumberOfCharsRead, IntPtr lpReserved);
[DllImport("kernel32")] public static extern int ReadConsoleOutput(HANDLE hConsoleOutput, ref CHAR_INFO lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, ref SMALL_RECT lpReadRegion);
[DllImport("kernel32")] public static extern int ReadConsoleOutputAttribute(HANDLE hConsoleOutput, ref int lpAttribute, int nLength, COORD dwReadCoord, ref int lpNumberOfAttrsRead);
[DllImport("kernel32")] public static extern int ReadConsoleOutputCharacter(HANDLE hConsoleOutput, string lpCharacter, int nLength, COORD dwReadCoord, ref int lpNumberOfCharsRead);
[DllImport("kernel32")] public static extern int ReadFile(HANDLE hFile, IntPtr lpBuffer, int nNumberOfBytesToRead, ref int lpNumberOfBytesRead, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int ReadFileEx(HANDLE hFile, IntPtr lpBuffer, int nNumberOfBytesToRead, ref OVERLAPPED lpOverlapped, ref int lpCompletionRoutine);
[DllImport("kernel32")] public static extern int ReadProcessMemory(HANDLE hProcess, IntPtr lpBaseAddress, IntPtr lpBuffer, int nSize, ref int lpNumberOfBytesWritten);
[DllImport("kernel32")] public static extern int ReleaseMutex(HANDLE hMutex);
[DllImport("kernel32")] public static extern int ReleaseSemaphore(HANDLE hSemaphore, int lReleaseCount, ref int lpPreviousCount);
[DllImport("kernel32")] public static extern int RemoveDirectory(string lpPathName);
[DllImport("kernel32")] public static extern int ResetEvent(HANDLE hEvent);
[DllImport("kernel32")] public static extern int ResumeThread(HANDLE hThread);
[DllImport("kernel32")] public static extern int ScrollConsoleScreenBuffer(HANDLE hConsoleOutput, ref SMALL_RECT lpScrollRectangle, ref SMALL_RECT lpClipRectangle, COORD dwDestinationOrigin, ref CHAR_INFO lpFill);
[DllImport("kernel32")] public static extern int SearchPath(string lpPath, string lpFileName, string lpExtension, int nBufferLength, string lpBuffer, string lpFilePart);
[DllImport("kernel32")] public static extern int SetCommBreak(int nCid);
[DllImport("kernel32")] public static extern int SetCommConfig(HANDLE hCommDev, ref COMMCONFIG lpCC, int dwSize);
[DllImport("kernel32")] public static extern int SetCommMask(HANDLE hFile, int dwEvtMask);
[DllImport("kernel32")] public static extern int SetCommState(HANDLE hCommDev, ref DCB lpDCB);
[DllImport("kernel32")] public static extern int SetCommTimeouts(HANDLE hFile, ref COMMTIMEOUTS lpCommTimeouts);
[DllImport("kernel32")] public static extern int SetComputerName(string lpComputerName);
[DllImport("kernel32")] public static extern int SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput);
[DllImport("kernel32")] public static extern int SetConsoleCP(int wCodePageID);
[DllImport("kernel32")] public static extern int SetConsoleCtrlHandler(int HandlerRoutine, int Add);
[DllImport("kernel32")] public static extern int SetConsoleCursorInfo(HANDLE hConsoleOutput, ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
[DllImport("kernel32")] public static extern int SetConsoleCursorPosition(HANDLE hConsoleOutput, COORD dwCursorPosition);
[DllImport("kernel32")] public static extern int SetConsoleMode(HANDLE hConsoleHandle, int dwMode);
[DllImport("kernel32")] public static extern int SetConsoleOutputCP(int wCodePageID);
[DllImport("kernel32")] public static extern int SetConsoleScreenBufferSize(HANDLE hConsoleOutput, COORD dwSize);
[DllImport("kernel32")] public static extern int SetConsoleTextAttribute(HANDLE hConsoleOutput, int wAttributes);
[DllImport("kernel32")] public static extern int SetConsoleTitle(string lpConsoleTitle);
[DllImport("kernel32")] public static extern int SetConsoleWindowInfo(HANDLE hConsoleOutput, int bAbsolute, ref SMALL_RECT lpConsoleWindow);
[DllImport("kernel32")] public static extern int SetCurrentDirectory(string lpPathName);
[DllImport("kernel32")] public static extern int SetDefaultCommConfig(string lpszName, ref COMMCONFIG lpCC, int dwSize);
[DllImport("kernel32")] public static extern int SetEndOfFile(HANDLE hFile);
[DllImport("kernel32")] public static extern int SetEnvironmentVariable(string lpName, string lpValue);
[DllImport("kernel32")] public static extern int SetErrorMode(int wMode);
[DllImport("kernel32")] public static extern int SetEvent(HANDLE hEvent);
[DllImport("kernel32")] public static extern int SetFileAttributes(string lpFileName, int dwFileAttributes);
[DllImport("kernel32")] public static extern int SetFilePointer(HANDLE hFile, int lDistanceToMove, ref int lpDistanceToMoveHigh, int dwMoveMethod);
[DllImport("kernel32")] public static extern int SetFileTime(HANDLE hFile, ref FILETIME lpCreationTime, ref FILETIME lpLastAccessTime, ref FILETIME lpLastWriteTime);
[DllImport("kernel32")] public static extern int SetHandleCount(int wNumber);
[DllImport("kernel32")] public static extern int SetHandleInformation(HANDLE hObject, int dwMask, int dwFlags);
[DllImport("kernel32")] public static extern int SetLocalTime(ref SYSTEMTIME lpSystemTime);
[DllImport("kernel32")] public static extern int SetLocaleInfo(int Locale, int LCType, string lpLCData);
[DllImport("kernel32")] public static extern int SetMailslotInfo(HANDLE hMailslot, int lReadTimeout);
[DllImport("kernel32")] public static extern int SetNamedPipeHandleState(HANDLE hNamedPipe, ref int lpMode, ref int lpMaxCollectionCount, ref int lpCollectDataTimeout);
[DllImport("kernel32")] public static extern int SetPriorityClass(HANDLE hProcess, int dwPriorityClass);
[DllImport("kernel32")] public static extern int SetProcessShutdownParameters(int dwLevel, int dwFlags);
[DllImport("kernel32")] public static extern int SetProcessWorkingSetSize(HANDLE hProcess, int dwMinimumWorkingSetSize, int dwMaximumWorkingSetSize);
[DllImport("kernel32")] public static extern int SetStdHandle(int nStdHandle, int nHandle);
[DllImport("kernel32")] public static extern int SetSystemPowerState(int fSuspend, int fForce);
[DllImport("kernel32")] public static extern int SetSystemTime(ref SYSTEMTIME lpSystemTime);
[DllImport("kernel32")] public static extern int SetTapeParameters(HANDLE hDevice, int dwOperation, IntPtr lpTapeInformation);
[DllImport("kernel32")] public static extern int SetTapePosition(HANDLE hDevice, int dwPositionMethod, int dwPartition, int dwOffsetLow, int dwOffsetHigh, int bimmediate);
[DllImport("kernel32")] public static extern int SetThreadAffinityMask(HANDLE hThread, int dwThreadAffinityMask);
[DllImport("kernel32")] public static extern int SetThreadContext(HANDLE hThread, ref CONTEXT lpContext);
[DllImport("kernel32")] public static extern int SetThreadLocale(int Locale);
[DllImport("kernel32")] public static extern int SetThreadPriority(HANDLE hThread, int nPriority);
[DllImport("kernel32")] public static extern int SetTimeZoneInformation(ref TIME_ZONE_INFORMATION lpTimeZoneInformation);
[DllImport("kernel32")] public static extern int SetUnhandledExceptionFilter(int lpTopLevelExceptionFilter);
[DllImport("kernel32")] public static extern int SetVolumeLabel(string lpRootPathName, string lpVolumeName);
[DllImport("kernel32")] public static extern int SetupComm(HANDLE hFile, int dwInQueue, int dwOutQueue);
[DllImport("kernel32")] public static extern int SizeofResource(HANDLE hInstance, HANDLE hResInfo);
[DllImport("kernel32")] public static extern int SleepEx(int dwMilliseconds, int bAlertable);
[DllImport("kernel32")] public static extern int SuspendThread(HANDLE hThread);
[DllImport("kernel32")] public static extern int SystemTimeToFileTime(ref SYSTEMTIME lpSystemTime, ref FILETIME lpFileTime);
[DllImport("kernel32")] public static extern int SystemTimeToTzSpecificLocalTime(ref TIME_ZONE_INFORMATION lpTimeZoneInformation, ref SYSTEMTIME lpUniversalTime, ref SYSTEMTIME lpLocalTime);
[DllImport("kernel32")] public static extern int TerminateProcess(HANDLE hProcess, int uExitCode);
[DllImport("kernel32")] public static extern int TerminateThread(HANDLE hThread, int dwExitCode);
[DllImport("kernel32")] public static extern int TlsAlloc();
[DllImport("kernel32")] public static extern int TlsFree(int dwTlsIndex);
[DllImport("kernel32")] public static extern int TlsGetValue(int dwTlsIndex);
[DllImport("kernel32")] public static extern int TlsSetValue(int dwTlsIndex, IntPtr lpTlsValue);
[DllImport("kernel32")] public static extern int TransactNamedPipe(HANDLE hNamedPipe, IntPtr lpInBuffer, int nInBufferSize, IntPtr lpOutBuffer, int nOutBufferSize, ref int lpBytesRead, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int TransmitCommChar(int nCid, Byte cChar);
[DllImport("kernel32")] public static extern int UnhandledExceptionFilter(ref EXCEPTION_POINTERS ExceptionInfo);
[DllImport("kernel32")] public static extern int UnlockFile(HANDLE hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh);
[DllImport("kernel32")] public static extern int UnlockFileEx(HANDLE hFile, int dwReserved, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int UnmapViewOfFile(IntPtr lpBaseAddress);
[DllImport("kernel32")] public static extern int UpdateResource(HANDLE hUpdate, string lpType, string lpName, int wLanguage, IntPtr lpData, int cbData);
[DllImport("kernel32")] public static extern int VerLanguageName(int wLang, string szLang, int nSize);
[DllImport("kernel32")] public static extern int VirtualAlloc(IntPtr lpAddress, int dwSize, int flAllocationType, int flProtect);
[DllImport("kernel32")] public static extern int VirtualFree(IntPtr lpAddress, int dwSize, int dwFreeType);
[DllImport("kernel32")] public static extern int VirtualLock(IntPtr lpAddress, int dwSize);
[DllImport("kernel32")] public static extern int VirtualProtect(IntPtr lpAddress, int dwSize, int flNewProtect, ref int lpflOldProtect);
[DllImport("kernel32")] public static extern int VirtualProtectEx(HANDLE hProcess, IntPtr lpAddress, int dwSize, int flNewProtect, ref int lpflOldProtect);
[DllImport("kernel32")] public static extern int VirtualQuery(IntPtr lpAddress, ref MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);
[DllImport("kernel32")] public static extern int VirtualQueryEx(HANDLE hProcess, IntPtr lpAddress, ref MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);
[DllImport("kernel32")] public static extern int VirtualUnlock(IntPtr lpAddress, int dwSize);
[DllImport("kernel32")] public static extern int WaitCommEvent(HANDLE hFile, ref int lpEvtMask, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int WaitForMultipleObjects(int nCount, ref int lpHandles, int bWaitAll, int dwMilliseconds);
[DllImport("kernel32")] public static extern int WaitForMultipleObjectsEx(int nCount, ref int lpHandles, int bWaitAll, int dwMilliseconds, int bAlertable);
[DllImport("kernel32")] public static extern int WaitForSingleObject(HANDLE hHandle, int dwMilliseconds);
[DllImport("kernel32")] public static extern int WaitForSingleObjectEx(HANDLE hHandle, int dwMilliseconds, int bAlertable);
[DllImport("kernel32")] public static extern int WaitNamedPipe(string lpNamedPipeName, int nTimeOut);
[DllImport("kernel32")] public static extern int WideCharToMultiByte(int CodePage, int dwFlags, string lpWideCharStr, int cchWideChar, string lpMultiByteStr, int cchMultiByte, string lpDefaultChar, ref int lpUsedDefaultChar);
[DllImport("kernel32")] public static extern int WinExec(string lpCmdLine, int nCmdShow);
[DllImport("kernel32")] public static extern int WriteConsole(HANDLE hConsoleOutput, IntPtr lpBuffer, int nNumberOfCharsToWrite, ref int lpNumberOfCharsWritten, IntPtr lpReserved);
[DllImport("kernel32")] public static extern int WriteConsoleOutput(HANDLE hConsoleOutput, ref CHAR_INFO lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, ref SMALL_RECT lpWriteRegion);
[DllImport("kernel32")] public static extern int WriteConsoleOutputAttribute(HANDLE hConsoleOutput, short lpAttribute, int nLength, COORD dwWriteCoord, ref int lpNumberOfAttrsWritten);
[DllImport("kernel32")] public static extern int WriteConsoleOutputCharacter(HANDLE hConsoleOutput, string lpCharacter, int nLength, COORD dwWriteCoord, ref int lpNumberOfCharsWritten);
[DllImport("kernel32")] public static extern int WriteFile(HANDLE hFile, IntPtr lpBuffer, int nNumberOfBytesToWrite, ref int lpNumberOfBytesWritten, ref OVERLAPPED lpOverlapped);
[DllImport("kernel32")] public static extern int WriteFileEx(HANDLE hFile, IntPtr lpBuffer, int nNumberOfBytesToWrite, ref OVERLAPPED lpOverlapped, ref int lpCompletionRoutine);
[DllImport("kernel32")] public static extern int WritePrivateProfileSection(string lpAppName, string lpString, string lpFileName);
[DllImport("kernel32")] public static extern int WritePrivateProfileString(string lpApplicationName, IntPtr lpKeyName, IntPtr lpString, string lpFileName);
[DllImport("kernel32")] public static extern int WritePrivateProfileString(string lpApplicationName, string lpKeyName, IntPtr lpString, string lpFileName);
[DllImport("kernel32")] public static extern int WriteProcessMemory(HANDLE hProcess, IntPtr lpBaseAddress, IntPtr lpBuffer, int nSize, ref int lpNumberOfBytesWritten);
[DllImport("kernel32")] public static extern int WriteProfileSection(string lpAppName, string lpString);
[DllImport("kernel32")] public static extern int WriteProfileString(string lpszSection, string lpszKeyName, string lpszString);
[DllImport("kernel32")] public static extern int WriteTapemark(HANDLE hDevice, int dwTapemarkType, int dwTapemarkCount, int bimmediate);
[DllImport("kernel32")] public static extern int hread(HANDLE hFile, IntPtr lpBuffer, int lBytes);
[DllImport("kernel32")] public static extern int hwrite(HANDLE hFile, string lpBuffer, int lBytes);
[DllImport("kernel32")] public static extern int lclose(HANDLE hFile);
[DllImport("kernel32")] public static extern int lcreat(string lpPathName, int iAttribute);
[DllImport("kernel32")] public static extern int llseek(HANDLE hFile, int lOffset, int iOrigin);
[DllImport("kernel32")] public static extern int lopen(string lpPathName, int iReadWrite);
[DllImport("kernel32")] public static extern int lread(HANDLE hFile, IntPtr lpBuffer, int wBytes);
[DllImport("kernel32")] public static extern int lstrcat(string lpString1, string lpString2);
[DllImport("kernel32")] public static extern int lstrcmp(string lpString1, string lpString2);
[DllImport("kernel32")] public static extern int lstrcmpi(string lpString1, string lpString2);
[DllImport("kernel32")] public static extern int lstrcpy(string lpString1, string lpString2);
[DllImport("kernel32")] public static extern int lstrcpyn(string lpString1, string lpString2, int iMaxLength);
[DllImport("kernel32")] public static extern int lstrlen(string lpString);
[DllImport("kernel32")] public static extern int lwrite(HANDLE hFile, string lpBuffer, int wBytes);
[DllImport("kernel32")] public static extern short GetSystemDefaultLangID();
[DllImport("kernel32")] public static extern short GetUserDefaultLangID();
[DllImport("kernel32")] public static extern short GlobalAddAtom(string lpString);
[DllImport("kernel32")] public static extern short GlobalDeleteAtom(short nAtom);
[DllImport("kernel32")] public static extern short GlobalFindAtom(string lpString);
[DllImport("kernel32")] public static extern string GetEnvironmentStrings();
[DllImport("kernel32")] public static extern void CopyMemory(IntPtr Destination, IntPtr Source, int Length);
[DllImport("kernel32")] public static extern void DebugBreak();
[DllImport("kernel32")] public static extern void DeleteCriticalSection(ref CRITICAL_SECTION lpCriticalSection);
[DllImport("kernel32")] public static extern void EnterCriticalSection(ref CRITICAL_SECTION lpCriticalSection);
[DllImport("kernel32")] public static extern void ExitProcess(int uExitCode);
[DllImport("kernel32")] public static extern void ExitThread(int dwExitCode);
[DllImport("kernel32")] public static extern void FatalAppExit(int uAction, string lpMessageText);
[DllImport("kernel32")] public static extern void FatalExit(int code);
[DllImport("kernel32")] public static extern void FreeLibraryAndExitThread(HANDLE hLibModule, int dwExitCode);
[DllImport("kernel32")] public static extern void GetLocalTime(ref SYSTEMTIME lpSystemTime);
[DllImport("kernel32")] public static extern void GetStartupInfo(ref STARTUPINFO lpStartupInfo);
[DllImport("kernel32")] public static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
[DllImport("kernel32")] public static extern void GetSystemTime(ref SYSTEMTIME lpSystemTime);
[DllImport("kernel32")] public static extern void GlobalFix(HANDLE hMem);
[DllImport("kernel32")] public static extern void GlobalMemoryStatus(ref MEMORYSTATUS lpBuffer);
[DllImport("kernel32")] public static extern void GlobalUnfix(HANDLE hMem);
[DllImport("kernel32")] public static extern void InitializeCriticalSection(ref CRITICAL_SECTION lpCriticalSection);
[DllImport("kernel32")] public static extern void LeaveCriticalSection(ref CRITICAL_SECTION lpCriticalSection);
[DllImport("kernel32")] public static extern void RaiseException(int dwExceptionCode, int dwExceptionFlags, int nNumberOfArguments, ref int lpArguments);
[DllImport("kernel32")] public static extern void SetFileApisToANSI();
[DllImport("kernel32")] public static extern void SetFileApisToOEM();
[DllImport("kernel32")] public static extern void SetLastError(int dwErrCode);
[DllImport("kernel32")] public static extern void Sleep(int dwMilliseconds);
[DllImport("kernel32")] public static extern int GetComputerNameW(IntPtr lpBuffer, int nSize);
[DllImport("kernel32")] public static extern int GetProcAddress(HANDLE hModule, string lpProcName); public const int ACCESS_ALLOWED_ACE_TYPE = 0x0;
public const int ACCESS_DENIED_ACE_TYPE = 0x1;
public const int ACCESS_SYSTEM_SECURITY = 0x1000000;
public const int ACL_REVISION = ();
public const int ACL_REVISION1 = ();
public const int ACL_REVISION2 = ();
public const int AC_LINE_BACKUP_POWER = 0x2;
public const int AC_LINE_OFFLINE = 0x0;
public const int AC_LINE_ONLINE = 0x1;
public const int AC_LINE_UNKNOWN = 0xFF;
public const int APPLICATION_ERROR_MASK = 0x20000000;
public const int AclRevisionInformation = ;
public const int AclSizeInformation = ;
public const int BACKGROUND_BLUE = 0x10;
public const int BACKGROUND_GREEN = 0x20;
public const int BACKGROUND_INTENSITY = 0x80;
public const int BACKGROUND_RED = 0x40;
public const int BACKUP_ALTERNATE_DATA = 0x4;
public const int BACKUP_DATA = 0x1;
public const int BACKUP_EA_DATA = 0x2;
public const int BACKUP_LINK = 0x5;
public const int BACKUP_SECURITY_DATA = 0x3;
public const int BATTERY_FLAG_CHARGING = 0x8;
public const int BATTERY_FLAG_CRITICAL = 0x4;
public const int BATTERY_FLAG_HIGH = 0x1;
public const int BATTERY_FLAG_LOW = 0x2;
public const int BATTERY_FLAG_NO_BATTERY = 0x80;
public const int BATTERY_FLAG_UNKNOWN = 0xFF;
public const int BATTERY_LIFE_UNKNOWN = 0xFFFF;
public const int BATTERY_PERCENTAGE_UNKNOWN = 0xFF;
public const int BAUD_075 = 0x1;
public const int BAUD_110 = 0x2;
public const int BAUD_115200 = 0x20000;
public const int BAUD_1200 = 0x40;
public const int BAUD_128K = 0x10000;
public const int BAUD_134_5 = 0x4;
public const int BAUD_14400 = 0x1000;
public const int BAUD_150 = 0x8;
public const int BAUD_1800 = 0x80;
public const int BAUD_19200 = 0x2000;
public const int BAUD_2400 = 0x100;
public const int BAUD_300 = 0x10;
public const int BAUD_38400 = 0x4000;
public const int BAUD_4800 = 0x200;
public const int BAUD_56K = 0x8000;
public const int BAUD_57600 = 0x40000;
public const int BAUD_600 = 0x20;
public const int BAUD_7200 = 0x400;
public const int BAUD_9600 = 0x800;
public const int BAUD_USER = 0x10000000;
public const int C1_ALPHA = 0x100;
public const int C1_BLANK = 0x40;
public const int C1_CNTRL = 0x20;
public const int C1_DIGIT = 0x4;
public const int C1_LOWER = 0x2;
public const int C1_PUNCT = 0x10;
public const int C1_SPACE = 0x8;
public const int C1_UPPER = 0x1;
public const int C1_XDIGIT = 0x80;
public const int C2_ARABICNUMBER = 0x6;
public const int C2_BLOCKSEPARATOR = 0x8;
public const int C2_COMMONSEPARATOR = 0x7;
public const int C2_EUROPENUMBER = 0x3;
public const int C2_EUROPESEPARATOR = 0x4;
public const int C2_EUROPETERMINATOR = 0x5;
public const int C2_LEFTTORIGHT = 0x1;
public const int C2_NOTAPPLICABLE = 0x0;
public const int C2_OTHERNEUTRAL = 0xB;
public const int C2_RIGHTTOLEFT = 0x2;
public const int C2_SEGMENTSEPARATOR = 0x9;
public const int C2_WHITESPACE = 0xA;
public const int C3_DIACRITIC = 0x2;
public const int C3_NONSPACING = 0x1;
public const int C3_NOTAPPLICABLE = 0x0;
public const int C3_SYMBOL = 0x8;
public const int C3_VOWELMARK = 0x4;
public const int CAL_GREGORIAN = ;
public const int CAL_GREGORIAN_US = ;
public const int CAL_ICALINTVALUE = 0x1;
public const int CAL_IYEAROFFSETRANGE = 0x3;
public const int CAL_JAPAN = ;
public const int CAL_KOREA = ;
public const int CAL_SABBREVDAYNAME1 = 0xE;
public const int CAL_SABBREVDAYNAME2 = 0xF;
public const int CAL_SABBREVDAYNAME3 = 0x10;
public const int CAL_SABBREVDAYNAME4 = 0x11;
public const int CAL_SABBREVDAYNAME5 = 0x12;
public const int CAL_SABBREVDAYNAME6 = 0x13;
public const int CAL_SABBREVDAYNAME7 = 0x14;
public const int CAL_SABBREVMONTHNAME1 = 0x22;
public const int CAL_SABBREVMONTHNAME10 = 0x2B;
public const int CAL_SABBREVMONTHNAME11 = 0x2C;
public const int CAL_SABBREVMONTHNAME12 = 0x2D;
public const int CAL_SABBREVMONTHNAME13 = 0x2E;
public const int CAL_SABBREVMONTHNAME2 = 0x23;
public const int CAL_SABBREVMONTHNAME3 = 0x24;
public const int CAL_SABBREVMONTHNAME4 = 0x25;
public const int CAL_SABBREVMONTHNAME5 = 0x26;
public const int CAL_SABBREVMONTHNAME6 = 0x27;
public const int CAL_SABBREVMONTHNAME7 = 0x28;
public const int CAL_SABBREVMONTHNAME8 = 0x29;
public const int CAL_SABBREVMONTHNAME9 = 0x2A;
public const int CAL_SCALNAME = 0x2;
public const int CAL_SDAYNAME1 = 0x7;
public const int CAL_SDAYNAME2 = 0x8;
public const int CAL_SDAYNAME3 = 0x9;
public const int CAL_SDAYNAME4 = 0xA;
public const int CAL_SDAYNAME5 = 0xB;
public const int CAL_SDAYNAME6 = 0xC;
public const int CAL_SDAYNAME7 = 0xD;
public const int CAL_SERASTRING = 0x4;
public const int CAL_SLONGDATE = 0x6;
public const int CAL_SMONTHNAME1 = 0x15;
public const int CAL_SMONTHNAME10 = 0x1E;
public const int CAL_SMONTHNAME11 = 0x1F;
public const int CAL_SMONTHNAME12 = 0x20;
public const int CAL_SMONTHNAME13 = 0x21;
public const int CAL_SMONTHNAME2 = 0x16;
public const int CAL_SMONTHNAME3 = 0x17;
public const int CAL_SMONTHNAME4 = 0x18;
public const int CAL_SMONTHNAME5 = 0x19;
public const int CAL_SMONTHNAME6 = 0x1A;
public const int CAL_SMONTHNAME7 = 0x1B;
public const int CAL_SMONTHNAME8 = 0x1C;
public const int CAL_SMONTHNAME9 = 0x1D;
public const int CAL_SSHORTDATE = 0x5;
public const int CAL_TAIWAN = ;
public const int CAPSLOCK_ON = 0x80;
public const int CBR_110 = ;
public const int CBR_115200 = ;
public const int CBR_1200 = ;
public const int CBR_128000 = ;
public const int CBR_14400 = ;
public const int CBR_19200 = ;
public const int CBR_2400 = ;
public const int CBR_256000 = ;
public const int CBR_300 = ;
public const int CBR_38400 = ;
public const int CBR_4800 = ;
public const int CBR_56000 = ;
public const int CBR_57600 = ;
public const int CBR_600 = ;
public const int CBR_9600 = ;
public const int CE_BREAK = 0x10;
public const int CE_DNS = 0x800;
public const int CE_FRAME = 0x8;
public const int CE_IOE = 0x400;
public const int CE_MODE = 0x8000;
public const int CE_OOP = 0x1000;
public const int CE_OVERRUN = 0x2;
public const int CE_PTO = 0x200;
public const int CE_RXOVER = 0x1;
public const int CE_RXPARITY = 0x4;
public const int CE_TXFULL = 0x100;
public const int CLRBREAK = ;
public const int CLRDTR = ;
public const int CLRRTS = ;
public const int CONSOLE_TEXTMODE_BUFFER = ;
public const int CONTAINER_INHERIT_ACE = 0x2;
public const int CP_ACP = ;
public const int CP_OEMCP = ;
public const int CREATE_ALWAYS = ;
public const int CREATE_NEW = ;
public const int CREATE_NEW_CONSOLE = 0x10;
public const int CREATE_NEW_PROCESS_GROUP = 0x200;
public const int CREATE_NO_WINDOW = 0x8000000;
public const int CREATE_PROCESS_DEBUG_EVENT = ;
public const int CREATE_SUSPENDED = 0x4;
public const int CREATE_THREAD_DEBUG_EVENT = ;
public const int CTRL_BREAK_EVENT = ;
public const int CTRL_CLOSE_EVENT = ;
public const int CTRL_C_EVENT = ;
public const int CTRL_LOGOFF_EVENT = ;
public const int CTRL_SHUTDOWN_EVENT = ;
public const int CTRY_AUSTRALIA = ;
public const int CTRY_AUSTRIA = ;
public const int CTRY_BELGIUM = ;
public const int CTRY_BRAZIL = ;
public const int CTRY_CANADA = ;
public const int CTRY_DEFAULT = ;
public const int CTRY_DENMARK = ;
public const int CTRY_FINLAND = ;
public const int CTRY_FRANCE = ;
public const int CTRY_GERMANY = ;
public const int CTRY_ICELAND = ;
public const int CTRY_IRELAND = ;
public const int CTRY_ITALY = ;
public const int CTRY_JAPAN = ;
public const int CTRY_MEXICO = ;
public const int CTRY_NETHERLANDS = ;
public const int CTRY_NEW_ZEALAND = ;
public const int CTRY_NORWAY = ;
public const int CTRY_PORTUGAL = ;
public const int CTRY_PRCHINA = ;
public const int CTRY_SOUTH_KOREA = ;
public const int CTRY_SPAIN = ;
public const int CTRY_SWEDEN = ;
public const int CTRY_SWITZERLAND = ;
public const int CTRY_TAIWAN = ;
public const int CTRY_UNITED_KINGDOM = ;
public const int CTRY_UNITED_STATES = ;
public const int CT_CTYPE1 = 0x1;
public const int CT_CTYPE2 = 0x2;
public const int CT_CTYPE3 = 0x4;
public const int DATABITS_16 = 0x10;
public const int DATABITS_16X = 0x20;
public const int DATABITS_5 = 0x1;
public const int DATABITS_6 = 0x2;
public const int DATABITS_7 = 0x4;
public const int DATABITS_8 = 0x8;
public const int DATE_LONGDATE = 0x2;
public const int DATE_SHORTDATE = 0x1;
public const int DDD_EXACT_MATCH_ON_REMOVE = 0x4;
public const int DDD_RAW_TARGET_PATH = 0x1;
public const int DDD_REMOVE_DEFINITION = 0x2;
public const int DEBUG_ONLY_THIS_PROCESS = 0x2;
public const int DEBUG_PROCESS = 0x1;
public const int DELETE = 0x10000;
public const int DETACHED_PROCESS = 0x8;
public const int DFCS_ADJUSTRECT = 0x2000;
public const int DFCS_BUTTON3STATE = 0x8;
public const int DFCS_BUTTONCHECK = 0x0;
public const int DFCS_BUTTONPUSH = 0x10;
public const int DFCS_BUTTONRADIO = 0x4;
public const int DFCS_BUTTONRADIOIMAGE = 0x1;
public const int DFCS_BUTTONRADIOMASK = 0x2;
public const int DFCS_CAPTIONCLOSE = 0x0;
public const int DFCS_CAPTIONHELP = 0x4;
public const int DFCS_CAPTIONMAX = 0x2;
public const int DFCS_CAPTIONMIN = 0x1;
public const int DFCS_CAPTIONRESTORE = 0x3;
public const int DFCS_CHECKED = 0x400;
public const int DFCS_FLAT = 0x4000;
public const int DFCS_INACTIVE = 0x100;
public const int DFCS_MENUARROW = 0x0;
public const int DFCS_MENUARROWRIGHT = 0x4;
public const int DFCS_MENUBULLET = 0x2;
public const int DFCS_MENUCHECK = 0x1;
public const int DFCS_MONO = 0x8000;
public const int DFCS_PUSHED = 0x200;
public const int DFCS_SCROLLCOMBOBOX = 0x5;
public const int DFCS_SCROLLDOWN = 0x1;
public const int DFCS_SCROLLLEFT = 0x2;
public const int DFCS_SCROLLRIGHT = 0x3;
public const int DFCS_SCROLLSIZEGRIP = 0x8;
public const int DFCS_SCROLLSIZEGRIPRIGHT = 0x10;
public const int DFCS_SCROLLUP = 0x0;
public const int DFC_BUTTON = ;
public const int DFC_CAPTION = ;
public const int DFC_MENU = ;
public const int DFC_SCROLL = ;
public const int DOMAIN_ALIAS_RID_ACCOUNT_OPS = 0x224;
public const int DOMAIN_ALIAS_RID_ADMINS = 0x220;
public const int DOMAIN_ALIAS_RID_BACKUP_OPS = 0x227;
public const int DOMAIN_ALIAS_RID_GUESTS = 0x222;
public const int DOMAIN_ALIAS_RID_POWER_USERS = 0x223;
public const int DOMAIN_ALIAS_RID_PRINT_OPS = 0x226;
public const int DOMAIN_ALIAS_RID_REPLICATOR = 0x228;
public const int DOMAIN_ALIAS_RID_SYSTEM_OPS = 0x225;
public const int DOMAIN_ALIAS_RID_USERS = 0x221;
public const int DOMAIN_GROUP_RID_ADMINS = 0x200;
public const int DOMAIN_GROUP_RID_GUESTS = 0x202;
public const int DOMAIN_GROUP_RID_USERS = 0x201;
public const int DOMAIN_USER_RID_ADMIN = 0x1F4;
public const int DOMAIN_USER_RID_GUEST = 0x1F5;
public const int DONT_RESOLVE_DLL_REFERENCES = 0x1;
public const int DOUBLE_CLICK = 0x2;
public const int DRIVE_CDROM = ;
public const int DRIVE_FIXED = ;
public const int DRIVE_RAMDISK = ;
public const int DRIVE_REMOTE = ;
public const int DRIVE_REMOVABLE = ;
public const int DTR_CONTROL_DISABLE = 0x0;
public const int DTR_CONTROL_ENABLE = 0x1;
public const int DTR_CONTROL_HANDSHAKE = 0x2;
public const int DUPLICATE_CLOSE_SOURCE = 0x1;
public const int DUPLICATE_SAME_ACCESS = 0x2;
public const int ENABLE_ECHO_INPUT = 0x4;
public const int ENABLE_LINE_INPUT = 0x2;
public const int ENABLE_MOUSE_INPUT = 0x10;
public const int ENABLE_PROCESSED_INPUT = 0x1;
public const int ENABLE_PROCESSED_OUTPUT = 0x1;
public const int ENABLE_WINDOW_INPUT = 0x8;
public const int ENABLE_WRAP_AT_EOL_OUTPUT = 0x2;
public const int ENHANCED_KEY = 0x100;
public const int ENUM_ALL_CALENDARS = 0xFFFF;
public const int ERROR_SEVERITY_ERROR = unchecked((int)0xC0000000);
public const int ERROR_SEVERITY_INFORMATIONAL = 0x40000000;
public const int ERROR_SEVERITY_SUCCESS = 0x0;
public const int ERROR_SEVERITY_WARNING = unchecked((int)0x80000000);
public const int EVENPARITY = ;
public const int EV_BREAK = 0x40;
public const int EV_CTS = 0x8;
public const int EV_DSR = 0x10;
public const int EV_ERR = 0x80;
public const int EV_EVENT1 = 0x800;
public const int EV_EVENT2 = 0x1000;
public const int EV_PERR = 0x200;
public const int EV_RING = 0x100;
public const int EV_RLSD = 0x20;
public const int EV_RX80FULL = 0x400;
public const int EV_RXCHAR = 0x1;
public const int EV_RXFLAG = 0x2;
public const int EV_TXEMPTY = 0x4;
public const int EXCEPTION_CONTINUE_EXECUTION = -;
public const int EXCEPTION_CONTINUE_SEARCH = ;
public const int EXCEPTION_DEBUG_EVENT = ;
public const int EXCEPTION_EXECUTE_HANDLER = ;
public const int EXCEPTION_MAXIMUM_PARAMETERS = ;
public const int EXIT_PROCESS_DEBUG_EVENT = ;
public const int EXIT_THREAD_DEBUG_EVENT = ;
public const int FAILED_ACCESS_ACE_FLAG = 0x80;
public const int FILE_ADD_FILE = (0x2);
public const int FILE_ADD_SUBDIRECTORY = (0x4);
public const int FILE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF);
public const int FILE_APPEND_DATA = (0x4);
public const int FILE_ATTRIBUTE_ARCHIVE = 0x20;
public const int FILE_ATTRIBUTE_COMPRESSED = 0x800;
public const int FILE_ATTRIBUTE_DIRECTORY = 0x10;
public const int FILE_ATTRIBUTE_HIDDEN = 0x2;
public const int FILE_ATTRIBUTE_NORMAL = 0x80;
public const int FILE_ATTRIBUTE_READONLY = 0x1;
public const int FILE_ATTRIBUTE_SYSTEM = 0x4;
public const int FILE_ATTRIBUTE_TEMPORARY = 0x100;
public const int FILE_BEGIN = ;
public const int FILE_CASE_PRESERVED_NAMES = 0x2;
public const int FILE_CASE_SENSITIVE_SEARCH = 0x1;
public const int FILE_CREATE_PIPE_INSTANCE = (0x4);
public const int FILE_CURRENT = ;
public const int FILE_DELETE_CHILD = (0x40);
public const int FILE_END = ;
public const int FILE_EXECUTE = (0x20);
public const int FILE_FILE_COMPRESSION = 0x10;
public const int FILE_FLAG_BACKUP_SEMANTICS = 0x2000000;
public const int FILE_FLAG_DELETE_ON_CLOSE = 0x4000000;
public const int FILE_FLAG_NO_BUFFERING = 0x20000000;
public const int FILE_FLAG_OVERLAPPED = 0x40000000;
public const int FILE_FLAG_POSIX_SEMANTICS = 0x1000000;
public const int FILE_FLAG_RANDOM_ACCESS = 0x10000000;
public const int FILE_FLAG_SEQUENTIAL_SCAN = 0x8000000;
public const int FILE_FLAG_WRITE_THROUGH = unchecked((int)0x80000000);
public const int FILE_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE | FILE_READ_ATTRIBUTES | FILE_EXECUTE | SYNCHRONIZE);
public const int FILE_GENERIC_READ = (STANDARD_RIGHTS_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES | FILE_READ_EA | SYNCHRONIZE);
public const int FILE_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | FILE_APPEND_DATA | SYNCHRONIZE);
public const int FILE_LIST_DIRECTORY = (0x1);
public const int FILE_MAP_ALL_ACCESS = SECTION_ALL_ACCESS;
public const int FILE_MAP_COPY = SECTION_QUERY;
public const int FILE_MAP_READ = SECTION_MAP_READ;
public const int FILE_MAP_WRITE = SECTION_MAP_WRITE;
public const int FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x4;
public const int FILE_NOTIFY_CHANGE_DIR_NAME = 0x2;
public const int FILE_NOTIFY_CHANGE_FILE_NAME = 0x1;
public const int FILE_NOTIFY_CHANGE_LAST_WRITE = 0x10;
public const int FILE_NOTIFY_CHANGE_SECURITY = 0x100;
public const int FILE_NOTIFY_CHANGE_SIZE = 0x8;
public const int FILE_PERSISTENT_ACLS = 0x8;
public const int FILE_READ_ATTRIBUTES = (0x80);
public const int FILE_READ_DATA = (0x1);
public const int FILE_READ_EA = (0x8);
public const int FILE_READ_PROPERTIES = FILE_READ_EA;
public const int FILE_SHARE_READ = 0x1;
public const int FILE_SHARE_WRITE = 0x2;
public const int FILE_TRAVERSE = (0x20);
public const int FILE_TYPE_CHAR = 0x2;
public const int FILE_TYPE_DISK = 0x1;
public const int FILE_TYPE_PIPE = 0x3;
public const int FILE_TYPE_REMOTE = 0x8000;
public const int FILE_TYPE_UNKNOWN = 0x0;
public const int FILE_UNICODE_ON_DISK = 0x4;
public const int FILE_VOLUME_IS_COMPRESSED = 0x8000;
public const int FILE_WRITE_ATTRIBUTES = (0x100);
public const int FILE_WRITE_DATA = (0x2);
public const int FILE_WRITE_EA = (0x10);
public const int FILE_WRITE_PROPERTIES = FILE_WRITE_EA;
public const int FOCUS_EVENT = 0x10;
public const int FOREGROUND_BLUE = 0x1;
public const int FOREGROUND_GREEN = 0x2;
public const int FOREGROUND_INTENSITY = 0x8;
public const int FOREGROUND_RED = 0x4;
public const int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x100;
public const int FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x2000;
public const int FORMAT_MESSAGE_FROM_HMODULE = 0x800;
public const int FORMAT_MESSAGE_FROM_STRING = 0x400;
public const int FORMAT_MESSAGE_FROM_SYSTEM = 0x1000;
public const int FORMAT_MESSAGE_IGNORE_INSERTS = 0x200;
public const int FORMAT_MESSAGE_MAX_WIDTH_MASK = 0xFF;
public const int FROM_LEFT_1ST_BUTTON_PRESSED = 0x1;
public const int FROM_LEFT_2ND_BUTTON_PRESSED = 0x4;
public const int FROM_LEFT_3RD_BUTTON_PRESSED = 0x8;
public const int FROM_LEFT_4TH_BUTTON_PRESSED = 0x10;
public const int FS_CASE_IS_PRESERVED = FILE_CASE_PRESERVED_NAMES;
public const int FS_CASE_SENSITIVE = FILE_CASE_SENSITIVE_SEARCH;
public const int FS_PERSISTENT_ACLS = FILE_PERSISTENT_ACLS;
public const int FS_UNICODE_STORED_ON_DISK = FILE_UNICODE_ON_DISK;
public const int GENERIC_ALL = 0x10000000;
public const int GENERIC_EXECUTE = 0x20000000;
public const int GENERIC_READ = unchecked((int)0x80000000);
public const int GENERIC_WRITE = 0x40000000;
public const int GET_TAPE_DRIVE_INFORMATION = ;
public const int GET_TAPE_MEDIA_INFORMATION = ;
public const int GHND = (GMEM_MOVEABLE | GMEM_ZEROINIT);
public const int GMEM_DDESHARE = 0x2000;
public const int GMEM_DISCARDABLE = 0x100;
public const int GMEM_DISCARDED = 0x4000;
public const int GMEM_FIXED = 0x0;
public const int GMEM_INVALID_HANDLE = 0x8000;
public const int GMEM_LOCKCOUNT = 0xFF;
public const int GMEM_LOWER = GMEM_NOT_BANKED;
public const int GMEM_MODIFY = 0x80;
public const int GMEM_MOVEABLE = 0x2;
public const int GMEM_NOCOMPACT = 0x10;
public const int GMEM_NODISCARD = 0x20;
public const int GMEM_NOTIFY = 0x4000;
public const int GMEM_NOT_BANKED = 0x1000;
public const int GMEM_SHARE = 0x2000;
public const int GMEM_VALID_FLAGS = 0x7F72;
public const int GMEM_ZEROINIT = 0x40;
public const int GPTR = (GMEM_FIXED | GMEM_ZEROINIT);
public const int HIGH_PRIORITY_CLASS = 0x80;
public const int HKEY_CLASSES_ROOT = unchecked((int)0x80000000);
public const int HKEY_CURRENT_CONFIG = unchecked((int)0x80000005);
public const int HKEY_CURRENT_USER = unchecked((int)0x80000001);
public const int HKEY_DYN_DATA = unchecked((int)0x80000006);
public const int HKEY_LOCAL_MACHINE = unchecked((int)0x80000002);
public const int HKEY_PERFORMANCE_DATA = unchecked((int)0x80000004);
public const int HKEY_USERS = unchecked((int)0x80000003);
public const int IDLE_PRIORITY_CLASS = 0x40;
public const int IE_BADID = (-);
public const int IE_BAUDRATE = (-);
public const int IE_BYTESIZE = (-);
public const int IE_DEFAULT = (-);
public const int IE_HARDWARE = (-);
public const int IE_MEMORY = (-);
public const int IE_NOPEN = (-);
public const int IE_OPEN = (-);
public const int IGNORE = ;
public const int INFINITE = 0xFFFF;
public const int INHERIT_ONLY_ACE = 0x8;
public const int IO_COMPLETION_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3);
public const int IO_COMPLETION_MODIFY_STATE = 0x2;
public const int KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL | KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY | KEY_CREATE_LINK) & (~ SYNCHRONIZE));
public const int KEY_CREATE_LINK = 0x20;
public const int KEY_CREATE_SUB_KEY = 0x4;
public const int KEY_ENUMERATE_SUB_KEYS = 0x8;
public const int KEY_EVENT = 0x1;
public const int KEY_EXECUTE = ((KEY_READ) & (~ SYNCHRONIZE));
public const int KEY_NOTIFY = 0x10;
public const int KEY_QUERY_VALUE = 0x1;
public const int KEY_READ = ((STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY) & (~ SYNCHRONIZE));
public const int KEY_SET_VALUE = 0x2;
public const int KEY_WRITE = ((STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & (~ SYNCHRONIZE));
public const int LANG_BULGARIAN = 0x2;
public const int LANG_CHINESE = 0x4;
public const int LANG_CROATIAN = 0x1A;
public const int LANG_CZECH = 0x5;
public const int LANG_DANISH = 0x6;
public const int LANG_DUTCH = 0x13;
public const int LANG_ENGLISH = 0x9;
public const int LANG_FINNISH = 0xB;
public const int LANG_FRENCH = 0xC;
public const int LANG_GERMAN = 0x7;
public const int LANG_GREEK = 0x8;
public const int LANG_HUNGARIAN = 0xE;
public const int LANG_ICELANDIC = 0xF;
public const int LANG_ITALIAN = 0x10;
public const int LANG_JAPANESE = 0x11;
public const int LANG_KOREAN = 0x12;
public const int LANG_NEUTRAL = 0x0;
public const int LANG_NORWEGIAN = 0x14;
public const int LANG_POLISH = 0x15;
public const int LANG_PORTUGUESE = 0x16;
public const int LANG_ROMANIAN = 0x18;
public const int LANG_RUSSIAN = 0x19;
public const int LANG_SLOVAK = 0x1B;
public const int LANG_SLOVENIAN = 0x24;
public const int LANG_SPANISH = 0xA;
public const int LANG_SWEDISH = 0x1D;
public const int LANG_TURKISH = 0x1F;
public const int LCMAP_BYTEREV = 0x800;
public const int LCMAP_LOWERCASE = 0x100;
public const int LCMAP_SORTKEY = 0x400;
public const int LCMAP_UPPERCASE = 0x200;
public const int LEFT_ALT_PRESSED = 0x2;
public const int LEFT_CTRL_PRESSED = 0x8;
public const int LHND = (LMEM_MOVEABLE + LMEM_ZEROINIT);
public const int LMEM_DISCARDABLE = 0xF00;
public const int LMEM_DISCARDED = 0x4000;
public const int LMEM_FIXED = 0x0;
public const int LMEM_INVALID_HANDLE = 0x8000;
public const int LMEM_LOCKCOUNT = 0xFF;
public const int LMEM_MODIFY = 0x80;
public const int LMEM_MOVEABLE = 0x2;
public const int LMEM_NOCOMPACT = 0x10;
public const int LMEM_NODISCARD = 0x20;
public const int LMEM_VALID_FLAGS = 0xF72;
public const int LMEM_ZEROINIT = 0x40;
public const int LNOTIFY_DISCARD = ;
public const int LNOTIFY_MOVE = ;
public const int LNOTIFY_OUTOFMEM = ;
public const int LOAD_DLL_DEBUG_EVENT = ;
public const int LOCALE_ICENTURY = 0x24;
public const int LOCALE_ICOUNTRY = 0x5;
public const int LOCALE_ICURRDIGITS = 0x19;
public const int LOCALE_ICURRENCY = 0x1B;
public const int LOCALE_IDATE = 0x21;
public const int LOCALE_IDAYLZERO = 0x26;
public const int LOCALE_IDEFAULTCODEPAGE = 0xB;
public const int LOCALE_IDEFAULTCOUNTRY = 0xA;
public const int LOCALE_IDEFAULTLANGUAGE = 0x9;
public const int LOCALE_IDIGITS = 0x11;
public const int LOCALE_IINTLCURRDIGITS = 0x1A;
public const int LOCALE_ILANGUAGE = 0x1;
public const int LOCALE_ILDATE = 0x22;
public const int LOCALE_ILZERO = 0x12;
public const int LOCALE_IMEASURE = 0xD;
public const int LOCALE_IMONLZERO = 0x27;
public const int LOCALE_INEGCURR = 0x1C;
public const int LOCALE_INEGSEPBYSPACE = 0x57;
public const int LOCALE_INEGSIGNPOSN = 0x53;
public const int LOCALE_INEGSYMPRECEDES = 0x56;
public const int LOCALE_IPOSSEPBYSPACE = 0x55;
public const int LOCALE_IPOSSIGNPOSN = 0x52;
public const int LOCALE_IPOSSYMPRECEDES = 0x54;
public const int LOCALE_ITIME = 0x23;
public const int LOCALE_ITLZERO = 0x25;
public const int LOCALE_NOUSEROVERRIDE = unchecked((int) 0x80000000);
public const int LOCALE_S1159 = 0x28;
public const int LOCALE_S2359 = 0x29;
public const int LOCALE_SABBREVCTRYNAME = 0x7;
public const int LOCALE_SABBREVDAYNAME1 = 0x31;
public const int LOCALE_SABBREVDAYNAME2 = 0x32;
public const int LOCALE_SABBREVDAYNAME3 = 0x33;
public const int LOCALE_SABBREVDAYNAME4 = 0x34;
public const int LOCALE_SABBREVDAYNAME5 = 0x35;
public const int LOCALE_SABBREVDAYNAME6 = 0x36;
public const int LOCALE_SABBREVDAYNAME7 = 0x37;
public const int LOCALE_SABBREVLANGNAME = 0x3;
public const int LOCALE_SABBREVMONTHNAME1 = 0x44;
public const int LOCALE_SABBREVMONTHNAME10 = 0x4D;
public const int LOCALE_SABBREVMONTHNAME11 = 0x4E;
public const int LOCALE_SABBREVMONTHNAME12 = 0x4F;
public const int LOCALE_SABBREVMONTHNAME13 = 0x100F;
public const int LOCALE_SABBREVMONTHNAME2 = 0x45;
public const int LOCALE_SABBREVMONTHNAME3 = 0x46;
public const int LOCALE_SABBREVMONTHNAME4 = 0x47;
public const int LOCALE_SABBREVMONTHNAME5 = 0x48;
public const int LOCALE_SABBREVMONTHNAME6 = 0x49;
public const int LOCALE_SABBREVMONTHNAME7 = 0x4A;
public const int LOCALE_SABBREVMONTHNAME8 = 0x4B;
public const int LOCALE_SABBREVMONTHNAME9 = 0x4C;
public const int LOCALE_SCOUNTRY = 0x6;
public const int LOCALE_SCURRENCY = 0x14;
public const int LOCALE_SDATE = 0x1D;
public const int LOCALE_SDAYNAME1 = 0x2A;
public const int LOCALE_SDAYNAME2 = 0x2B;
public const int LOCALE_SDAYNAME3 = 0x2C;
public const int LOCALE_SDAYNAME4 = 0x2D;
public const int LOCALE_SDAYNAME5 = 0x2E;
public const int LOCALE_SDAYNAME6 = 0x2F;
public const int LOCALE_SDAYNAME7 = 0x30;
public const int LOCALE_SDECIMAL = 0xE;
public const int LOCALE_SENGCOUNTRY = 0x1002;
public const int LOCALE_SENGLANGUAGE = 0x1001;
public const int LOCALE_SGROUPING = 0x10;
public const int LOCALE_SINTLSYMBOL = 0x15;
public const int LOCALE_SLANGUAGE = 0x2;
public const int LOCALE_SLIST = 0xC;
public const int LOCALE_SLONGDATE = 0x20;
public const int LOCALE_SMONDECIMALSEP = 0x16;
public const int LOCALE_SMONGROUPING = 0x18;
public const int LOCALE_SMONTHNAME1 = 0x38;
public const int LOCALE_SMONTHNAME10 = 0x41;
public const int LOCALE_SMONTHNAME11 = 0x42;
public const int LOCALE_SMONTHNAME12 = 0x43;
public const int LOCALE_SMONTHNAME2 = 0x39;
public const int LOCALE_SMONTHNAME3 = 0x3A;
public const int LOCALE_SMONTHNAME4 = 0x3B;
public const int LOCALE_SMONTHNAME5 = 0x3C;
public const int LOCALE_SMONTHNAME6 = 0x3D;
public const int LOCALE_SMONTHNAME7 = 0x3E;
public const int LOCALE_SMONTHNAME8 = 0x3F;
public const int LOCALE_SMONTHNAME9 = 0x40;
public const int LOCALE_SMONTHOUSANDSEP = 0x17;
public const int LOCALE_SNATIVECTRYNAME = 0x8;
public const int LOCALE_SNATIVEDIGITS = 0x13;
public const int LOCALE_SNATIVELANGNAME = 0x4;
public const int LOCALE_SNEGATIVESIGN = 0x51;
public const int LOCALE_SPOSITIVESIGN = 0x50;
public const int LOCALE_SSHORTDATE = 0x1F;
public const int LOCALE_STHOUSAND = 0xF;
public const int LOCALE_STIME = 0x1E;
public const int LOCALE_STIMEFORMAT = 0x1003;
public const int LOCKFILE_EXCLUSIVE_LOCK = 0x2;
public const int LOCKFILE_FAIL_IMMEDIATELY = 0x1;
public const int LOGON32_LOGON_BATCH = ;
public const int LOGON32_LOGON_INTERACTIVE = ;
public const int LOGON32_LOGON_SERVICE = ;
public const int LOGON32_PROVIDER_DEFAULT = ;
public const int LOGON32_PROVIDER_WINNT35 = ;
public const int LPTR = (LMEM_FIXED + LMEM_ZEROINIT);
public const int LPTx = 0x80;
public const int MAILSLOT_NO_MESSAGE = (-);
public const int MAILSLOT_WAIT_FOREVER = (-);
public const int MAP_COMPOSITE = 0x40;
public const int MAP_FOLDCZONE = 0x10;
public const int MAP_FOLDDIGITS = 0x80;
public const int MAP_PRECOMPOSED = 0x20;
public const int MARKPARITY = ;
public const int MAXByte = 0xFF;
public const int MAXCHAR = 0x7F;
public const int MAXDWORD = unchecked((int)0xFFFFFFFF);
public const int MAXIMUM_ALLOWED = 0x2000000;
public const int MAXLONG = 0x7FFFFFFF;
public const int MAXSHORT = 0x7FFF;
public const int MAXWORD = 0xFFFF;
public const int MAX_DEFAULTCHAR = ;
public const int MAX_LEADBYTES = ;
public const int MAX_PATH = ;
public const int MB_COMPOSITE = 0x2;
public const int MB_PRECOMPOSED = 0x1;
public const int MB_USEGLYPHCHARS = 0x4;
public const int MENU_EVENT = 0x8;
public const int MINCHAR = 0x80;
public const int MINLONG = unchecked((int)0x80000000);
public const int MINSHORT = 0x8000;
public const int MOUSE_MOVED = 0x1;
public const int MOVEFILE_COPY_ALLOWED = 0x2;
public const int MOVEFILE_DELAY_UNTIL_REBOOT = 0x4;
public const int MOVEFILE_REPLACE_EXISTING = 0x1;
public const int MS_CTS_ON = 0x10;
public const int MS_DSR_ON = 0x20;
public const int MS_RING_ON = 0x40;
public const int MS_RLSD_ON = 0x80;
public const int NMPWAIT_NOWAIT = 0x1;
public const int NMPWAIT_USE_DEFAULT_WAIT = 0x0;
public const int NMPWAIT_WAIT_FOREVER = 0xFFFF;
public const int NONZEROLHND = (LMEM_MOVEABLE);
public const int NONZEROLPTR = (LMEM_FIXED);
public const int NOPARITY = ;
public const int NORMAL_PRIORITY_CLASS = 0x20;
public const int NORM_IGNORECASE = 0x1;
public const int NORM_IGNORENONSPACE = 0x2;
public const int NORM_IGNORESYMBOLS = 0x4;
public const int NO_PROPAGATE_INHERIT_ACE = 0x4;
public const int NUMLOCK_ON = 0x20;
public const int OBJECT_INHERIT_ACE = 0x1;
public const int ODDPARITY = ;
public const int OFS_MAXPATHNAME = ;
public const int OF_CANCEL = 0x800;
public const int OF_CREATE = 0x1000;
public const int OF_DELETE = 0x200;
public const int OF_EXIST = 0x4000;
public const int OF_PARSE = 0x100;
public const int OF_PROMPT = 0x2000;
public const int OF_READ = 0x0;
public const int OF_READWRITE = 0x2;
public const int OF_REOPEN = 0x8000;
public const int OF_SHARE_COMPAT = 0x0;
public const int OF_SHARE_DENY_NONE = 0x40;
public const int OF_SHARE_DENY_READ = 0x30;
public const int OF_SHARE_DENY_WRITE = 0x20;
public const int OF_SHARE_EXCLUSIVE = 0x10;
public const int OF_VERIFY = 0x400;
public const int OF_WRITE = 0x1;
public const int ONE5STOPBITS = ;
public const int ONESTOPBIT = ;
public const int OPEN_ALWAYS = ;
public const int OPEN_EXISTING = ;
public const int OUTPUT_DEBUG_STRING_EVENT = ;
public const int PARITY_EVEN = 0x400;
public const int PARITY_MARK = 0x800;
public const int PARITY_NONE = 0x100;
public const int PARITY_ODD = 0x200;
public const int PARITY_SPACE = 0x1000;
public const int PCF_16BITMODE = 0x200;
public const int PCF_DTRDSR = 0x1;
public const int PCF_INTTIMEOUTS = 0x80;
public const int PCF_PARITY_CHECK = 0x8;
public const int PCF_RLSD = 0x4;
public const int PCF_RTSCTS = 0x2;
public const int PCF_SETXCHAR = 0x20;
public const int PCF_SPECIALCHARS = 0x100;
public const int PCF_TOTALTIMEOUTS = 0x40;
public const int PCF_XONXOFF = 0x10;
public const int PERF_100NSEC_MULTI_TIMER = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_DELTA_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_MULTI_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_100NSEC_MULTI_TIMER_INV = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_DELTA_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_MULTI_COUNTER | PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_100NSEC_TIMER = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_100NSEC_TIMER_INV = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_AVERAGE_BASE = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE | PERF_DISPLAY_NOSHOW | 0x2);
public const int PERF_AVERAGE_BULK = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_NOSHOW);
public const int PERF_AVERAGE_TIMER = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_SECONDS);
public const int PERF_COUNTER_BASE = 0x30000;
public const int PERF_COUNTER_BULK_COUNT = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PER_SEC);
public const int PERF_COUNTER_COUNTER = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PER_SEC);
public const int PERF_COUNTER_ELAPSED = 0x40000;
public const int PERF_COUNTER_FRACTION = 0x20000;
public const int PERF_COUNTER_HISTOGRAM = 0x60000;
public const int PERF_COUNTER_HISTOGRAM_TYPE = unchecked((int)0x80000000);
public const int PERF_COUNTER_MULTI_BASE = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_BASE | PERF_MULTI_COUNTER | PERF_DISPLAY_NOSHOW);
public const int PERF_COUNTER_MULTI_TIMER = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_DELTA_COUNTER | PERF_TIMER_TICK | PERF_MULTI_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_COUNTER_MULTI_TIMER_INV = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_DELTA_COUNTER | PERF_MULTI_COUNTER | PERF_TIMER_TICK | PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_COUNTER_NODATA = (PERF_SIZE_ZERO | PERF_DISPLAY_NOSHOW);
public const int PERF_COUNTER_QUEUELEN = 0x50000;
public const int PERF_COUNTER_QUEUELEN_TYPE = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_QUEUELEN | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX);
public const int PERF_COUNTER_RATE = 0x10000;
public const int PERF_COUNTER_RAWCOUNT = (PERF_SIZE_DWORD | PERF_TYPE_NUMBER | PERF_NUMBER_DECIMAL | PERF_DISPLAY_NO_SUFFIX);
public const int PERF_COUNTER_TEXT = (PERF_SIZE_VARIABLE_LEN | PERF_TYPE_TEXT | PERF_TEXT_UNICODE | PERF_DISPLAY_NO_SUFFIX);
public const int PERF_COUNTER_TIMER = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_COUNTER_TIMER_INV = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT);
public const int PERF_COUNTER_VALUE = 0x0;
public const int PERF_DATA_REVISION = ;
public const int PERF_DATA_VERSION = ;
public const int PERF_DELTA_BASE = 0x800000;
public const int PERF_DELTA_COUNTER = 0x400000;
public const int PERF_DETAIL_ADVANCED = ;
public const int PERF_DETAIL_EXPERT = ;
public const int PERF_DETAIL_NOVICE = ;
public const int PERF_DETAIL_WIZARD = ;
public const int PERF_DISPLAY_NOSHOW = 0x40000000;
public const int PERF_DISPLAY_NO_SUFFIX = 0x0;
public const int PERF_DISPLAY_PERCENT = 0x20000000;
public const int PERF_DISPLAY_PER_SEC = 0x10000000;
public const int PERF_DISPLAY_SECONDS = 0x30000000;
public const int PERF_ELAPSED_TIME = (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_ELAPSED | PERF_OBJECT_TIMER | PERF_DISPLAY_SECONDS);
public const int PERF_INVERSE_COUNTER = 0x1000000;
public const int PERF_MULTI_COUNTER = 0x2000000;
public const int PERF_NO_INSTANCES = -;
public const int PERF_NO_UNIQUE_ID = -;
public const int PERF_NUMBER_DECIMAL = 0x10000;
public const int PERF_NUMBER_DEC_1000 = 0x20000;
public const int PERF_NUMBER_HEX = 0x0;
public const int PERF_OBJECT_TIMER = 0x200000;
public const int PERF_RAW_BASE = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE | PERF_DISPLAY_NOSHOW | 0x3);
public const int PERF_RAW_FRACTION = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_PERCENT);
public const int PERF_SAMPLE_BASE = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE | PERF_DISPLAY_NOSHOW | 0x1);
public const int PERF_SAMPLE_COUNTER = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX);
public const int PERF_SAMPLE_FRACTION = (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DELTA_COUNTER | PERF_DELTA_BASE | PERF_DISPLAY_PERCENT);
public const int PERF_SIZE_DWORD = 0x0;
public const int PERF_SIZE_LARGE = 0x100;
public const int PERF_SIZE_VARIABLE_LEN = 0x300;
public const int PERF_SIZE_ZERO = 0x200;
public const int PERF_TEXT_ASCII = 0x10000;
public const int PERF_TEXT_UNICODE = 0x0;
public const int PERF_TIMER_100NS = 0x100000;
public const int PERF_TIMER_TICK = 0x0;
public const int PERF_TYPE_COUNTER = 0x400;
public const int PERF_TYPE_NUMBER = 0x0;
public const int PERF_TYPE_TEXT = 0x800;
public const int PERF_TYPE_ZERO = 0xC00;
public const int PIPE_ACCESS_DUPLEX = 0x3;
public const int PIPE_ACCESS_INBOUND = 0x1;
public const int PIPE_ACCESS_OUTBOUND = 0x2;
public const int PIPE_CLIENT_END = 0x0;
public const int PIPE_NOWAIT = 0x1;
public const int PIPE_READMODE_BYTE = 0x0;
public const int PIPE_READMODE_MESSAGE = 0x2;
public const int PIPE_SERVER_END = 0x1;
public const int PIPE_TYPE_BYTE = 0x0;
public const int PIPE_TYPE_MESSAGE = 0x4;
public const int PIPE_UNLIMITED_INSTANCES = ;
public const int PIPE_WAIT = 0x0;
public const int PRIVILEGE_SET_ALL_NECESSARY = ();
public const int PROCESSOR_ALPHA_21064 = ;
public const int PROCESSOR_ARCHITECTURE_ALPHA = ;
public const int PROCESSOR_ARCHITECTURE_INTEL = ;
public const int PROCESSOR_ARCHITECTURE_MIPS = ;
public const int PROCESSOR_ARCHITECTURE_PPC = ;
public const int PROCESSOR_ARCHITECTURE_UNKNOWN = 0xFFFF;
public const int PROCESSOR_INTEL_386 = ;
public const int PROCESSOR_INTEL_486 = ;
public const int PROCESSOR_INTEL_PENTIUM = ;
public const int PROCESSOR_MIPS_R4000 = ;
public const int PROCESS_HEAP_ENTRY_BUSY = 0x4;
public const int PROCESS_HEAP_ENTRY_DDESHARE = 0x20;
public const int PROCESS_HEAP_ENTRY_MOVEABLE = 0x10;
public const int PROCESS_HEAP_REGION = 0x1;
public const int PROCESS_HEAP_UNCOMMITTED_RANGE = 0x2;
public const int PROFILE_KERNEL = 0x20000000;
public const int PROFILE_SERVER = 0x40000000;
public const int PROFILE_USER = 0x10000000;
public const int PST_FAX = 0x21;
public const int PST_LAT = 0x101;
public const int PST_NETWORK_BRIDGE = 0x100;
public const int PST_PARALLELPORT = 0x2;
public const int PST_RS232 = 0x1;
public const int PST_RS422 = 0x3;
public const int PST_RS423 = 0x4;
public const int PST_RS449 = 0x5;
public const int PST_SCANNER = 0x22;
public const int PST_TCPIP_TELNET = 0x102;
public const int PST_UNSPECIFIED = 0x0;
public const int PST_X25 = 0x103;
public const int PURGE_RXABORT = 0x2;
public const int PURGE_RXCLEAR = 0x8;
public const int PURGE_TXABORT = 0x1;
public const int PURGE_TXCLEAR = 0x4;
public const int READ_CONTROL = 0x20000;
public const int REALTIME_PRIORITY_CLASS = 0x100;
public const int REG_BINARY = ;
public const int REG_CREATED_NEW_KEY = 0x1;
public const int REG_DWORD = ;
public const int REG_DWORD_BIG_ENDIAN = ;
public const int REG_DWORD_LITTLE_ENDIAN = ;
public const int REG_EXPAND_SZ = ;
public const int REG_FULL_RESOURCE_DESCRIPTOR = ;
public const int REG_LEGAL_CHANGE_FILTER = (REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_ATTRIBUTES | REG_NOTIFY_CHANGE_LAST_SET | REG_NOTIFY_CHANGE_SECURITY);
public const int REG_LEGAL_OPTION = (REG_OPTION_RESERVED | REG_OPTION_NON_VOLATILE | REG_OPTION_VOLATILE | REG_OPTION_CREATE_LINK | REG_OPTION_BACKUP_RESTORE);
public const int REG_LINK = ;
public const int REG_MULTI_SZ = ;
public const int REG_NONE = ;
public const int REG_NOTIFY_CHANGE_ATTRIBUTES = 0x2;
public const int REG_NOTIFY_CHANGE_LAST_SET = 0x4;
public const int REG_NOTIFY_CHANGE_NAME = 0x1;
public const int REG_NOTIFY_CHANGE_SECURITY = 0x8;
public const int REG_OPENED_EXISTING_KEY = 0x2;
public const int REG_OPTION_BACKUP_RESTORE = ;
public const int REG_OPTION_CREATE_LINK = ;
public const int REG_OPTION_NON_VOLATILE = ;
public const int REG_OPTION_RESERVED = ;
public const int REG_OPTION_VOLATILE = ;
public const int REG_REFRESH_HIVE = 0x2;
public const int REG_RESOURCE_LIST = ;
public const int REG_RESOURCE_REQUIREMENTS_LIST = ;
public const int REG_SZ = ;
public const int REG_WHOLE_HIVE_VOLATILE = 0x1;
public const int RESETDEV = ;
public const int RIGHTMOST_BUTTON_PRESSED = 0x2;
public const int RIGHT_ALT_PRESSED = 0x1;
public const int RIGHT_CTRL_PRESSED = 0x4;
public const int RIP_EVENT = ;
public const int RTS_CONTROL_DISABLE = 0x0;
public const int RTS_CONTROL_ENABLE = 0x1;
public const int RTS_CONTROL_HANDSHAKE = 0x2;
public const int RTS_CONTROL_TOGGLE = 0x3;
public const int RT_ACCELERATOR = ;
public const int RT_BITMAP = ;
public const int RT_CURSOR = ;
public const int RT_DIALOG = ;
public const int RT_FONT = ;
public const int RT_FONTDIR = ;
public const int RT_ICON = ;
public const int RT_MENU = ;
public const int RT_RCDATA = ;
public const int RT_STRING = ;
public const int SCROLLLOCK_ON = 0x40;
public const int SCS_32BIT_BINARY = ;
public const int SCS_DOS_BINARY = ;
public const int SCS_OS216_BINARY = ;
public const int SCS_PIF_BINARY = ;
public const int SCS_POSIX_BINARY = ;
public const int SCS_WOW_BINARY = ;
public const int SC_MANAGER_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_ENUMERATE_SERVICE | SC_MANAGER_LOCK | SC_MANAGER_QUERY_LOCK_STATUS | SC_MANAGER_MODIFY_BOOT_CONFIG);
public const int SC_MANAGER_CONNECT = 0x1;
public const int SC_MANAGER_CREATE_SERVICE = 0x2;
public const int SC_MANAGER_ENUMERATE_SERVICE = 0x4;
public const int SC_MANAGER_LOCK = 0x8;
public const int SC_MANAGER_MODIFY_BOOT_CONFIG = 0x20;
public const int SC_MANAGER_QUERY_LOCK_STATUS = 0x10;
public const int SECTION_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SECTION_QUERY | SECTION_MAP_WRITE | SECTION_MAP_READ | SECTION_MAP_EXECUTE | SECTION_EXTEND_SIZE;
public const int SECTION_EXTEND_SIZE = 0x10;
public const int SECTION_MAP_EXECUTE = 0x8;
public const int SECTION_MAP_READ = 0x4;
public const int SECTION_MAP_WRITE = 0x2;
public const int SECTION_QUERY = 0x1;
public const int SECURITY_ANONYMOUS_LOGON_RID = 0x7;
public const int SECURITY_BATCH_RID = 0x3;
public const int SECURITY_BUILTIN_DOMAIN_RID = 0x20;
public const int SECURITY_CONTEXT_TRACKING = 0x40000;
public const int SECURITY_CREATOR_GROUP_RID = 0x1;
public const int SECURITY_CREATOR_OWNER_RID = 0x0;
public const int SECURITY_DESCRIPTOR_MIN_LENGTH = ();
public const int SECURITY_DESCRIPTOR_REVISION = ();
public const int SECURITY_DESCRIPTOR_REVISION1 = ();
public const int SECURITY_DIALUP_RID = 0x1;
public const int SECURITY_EFFECTIVE_ONLY = 0x80000;
public const int SECURITY_INTERACTIVE_RID = 0x4;
public const int SECURITY_LOCAL_RID = 0x0;
public const int SECURITY_LOCAL_SYSTEM_RID = 0x12;
public const int SECURITY_LOGON_IDS_RID = 0x5;
public const int SECURITY_NETWORK_RID = 0x2;
public const int SECURITY_NT_NON_UNIQUE = 0x15;
public const int SECURITY_NULL_RID = 0x0;
public const int SECURITY_SERVICE_RID = 0x6;
public const int SECURITY_SQOS_PRESENT = 0x100000;
public const int SECURITY_VALID_SQOS_FLAGS = 0x1F0000;
public const int SECURITY_WORLD_RID = 0x0;
public const int SEM_FAILCRITICALERRORS = 0x1;
public const int SEM_NOGPFAULTERRORBOX = 0x2;
public const int SEM_NOOPENFILEERRORBOX = 0x8000;
public const int SERVICE_ACCEPT_PAUSE_CONTINUE = 0x2;
public const int SERVICE_ACCEPT_SHUTDOWN = 0x4;
public const int SERVICE_ACCEPT_STOP = 0x1;
public const int SERVICE_ACTIVE = 0x1;
public const int SERVICE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG | SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_START | SERVICE_STOP | SERVICE_PAUSE_CONTINUE | SERVICE_INTERROGATE | SERVICE_USER_DEFINED_CONTROL);
public const int SERVICE_CHANGE_CONFIG = 0x2;
public const int SERVICE_CONTINUE_PENDING = 0x5;
public const int SERVICE_CONTROL_CONTINUE = 0x3;
public const int SERVICE_CONTROL_INTERROGATE = 0x4;
public const int SERVICE_CONTROL_PAUSE = 0x2;
public const int SERVICE_CONTROL_SHUTDOWN = 0x5;
public const int SERVICE_CONTROL_STOP = 0x1;
public const int SERVICE_ENUMERATE_DEPENDENTS = 0x8;
public const int SERVICE_INACTIVE = 0x2;
public const int SERVICE_INTERROGATE = 0x80;
public const int SERVICE_NO_CHANGE = 0xFFFF;
public const int SERVICE_PAUSED = 0x7;
public const int SERVICE_PAUSE_CONTINUE = 0x40;
public const int SERVICE_PAUSE_PENDING = 0x6;
public const int SERVICE_QUERY_CONFIG = 0x1;
public const int SERVICE_QUERY_STATUS = 0x4;
public const int SERVICE_RUNNING = 0x4;
public const int SERVICE_START = 0x10;
public const int SERVICE_START_PENDING = 0x2;
public const int SERVICE_STATE_ALL = (SERVICE_ACTIVE | SERVICE_INACTIVE);
public const int SERVICE_STOP = 0x20;
public const int SERVICE_STOPPED = 0x1;
public const int SERVICE_STOP_PENDING = 0x3;
public const int SERVICE_USER_DEFINED_CONTROL = 0x100;
public const int SETBREAK = ;
public const int SETDTR = ;
public const int SETRTS = ;
public const int SETXOFF = ;
public const int SETXON = ;
public const int SET_TAPE_DRIVE_INFORMATION = ;
public const int SET_TAPE_MEDIA_INFORMATION = ;
public const int SE_DACL_DEFAULTED = 0x8;
public const int SE_DACL_PRESENT = 0x4;
public const int SE_GROUP_DEFAULTED = 0x2;
public const int SE_GROUP_ENABLED = 0x4;
public const int SE_GROUP_ENABLED_BY_DEFAULT = 0x2;
public const int SE_GROUP_LOGON_ID = unchecked((int)0xC0000000);
public const int SE_GROUP_MANDATORY = 0x1;
public const int SE_GROUP_OWNER = 0x8;
public const int SE_OWNER_DEFAULTED = 0x1;
public const int SE_PRIVILEGE_ENABLED = 0x2;
public const int SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x1;
public const int SE_PRIVILEGE_USED_FOR_ACCESS = unchecked((int)0x80000000);
public const int SE_SACL_DEFAULTED = 0x20;
public const int SE_SACL_PRESENT = 0x10;
public const int SE_SELF_RELATIVE = 0x8000;
public const int SHIFT_PRESSED = 0x10;
public const int SHUTDOWN_NORETRY = 0x1;
public const int SID_MAX_SUB_AUTHORITIES = ();
public const int SID_RECOMMENDED_SUB_AUTHORITIES = ();
public const int SID_REVISION = ();
public const int SLE_ERROR = 0x1;
public const int SLE_MINORERROR = 0x2;
public const int SLE_WARNING = 0x3;
public const int SORT_CHINESE_BIG5 = 0x0;
public const int SORT_CHINESE_UNICODE = 0x1;
public const int SORT_DEFAULT = 0x0;
public const int SORT_JAPANESE_UNICODE = 0x1;
public const int SORT_JAPANESE_XJIS = 0x0;
public const int SORT_KOREAN_KSC = 0x0;
public const int SORT_KOREAN_UNICODE = 0x1;
public const int SORT_STRINGSORT = 0x1000;
public const int SPACEPARITY = ;
public const int SPECIFIC_RIGHTS_ALL = 0xFFFF;
public const int SP_BAUD = 0x2;
public const int SP_DATABITS = 0x4;
public const int SP_HANDSHAKING = 0x10;
public const int SP_PARITY = 0x1;
public const int SP_PARITY_CHECK = 0x20;
public const int SP_RLSD = 0x40;
public const int SP_SERIALCOMM = 0x1;
public const int SP_STOPBITS = 0x8;
public const int STANDARD_RIGHTS_ALL = 0x1F0000;
public const int STANDARD_RIGHTS_EXECUTE = (READ_CONTROL);
public const int STANDARD_RIGHTS_READ = (READ_CONTROL);
public const int STANDARD_RIGHTS_REQUIRED = 0xF0000;
public const int STANDARD_RIGHTS_WRITE = (READ_CONTROL);
public const int STARTF_FORCEOFFFEEDBACK = 0x80;
public const int STARTF_FORCEONFEEDBACK = 0x40;
public const int STARTF_RUNFULLSCREEN = 0x20;
public const int STARTF_USECOUNTCHARS = 0x8;
public const int STARTF_USEFILLATTRIBUTE = 0x10;
public const int STARTF_USEPOSITION = 0x4;
public const int STARTF_USESHOWWINDOW = 0x1;
public const int STARTF_USESIZE = 0x2;
public const int STARTF_USESTDHANDLES = 0x100;
public const int STD_ERROR_HANDLE = -;
public const int STD_INPUT_HANDLE = -;
public const int STD_OUTPUT_HANDLE = -;
public const int STOPBITS_10 = 0x1;
public const int STOPBITS_15 = 0x2;
public const int STOPBITS_20 = 0x4;
public const int STREAM_CONTAINS_SECURITY = 0x2;
public const int STREAM_MODIFIED_WHEN_READ = 0x1;
public const int SUBLANG_CHINESE_HONGKONG = 0x3;
public const int SUBLANG_CHINESE_SIMPLIFIED = 0x2;
public const int SUBLANG_CHINESE_SINGAPORE = 0x4;
public const int SUBLANG_CHINESE_TRADITIONAL = 0x1;
public const int SUBLANG_DEFAULT = 0x1;
public const int SUBLANG_DUTCH = 0x1;
public const int SUBLANG_DUTCH_BELGIAN = 0x2;
public const int SUBLANG_ENGLISH_AUS = 0x3;
public const int SUBLANG_ENGLISH_CAN = 0x4;
public const int SUBLANG_ENGLISH_EIRE = 0x6;
public const int SUBLANG_ENGLISH_NZ = 0x5;
public const int SUBLANG_ENGLISH_UK = 0x2;
public const int SUBLANG_ENGLISH_US = 0x1;
public const int SUBLANG_FRENCH = 0x1;
public const int SUBLANG_FRENCH_BELGIAN = 0x2;
public const int SUBLANG_FRENCH_CANADIAN = 0x3;
public const int SUBLANG_FRENCH_SWISS = 0x4;
public const int SUBLANG_GERMAN = 0x1;
public const int SUBLANG_GERMAN_AUSTRIAN = 0x3;
public const int SUBLANG_GERMAN_SWISS = 0x2;
public const int SUBLANG_ITALIAN = 0x1;
public const int SUBLANG_ITALIAN_SWISS = 0x2;
public const int SUBLANG_NEUTRAL = 0x0;
public const int SUBLANG_NORWEGIAN_BOKMAL = 0x1;
public const int SUBLANG_NORWEGIAN_NYNORSK = 0x2;
public const int SUBLANG_PORTUGUESE = 0x2;
public const int SUBLANG_PORTUGUESE_BRAZILIAN = 0x1;
public const int SUBLANG_SPANISH = 0x1;
public const int SUBLANG_SPANISH_MEXICAN = 0x2;
public const int SUBLANG_SPANISH_MODERN = 0x3;
public const int SUBLANG_SYS_DEFAULT = 0x2;
public const int SUCCESSFUL_ACCESS_ACE_FLAG = 0x40;
public const int SYNCHRONIZE = 0x100000;
public const int SYSTEM_ALARM_ACE_TYPE = 0x3;
public const int SYSTEM_AUDIT_ACE_TYPE = 0x2;
public const int S_ALLTHRESHOLD = ;
public const int S_LEGATO = ;
public const int S_NORMAL = ;
public const int S_PERIOD1024 = ;
public const int S_PERIOD2048 = ;
public const int S_PERIOD512 = ;
public const int S_PERIODVOICE = ;
public const int S_QUEUEEMPTY = ;
public const int S_SERBDNT = (-);
public const int S_SERDCC = (-);
public const int S_SERDDR = (-);
public const int S_SERDFQ = (-);
public const int S_SERDLN = (-);
public const int S_SERDMD = (-);
public const int S_SERDPT = (-);
public const int S_SERDSH = (-);
public const int S_SERDSR = (-);
public const int S_SERDST = (-);
public const int S_SERDTP = (-);
public const int S_SERDVL = (-);
public const int S_SERDVNA = (-);
public const int S_SERMACT = (-);
public const int S_SEROFM = (-);
public const int S_SERQFUL = (-);
public const int S_STACCATO = ;
public const int S_THRESHOLD = ;
public const int S_WHITE1024 = ;
public const int S_WHITE2048 = ;
public const int S_WHITE512 = ;
public const int S_WHITEVOICE = ;
public const int SecurityAnonymous = ;
public const int SecurityIdentification = ;
public const int SidTypeAlias = ;
public const int SidTypeDeletedAccount = ;
public const int SidTypeDomain = ;
public const int SidTypeGroup = ;
public const int SidTypeInvalid = ;
public const int SidTypeUnknown = ;
public const int SidTypeUser = ;
public const int SidTypeWellKnownGroup = ;
public const int TC_GP_TRAP = ;
public const int TC_HARDERR = ;
public const int TC_NORMAL = ;
public const int TC_SIGNAL = ;
public const int TF_FORCEDRIVE = 0x80;
public const int THREAD_BASE_PRIORITY_IDLE = -;
public const int THREAD_BASE_PRIORITY_LOWRT = ;
public const int THREAD_BASE_PRIORITY_MAX = ;
public const int THREAD_BASE_PRIORITY_MIN = -;
public const int THREAD_PRIORITY_ABOVE_NORMAL = (THREAD_PRIORITY_HIGHEST - );
public const int THREAD_PRIORITY_BELOW_NORMAL = (THREAD_PRIORITY_LOWEST + );
public const int THREAD_PRIORITY_ERROR_RETURN = (MAXLONG);
public const int THREAD_PRIORITY_HIGHEST = THREAD_BASE_PRIORITY_MAX;
public const int THREAD_PRIORITY_IDLE = THREAD_BASE_PRIORITY_IDLE;
public const int THREAD_PRIORITY_LOWEST = THREAD_BASE_PRIORITY_MIN;
public const int THREAD_PRIORITY_NORMAL = ;
public const int THREAD_PRIORITY_TIME_CRITICAL = THREAD_BASE_PRIORITY_LOWRT;
public const int TIME_FORCE24HOURFORMAT = 0x8;
public const int TIME_NOMINUTESORSECONDS = 0x1;
public const int TIME_NOSECONDS = 0x2;
public const int TIME_NOTIMEMARKER = 0x4;
public const int TLS_OUT_OF_INDEXES = 0xFFFF;
public const int TRUNCATE_EXISTING = ;
public const int TWOSTOPBITS = ;
public const int TokenDefaultDacl = ;
public const int TokenGroups = ;
public const int TokenImpersonationLevel = ;
public const int TokenOwner = ;
public const int TokenPrimaryGroup = ;
public const int TokenPrivileges = ;
public const int TokenSource = ;
public const int TokenStatistics = ;
public const int TokenType = ;
public const int TokenUser = ;
public const int UNLOAD_DLL_DEBUG_EVENT = ;
public const int VALID_INHERIT_FLAGS = 0xF;
public const int VER_PLATFORM_WIN32_NT = ;
public const int VER_PLATFORM_WIN32_WINDOWS = ;
public const int VER_PLATFORM_WIN32s = ;
public const int WC_COMPOSITECHECK = 0x200;
public const int WC_DEFAULTCHAR = 0x40;
public const int WC_DEFAULTCHECK = 0x100;
public const int WC_DISCARDNS = 0x10;
public const int WC_SEPCHARS = 0x20;
public const int WINDOW_BUFFER_SIZE_EVENT = 0x4;
public const int WRITE_DAC = 0x40000;
public const int WRITE_OWNER = 0x80000;
public const int mouse_eventC = 0x2;
public const string SC_GROUP_IDENTIFIER = "+";
public const string SERVICES_ACTIVE_DATABASE = "ServicesActive";
public const string SERVICES_FAILED_DATABASE = "ServicesFailed";
public const string SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege";
public const string SE_AUDIT_NAME = "SeAuditPrivilege";
public const string SE_BACKUP_NAME = "SeBackupPrivilege";
public const string SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege";
public const string SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege";
public const string SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege";
public const string SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege";
public const string SE_DEBUG_NAME = "SeDebugPrivilege";
public const string SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege";
public const string SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege";
public const string SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege";
public const string SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege";
public const string SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege";
public const string SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege";
public const string SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege";
public const string SE_RESTORE_NAME = "SeRestorePrivilege";
public const string SE_SECURITY_NAME = "SeSecurityPrivilege";
public const string SE_SHUTDOWN_NAME = "SeShutdownPrivilege";
public const string SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege";
public const string SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege";
public const string SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege";
public const string SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege";
public const string SE_TCB_NAME = "SeTcbPrivilege";
public const string SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege";
}
}

User.cs

 using System;
using System.Runtime.InteropServices;
using System.Text; using HANDLE = System.IntPtr;
using HWND = System.IntPtr;
using HDC = System.IntPtr; namespace Win32
{
public struct CBTACTIVATESTRUCT
{
public int fMouse;
public HWND hwndActive;
}
public struct EVENTMSG
{
public int message;
public int paramL;
public int paramH;
public int time;
public HWND hwnd;
}
public struct CWPSTRUCT
{
public int lParam;
public int wParam;
public int message;
public HWND hwnd;
}
public struct DEBUGHOOKINFO
{
public HANDLE hModuleHook;
public int Reserved;
public int lParam;
public int wParam;
public int code;
}
public struct MOUSEHOOKSTRUCT
{
public POINT pt;
public HWND hwnd;
public int wHitTestCode;
public int dwExtraInfo;
}
public struct MINMAXINFO
{
public POINT ptReserved;
public POINT ptMaxSize;
public POINT ptMaxPosition;
public POINT ptMinTrackSize;
public POINT ptMaxTrackSize;
}
public struct COPYDATASTRUCT
{
public int dwData;
public int cbData;
public int lpData;
}
public struct WINDOWPOS
{
public HWND hwnd;
public HWND hwndInsertAfter;
public int x;
public int y;
public int cx;
public int cy;
public int flags;
}
public struct ACCEL
{
public byte fVirt;
public short key;
public short cmd;
}
public struct PAINTSTRUCT
{
public HDC hdc;
public int fErase;
public RECT rcPaint;
public int fRestore;
public int fIncUpdate;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte rgbReserved;
}
public struct CREATESTRUCT
{
public int lpCreateParams;
public HANDLE hInstance;
public HANDLE hMenu;
public HWND hwndParent;
public int cy;
public int cx;
public int y;
public int x;
public int style;
public string lpszName;
public string lpszClass;
public int ExStyle;
}
public struct CBT_CREATEWND
{
public CREATESTRUCT lpcs;
public HWND hwndInsertAfter;
}
public struct WINDOWPLACEMENT
{
public int Length;
public int flags;
public int showCmd;
public POINT ptMinPosition;
public POINT ptMaxPosition;
public RECT rcNormalPosition;
}
public struct MEASUREITEMSTRUCT
{
public int CtlType;
public int CtlID;
public int itemID;
public int itemWidth;
public int itemHeight;
public int itemData;
}
public struct DRAWITEMSTRUCT
{
public int CtlType;
public int CtlID;
public int itemID;
public int itemAction;
public int itemState;
public HWND hwndItem;
public HDC hdc;
public RECT rcItem;
public int itemData;
}
public struct DELETEITEMSTRUCT
{
public int CtlType;
public int CtlID;
public int itemID;
public HWND hwndItem;
public int itemData;
}
public struct COMPAREITEMSTRUCT
{
public int CtlType;
public int CtlID;
public HWND hwndItem;
public int itemID1;
public int itemData1;
public int itemID2;
public int itemData2;
}
public struct MSG
{
public HWND hwnd;
public int message;
public int wParam;
public int lParam;
public int time;
public POINT pt;
}
public struct WNDCLASS
{
public int style;
public int lpfnwndproc;
public int cbClsextra;
public int cbWndExtra2;
public HANDLE hInstance;
public HANDLE hIcon;
public HANDLE hCursor;
public HANDLE hbrBackground;
public string lpszMenuName;
public string lpszClassName;
}
public struct DLGTEMPLATE
{
public int style;
public int dwExtendedStyle;
public short cdit;
public short x;
public short y;
public short cx;
public short cy;
}
public struct DLGITEMTEMPLATE
{
public int style;
public int dwExtendedStyle;
public short x;
public short y;
public short cx;
public short cy;
public short id;
}
public struct MENUITEMTEMPLATEHEADER
{
public short versionNumber;
public short offset;
}
public struct MENUITEMTEMPLATE
{
public short mtOption;
public short mtID;
public byte mtString;
}
public struct ICONINFO
{
public int fIcon;
public int xHotspot;
public int yHotspot;
public HANDLE hbmMask;
public HANDLE hbmColor;
}
public struct MDICREATESTRUCT
{
public string szClass;
public string szTitle;
public HWND hOwner;
public int x;
public int y;
public int cx;
public int cy;
public int style;
public int lParam;
}
public struct CLIENTCREATESTRUCT
{
public HANDLE hWindowMenu;
public int idFirstChild;
}
public struct MULTIKEYHELP
{
public int mkSize;
public byte mkKeylist;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string szKeyphrase;
}
public struct HELPWININFO
{
public int wStructSize;
public int x;
public int y;
public int dx;
public int dy;
public int wMax;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string rgchMember;
}
public struct DDEACK
{
public short bAppReturnCode;
public short Reserved;
public short fbusy;
public short fack;
}
public struct DDEADVISE
{
public short Reserved;
public short fDeferUpd;
public short fAckReq;
public short cfFormat;
}
public struct DDEDATA
{
public short unused;
public short fresponse;
public short fRelease;
public short Reserved;
public short fAckReq;
public short cfFormat;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte Value;
}
public struct DDEPOKE
{
public short unused;
public short fRelease;
public short fReserved;
public short cfFormat;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte Value;
}
public struct DDELN
{
public short unused;
public short fRelease;
public short fDeferUpd;
public short fAckReq;
public short cfFormat;
}
public struct DDEUP
{
public short unused;
public short fAck;
public short fRelease;
public short fReserved;
public short fAckReq;
public short cfFormat;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public byte rgb;
}
public struct HSZPAIR
{
public HANDLE hszSvc;
public HANDLE hszTopic;
}
public struct SECURITY_QUALITY_OF_SERVICE
{
public int Length;
public short Impersonationlevel;
public short ContextTrackingMode;
public int EffectiveOnly;
}
public struct CONVCONTEXT
{
public int cb;
public int wFlags;
public int wCountryID;
public int iCodePage;
public int dwLangID;
public int dwSecurity;
public SECURITY_QUALITY_OF_SERVICE qos;
}
public struct CONVINFO
{
public int cb;
public HANDLE hUser;
public HANDLE hConvPartner;
public HANDLE hszSvcPartner;
public HANDLE hszServiceReq;
public HANDLE hszTopic;
public HANDLE hszItem;
public int wFmt;
public int wType;
public int wStatus;
public int wConvst;
public int wLastError;
public HANDLE hConvList;
public CONVCONTEXT ConvCtxt;
public HWND hwnd;
public HWND hwndPartner;
}
public struct DDEML_MSG_HOOK_DATA
{
public int uiLo;
public int uiHi;
public int cbData;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public int Data;
}
public struct MONMSGSTRUCT
{
public int cb;
public HWND hwndTo;
public int dwTime;
public HANDLE htask;
public int wMsg;
public int wParam;
public int lParam;
public DDEML_MSG_HOOK_DATA dmhd;
}
public struct MONCBSTRUCT
{
public int cb;
public int dwTime;
public HANDLE htask;
public int dwRet;
public int wType;
public int wFmt;
public HANDLE hConv;
public HANDLE hsz1;
public HANDLE hsz2;
public HANDLE hData;
public int dwData1;
public int dwData2;
public CONVCONTEXT cc;
public int cbData;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=)] public int Data;
}
public struct MONHSZSTRUCT
{
public int cb;
public int fsAction;
public int dwTime;
public HANDLE hsz;
public HANDLE htask;
public byte str;
}
public struct MONERRSTRUCT
{
public int cb;
public int wLastError;
public int dwTime;
public HANDLE htask;
}
public struct MONLINKSTRUCT
{
public int cb;
public int dwTime;
public HANDLE htask;
public int fEstablished;
public int fNoData;
public HANDLE hszSvc;
public HANDLE hszTopic;
public HANDLE hszItem;
public int wFmt;
public int fServer;
public HANDLE hConvServer;
public HANDLE hConvClient;
}
public struct MONCONVSTRUCT
{
public int cb;
public int fConnect;
public int dwTime;
public HANDLE htask;
public HANDLE hszSvc;
public HANDLE hszTopic;
public HANDLE hConvClient;
public HANDLE hConvServer;
}
public struct DRAWTEXTPARAMS
{
public int cbSize;
public int iTabLength;
public int iLeftMargin;
public int iRightMargin;
public int uiLengthDrawn;
}
public struct MENUITEMINFO
{
public int cbSize;
public int fMask;
public int fType;
public int fState;
public int wID;
public HANDLE hSubMenu;
public HANDLE hbmpChecked;
public HANDLE hbmpUnchecked;
public int dwItemData;
public string dwTypeData;
public int cch;
}
public struct SCROLLINFO
{
public int cbSize;
public int fMask;
public int nMin;
public int nMax;
public int nPage;
public int nPos;
public int nTrackPos;
}
public struct MSGBOXPARAMS
{
public int cbSize;
public HWND hwndOwner;
public HANDLE hInstance;
public string lpszText;
public string lpszCaption;
public int dwStyle;
public string lpszIcon;
public int dwContextHelpId;
public int lpfnMsgBoxCallback;
public int dwLanguageId;
}
public struct WNDCLASSEX
{
public int cbSize;
public int style;
public int lpfnWndProc;
public int cbClsExtra;
public int cbWndExtra;
public HANDLE hInstance;
public HANDLE hIcon;
public HANDLE hCursor;
public HANDLE hbrBackground;
public string lpszMenuName;
public string lpszClassName;
public HANDLE hIconSm;
}
public struct TPMPARAMS
{
public int cbSize;
public RECT rcExclude;
}
public struct BROWSEINFO
{
public HWND hwndOwner;
public int pIDLRoot;
public int pszDisplayName;
public int lpszTitle;
public int ulFlags;
public int lpfnCallback;
public int lParam;
public int iImage;
} public abstract class ComCtl
{
[DllImport("COMCTL32")] public static extern int ImageList_AddIcon(HANDLE himl, HANDLE hIcon);
[DllImport("COMCTL32")] public static extern int ImageList_Create(int MinCx, int MinCy, int flags, int cInitial, int cGrow);
[DllImport("COMCTL32")] public static extern int ImageList_Draw(HANDLE hIMAGELIST, int ImgIndex, HWND hdcDest, int xDest, int yDest, int lStyle);
[DllImport("COMCTL32")] public static extern int ImageList_GetIcon(HANDLE hIMAGELIST, int ImgIndex, HANDLE hbmMask);
[DllImport("COMCTL32")] public static extern int InitCommonControls();
} public abstract class Ole
{
[DllImport("ole32")] public static extern int OleInitialize(IntPtr vbNullString);
[DllImport("ole32")] public static extern void CoTaskMemFree(HANDLE hMem);
[DllImport("ole32")] public static extern void OleUninitialize();
} public class User
{
[DllImport("advapi32")] public static extern int SetServiceBits(HANDLE hServiceStatus, int dwServiceBits, int bSetBitsOn, int bUpdateImmediately);
[DllImport("kernel32")] public static extern int SetSystemTimeAdjustment(int dwTimeAdjustment, int bTimeAdjustmentDisabled);
[DllImport("mpr")] public static extern int WNetGetUniversalName(string lpLocalPath, int dwInfoLevel, StringBuilder lpBuffer, ref int lpBufferSize);
[DllImport("user32")] public static extern int ActivateKeyboardLayout(HANDLE hKL, int flags);
[DllImport("user32")] public static extern int AdjustWindowRect(ref RECT lpRect, int dwStyle, int bMenu);
[DllImport("user32")] public static extern int AdjustWindowRectEx(ref RECT lpRect, int dsStyle, int bMenu, int dwEsStyle);
[DllImport("user32")] public static extern int AnyPopup();
[DllImport("user32")] public static extern int AppendMenu(HANDLE hMenu, int wFlags, int wIDNewItem, IntPtr lpNewItem);
[DllImport("user32")] public static extern int ArrangeIconicWindows(HWND hwnd);
[DllImport("user32")] public static extern int AttachThreadInput(int idAttach, int idAttachTo, int fAttach);
[DllImport("user32")] public static extern int BeginDeferWindowPos(int nNumWindows);
[DllImport("user32")] public static extern int BeginPaint(HWND hwnd, ref PAINTSTRUCT lpPaint);
[DllImport("user32")] public static extern int BringWindowToTop(HWND hwnd);
[DllImport("user32")] public static extern int BroadcastSystemMessage(int dw, ref int pdw, int un, int wParam, int lParam);
[DllImport("user32")] public static extern int CallMsgFilter(ref MSG lpMsg, int ncode);
[DllImport("user32")] public static extern int CallNextHookEx(HANDLE hHook, int ncode, int wParam, IntPtr lParam);
[DllImport("user32")] public static extern int CallWindowProc(int lpPrevWndFunc, HWND hwnd, int Msg, int wParam, int lParam);
[DllImport("user32")] public static extern int ChangeClipboardChain(HWND hwnd, HWND hwndNext);
[DllImport("user32")] public static extern int ChangeMenu(HANDLE hMenu, int cmd, string lpszNewItem, int cmdInsert, int flags);
[DllImport("user32")] public static extern int CharLowerBuff(string lpsz, int cchLength);
[DllImport("user32")] public static extern int CharToOem(string lpszSrc, string lpszDst);
[DllImport("user32")] public static extern int CharToOemBuff(string lpszSrc, string lpszDst, int cchDstLength);
[DllImport("user32")] public static extern int CharUpperBuff(string lpsz, int cchLength);
[DllImport("user32")] public static extern int CheckDlgButton(HANDLE hDlg, int nIDButton, int wCheck);
[DllImport("user32")] public static extern int CheckMenuItem(HANDLE hMenu, int wIDCheckItem, int wCheck);
[DllImport("user32")] public static extern int CheckMenuRadioItem(HANDLE hMenu, int un1, int un2, int un3, int un4);
[DllImport("user32")] public static extern int CheckRadioButton(HANDLE hDlg, int nIDFirstButton, int nIDLastButton, int nIDCheckButton);
[DllImport("user32")] public static extern int ChildWindowFromPoint(HWND hwnd, int xPoint, int yPoint);
[DllImport("user32")] public static extern int ChildWindowFromPointEx(HWND hwnd, int xPoint, int yPoint, int un);
[DllImport("user32")] public static extern int ClientToScreen(HWND hwnd, ref POINT lpPoint);
[DllImport("user32")] public static extern int ClipCursor(ref RECT lpRect);
[DllImport("user32")] public static extern int CloseClipboard();
[DllImport("user32")] public static extern int CloseDesktop(HANDLE hDesktop);
[DllImport("user32")] public static extern int CloseWindow(HWND hwnd);
[DllImport("user32")] public static extern int CloseWindowStation(HANDLE hWinSta);
[DllImport("user32")] public static extern int CopyAcceleratorTable(HANDLE hAccelSrc, ACCEL[] lpAccelDst, int cAccelEntries);
[DllImport("user32")] public static extern int CopyCursor(HANDLE hcur);
[DllImport("user32")] public static extern int CopyIcon(HANDLE hIcon);
[DllImport("user32")] public static extern int CopyImage(HANDLE handle, int un1, int n1, int n2, int un2);
[DllImport("user32")] public static extern int CopyRect(ref RECT lpDestRect, ref RECT lpSourceRect);
[DllImport("user32")] public static extern int CountClipboardFormats();
[DllImport("user32")] public static extern int CreateAcceleratorTable(ref ACCEL lpaccl, int cEntries);
[DllImport("user32")] public static extern int CreateCaret(HWND hwnd, HANDLE hBitmap, int nWidth, int nHeight);
[DllImport("user32")] public static extern int CreateCursor(HANDLE hInstance, int nXhotspot, int nYhotspot, int nWidth, int nHeight, IntPtr lpANDbitPlane, IntPtr lpXORbitPlane);
[DllImport("user32")] public static extern int CreateDesktop(string lpszDesktop, string lpszDevice, ref DEVMODE pDevmode, int dwFlags, int dwDesiredAccess, ref SECURITY_ATTRIBUTES lpsa);
[DllImport("user32")] public static extern int CreateDialogIndirectParam(HANDLE hInstance, ref DLGTEMPLATE lpTemplate, HWND hwndParent, ref int lpDialogFunc, int dwInitParam);
[DllImport("user32")] public static extern int CreateDialogParam(HANDLE hInstance, string lpName, HWND hwndParent, ref int lpDialogFunc, int lParamInit);
[DllImport("user32")] public static extern int CreateIcon(HANDLE hInstance, int nWidth, int nHeight, Byte nPlanes, Byte nBitsPixel, Byte lpANDbits, Byte lpXORbits);
[DllImport("user32")] public static extern int CreateIconFromResource(Byte presbits, int dwResSize, int fIcon, int dwVer);
[DllImport("user32")] public static extern int CreateIconIndirect(ref ICONINFO piconinfo);
[DllImport("user32")] public static extern int CreateMDIWindow(string lpClassName, string lpWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HANDLE hInstance, int lParam);
[DllImport("user32")] public static extern int CreateMenu();
[DllImport("user32")] public static extern int CreatePopupMenu();
[DllImport("user32")] public static extern int CreateWindowEx(int dwExStyle, string lpClassName, string lpWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HANDLE hMenu, HANDLE hInstance, IntPtr lpParam);
[DllImport("user32")] public static extern int DdeAbandonTransaction(int idInst, HANDLE hConv, int idTransaction);
[DllImport("user32")] public static extern int DdeAccessData(HANDLE hData, ref int pcbDataSize);
[DllImport("user32")] public static extern int DdeAddData(HANDLE hData, Byte pSrc, int cb, int cbOff);
[DllImport("user32")] public static extern int DdeClientTransaction(Byte pData, int cbData, HANDLE hConv, HANDLE hszItem, int wFmt, int wType, int dwTimeout, ref int pdwResult);
[DllImport("user32")] public static extern int DdeCmpStringHandles(HANDLE hsz1, HANDLE hsz2);
[DllImport("user32")] public static extern int DdeConnect(int idInst, HANDLE hszService, HANDLE hszTopic, ref CONVCONTEXT pCC);
[DllImport("user32")] public static extern int DdeConnectList(int idInst, HANDLE hszService, HANDLE hszTopic, HANDLE hConvList, ref CONVCONTEXT pCC);
[DllImport("user32")] public static extern int DdeCreateDataHandle(int idInst, Byte pSrc, int cb, int cbOff, HANDLE hszItem, int wFmt, int afCmd);
[DllImport("user32")] public static extern int DdeCreateStringHandle(int idInst, string psz, int iCodePage);
[DllImport("user32")] public static extern int DdeDisconnect(HANDLE hConv);
[DllImport("user32")] public static extern int DdeDisconnectList(HANDLE hConvList);
[DllImport("user32")] public static extern int DdeEnableCallback(int idInst, HANDLE hConv, int wCmd);
[DllImport("user32")] public static extern int DdeFreeDataHandle(HANDLE hData);
[DllImport("user32")] public static extern int DdeFreeStringHandle(int idInst, HANDLE hsz);
[DllImport("user32")] public static extern int DdeGetData(HANDLE hData, Byte pDst, int cbMax, int cbOff);
[DllImport("user32")] public static extern int DdeGetLastError(int idInst);
[DllImport("user32")] public static extern int DdeImpersonateClient(HANDLE hConv);
[DllImport("user32")] public static extern int DdeKeepStringHandle(int idInst, HANDLE hsz);
[DllImport("user32")] public static extern int DdeNameService(int idInst, HANDLE hsz1, HANDLE hsz2, int afCmd);
[DllImport("user32")] public static extern int DdePostAdvise(int idInst, HANDLE hszTopic, HANDLE hszItem);
[DllImport("user32")] public static extern int DdeQueryConvInfo(HANDLE hConv, int idTransaction, ref CONVINFO pConvInfo);
[DllImport("user32")] public static extern int DdeQueryNextServer(HANDLE hConvList, HANDLE hConvPrev);
[DllImport("user32")] public static extern int DdeQueryString(int idInst, HANDLE hsz, string psz, int cchMax, int iCodePage);
[DllImport("user32")] public static extern int DdeReconnect(HANDLE hConv);
[DllImport("user32")] public static extern int DdeSetQualityOfService(HWND hwndClient, ref SECURITY_QUALITY_OF_SERVICE pqosNew, ref SECURITY_QUALITY_OF_SERVICE pqosPrev);
[DllImport("user32")] public static extern int DdeSetUserHandle(HANDLE hConv, int id, HANDLE hUser);
[DllImport("user32")] public static extern int DdeUnaccessData(HANDLE hData);
[DllImport("user32")] public static extern int DdeUninitialize(int idInst);
[DllImport("user32")] public static extern int DefDlgProc(HANDLE hDlg, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int DefFrameProc(HWND hwnd, HWND hwndMDIClient, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int DefMDIChildProc(HWND hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int DefWindowProc(HWND hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int DeferWindowPos(HANDLE hWinPosInfo, HWND hwnd, HWND hwndInsertAfter, int x, int y, int cx, int cy, int wFlags);
[DllImport("user32")] public static extern int DeleteMenu(HANDLE hMenu, int nPosition, int wFlags);
[DllImport("user32")] public static extern int DestroyAcceleratorTable(HANDLE haccel);
[DllImport("user32")] public static extern int DestroyCaret();
[DllImport("user32")] public static extern int DestroyCursor(HANDLE hCursor);
[DllImport("user32")] public static extern int DestroyIcon(HANDLE hIcon);
[DllImport("user32")] public static extern int DestroyMenu(HANDLE hMenu);
[DllImport("user32")] public static extern int DestroyWindow(HWND hwnd);
[DllImport("user32")] public static extern int DialogBoxIndirectParam(HANDLE hInstance, DLGTEMPLATE hDialogTemplate, HWND hwndParent, ref int lpDialogFunc, int dwInitParam);
[DllImport("user32")] public static extern int DispatchMessage(ref MSG lpMsg);
[DllImport("user32")] public static extern int DlgDirList(HANDLE hDlg, string lpPathSpec, int nIDListBox, int nIDStaticPath, int wFileType);
[DllImport("user32")] public static extern int DlgDirListComboBox(HANDLE hDlg, string lpPathSpec, int nIDComboBox, int nIDStaticPath, int wFileType);
[DllImport("user32")] public static extern int DlgDirSelectComboBoxEx(HWND hwndDlg, string lpszPath, int cbPath, int idComboBox);
[DllImport("user32")] public static extern int DlgDirSelectEx(HWND hwndDlg, string lpszPath, int cbPath, int idListBox);
[DllImport("user32")] public static extern int DragDetect(HWND hwnd, POINT pt);
[DllImport("user32")] public static extern int DragObject(HWND hwnd1, HWND hwnd2, int un, int dw, HANDLE hCursor);
[DllImport("user32")] public static extern int DrawAnimatedRects(HWND hwnd, int idAni, ref RECT lprcFrom, ref RECT lprcTo);
[DllImport("user32")] public static extern int DrawCaption(HWND hwnd, HWND hdc, ref RECT pcRect, int un);
[DllImport("user32")] public static extern int DrawEdge(HDC hdc, ref RECT qrc, int edge, int grfFlags);
[DllImport("user32")] public static extern int DrawFocusRect(HDC hdc, ref RECT lpRect);
[DllImport("user32")] public static extern int DrawFrameControl(HWND hdc, ref RECT lpRect, int un1, int un2);
[DllImport("user32")] public static extern int DrawIcon(HDC hdc, int x, int y, HANDLE hIcon);
[DllImport("user32")] public static extern int DrawIconEx(HDC hdc, int xLeft, int yTop, HANDLE hIcon, int cxWidth, int cyWidth, int istepIfAniCur, HANDLE hbrFlickerFreeDraw, int diFlags);
[DllImport("user32")] public static extern int DrawMenuBar(HWND hwnd);
[DllImport("user32")] public static extern int DrawState(HWND hdc, HANDLE hBrush, ref int lpDrawStateProc, int lParam, int wParam, int n1, int n2, int n3, int n4, int un);
[DllImport("user32")] public static extern int DrawText(HDC hdc, string lpStr, int nCount, ref RECT lpRect, int wFormat);
[DllImport("user32")] public static extern int DrawTextEx(HWND hdc, string lpsz, int n, ref RECT lpRect, int un, ref DRAWTEXTPARAMS lpDrawTextParams);
[DllImport("user32")] public static extern int EmptyClipboard();
[DllImport("user32")] public static extern int EnableMenuItem(HANDLE hMenu, int wIDEnableItem, int wEnable);
[DllImport("user32")] public static extern int EnableScrollBar(HWND hwnd, int wSBflags, int wArrows);
[DllImport("user32")] public static extern int EnableWindow(HWND hwnd, int fEnable);
[DllImport("user32")] public static extern int EndDeferWindowPos(HANDLE hWinPosInfo);
[DllImport("user32")] public static extern int EndDialog(HANDLE hDlg, int nResult);
[DllImport("user32")] public static extern int EndPaint(HWND hwnd, ref PAINTSTRUCT lpPaint);
[DllImport("user32")] public static extern int EnumChildWindows(HWND hwndParent, ref int lpEnumFunc, int lParam);
[DllImport("user32")] public static extern int EnumClipboardFormats(int wFormat);
[DllImport("user32")] public static extern int EnumDesktopWindows(HANDLE hDesktop, ref int lpfn, int lParam);
[DllImport("user32")] public static extern int EnumDesktops(HANDLE hwinsta, ref int lpEnumFunc, int lParam);
[DllImport("user32")] public static extern int EnumProps(HWND hwnd, ref int lpEnumFunc);
[DllImport("user32")] public static extern int EnumPropsEx(HWND hwnd, ref int lpEnumFunc, int lParam);
[DllImport("user32")] public static extern int EnumThreadWindows(int dwThreadId, ref int lpfn, int lParam);
[DllImport("user32")] public static extern int EnumWindowStations(int lpEnumFunc, int lParam);
[DllImport("user32")] public static extern int EnumWindows(int lpEnumFunc, int lParam);
[DllImport("user32")] public static extern int EqualRect(ref RECT lpRect1, ref RECT lpRect2);
[DllImport("user32")] public static extern int ExcludeUpdateRgn(HDC hdc, HWND hwnd);
[DllImport("user32")] public static extern int ExitWindows(int dwReserved, int uReturnCode);
[DllImport("user32")] public static extern int ExitWindowsEx(int uFlags, int dwReserved);
[DllImport("user32")] public static extern int FillRect(HDC hdc, ref RECT lpRect, HANDLE hBrush);
[DllImport("user32")] public static extern int FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32")] public static extern int FindWindowEx(HWND hwnd1, HWND hwnd2, string lpsz1, string lpsz2);
[DllImport("user32")] public static extern int FlashWindow(HWND hwnd, int bInvert);
[DllImport("user32")] public static extern int FrameRect(HDC hdc, ref RECT lpRect, HANDLE hBrush);
[DllImport("user32")] public static extern int FreeDDElParam(int msg, int lParam);
[DllImport("user32")] public static extern int GetActiveWindow();
[DllImport("user32")] public static extern int GetCapture();
[DllImport("user32")] public static extern int GetCaretBlinkTime();
[DllImport("user32")] public static extern int GetCaretPos(ref POINT lpPoint);
[DllImport("user32")] public static extern int GetClassInfo(HANDLE hInstance, string lpClassName, out WNDCLASS lpWndClass);
[DllImport("user32")] public static extern int GetClassLong(HWND hwnd, int nIndex);
[DllImport("user32")] public static extern int GetClassName(HWND hwnd, string lpClassName, int nMaxCount);
[DllImport("user32")] public static extern int GetClassWord(HWND hwnd, int nIndex);
[DllImport("user32")] public static extern int GetClientRect(HWND hwnd, ref RECT lpRect);
[DllImport("user32")] public static extern int GetClipCursor(out RECT lprc);
[DllImport("user32")] public static extern int GetClipboardData(int wFormat);
[DllImport("user32")] public static extern int GetClipboardFormatName(int wFormat, string lpString, int nMaxCount);
[DllImport("user32")] public static extern int GetClipboardOwner();
[DllImport("user32")] public static extern int GetClipboardViewer();
[DllImport("user32")] public static extern int GetCursor();
[DllImport("user32")] public static extern int GetCursorPos(out POINT lpPoint);
[DllImport("user32")] public static extern int GetDC(HWND hwnd);
[DllImport("user32")] public static extern int GetDCEx(HWND hwnd, HANDLE hrgnclip, int fdwOptions);
[DllImport("user32")] public static extern int GetDesktopWindow();
[DllImport("user32")] public static extern int GetDialogBaseUnits();
[DllImport("user32")] public static extern int GetDlgCtrlID(HWND hwnd);
[DllImport("user32")] public static extern int GetDlgItem(HANDLE hDlg, int nIDDlgItem);
[DllImport("user32")] public static extern int GetDlgItemInt(HANDLE hDlg, int nIDDlgItem, ref int lpTranslated, int bSigned);
[DllImport("user32")] public static extern int GetDlgItemText(HANDLE hDlg, int nIDDlgItem, StringBuilder lpString, int nMaxCount);
[DllImport("user32")] public static extern int GetDoubleClickTime();
[DllImport("user32")] public static extern int GetFocus();
[DllImport("user32")] public static extern int GetForegroundWindow();
[DllImport("user32")] public static extern int GetIconInfo(HANDLE hIcon, out ICONINFO piconinfo);
[DllImport("user32")] public static extern int GetInputState();
[DllImport("user32")] public static extern int GetKBCodePage();
[DllImport("user32")] public static extern int GetKeyNameText(int lParam, StringBuilder lpBuffer, int nSize);
[DllImport("user32")] public static extern int GetKeyboardLayout(int dwLayout);
[DllImport("user32")] public static extern int GetKeyboardLayoutList(int nBuff, ref int lpList);
[DllImport("user32")] public static extern int GetKeyboardLayoutName(string pwszKLID);
[DllImport("user32")] public static extern int GetKeyboardState(Byte pbKeyState);
[DllImport("user32")] public static extern int GetKeyboardType(int nTypeFlag);
[DllImport("user32")] public static extern int GetLastActivePopup(HWND hwndOwnder);
[DllImport("user32")] public static extern int GetMenu(HWND hwnd);
[DllImport("user32")] public static extern int GetMenuCheckMarkDimensions();
[DllImport("user32")] public static extern int GetMenuContextHelpId(HANDLE hMenu);
[DllImport("user32")] public static extern int GetMenuDefaultItem(HANDLE hMenu, int fByPos, int gmdiFlags);
[DllImport("user32")] public static extern int GetMenuItemCount(HANDLE hMenu);
[DllImport("user32")] public static extern int GetMenuItemID(HANDLE hMenu, int nPos);
[DllImport("user32")] public static extern int GetMenuItemInfo(HANDLE hMenu, int un, int b, ref MENUITEMINFO lpMenuItemInfo);
[DllImport("user32")] public static extern int GetMenuItemRect(HWND hwnd, HANDLE hMenu, int uItem, ref RECT lprcItem);
[DllImport("user32")] public static extern int GetMenuState(HANDLE hMenu, int wID, int wFlags);
[DllImport("user32")] public static extern int GetMenuString(HANDLE hMenu, int wIDItem, StringBuilder lpString, int nMaxCount, int wFlag);
[DllImport("user32")] public static extern int GetMessage(ref MSG lpMsg, HWND hwnd, int wMsgFilterMin, int wMsgFilterMax);
[DllImport("user32")] public static extern int GetMessageExtraInfo();
[DllImport("user32")] public static extern int GetMessagePos();
[DllImport("user32")] public static extern int GetMessageTime();
[DllImport("user32")] public static extern int GetNextDlgGroupItem(HANDLE hDlg, HANDLE hCtl, int bPrevious);
[DllImport("user32")] public static extern int GetNextDlgTabItem(HANDLE hDlg, HANDLE hCtl, int bPrevious);
[DllImport("user32")] public static extern int GetNextWindow(HWND hwnd, int wFlag);
[DllImport("user32")] public static extern int GetOpenClipboardWindow();
[DllImport("user32")] public static extern int GetParent(HWND hwnd);
[DllImport("user32")] public static extern int GetPriorityClipboardFormat(int lpPriorityList, int nCount);
[DllImport("user32")] public static extern int GetProcessWindowStation();
[DllImport("user32")] public static extern int GetProp(HWND hwnd, string lpString);
[DllImport("user32")] public static extern int GetQueueStatus(int fuFlags);
[DllImport("user32")] public static extern int GetScrollInfo(HWND hwnd, int n, ref SCROLLINFO lpScrollInfo);
[DllImport("user32")] public static extern int GetScrollPos(HWND hwnd, int nBar);
[DllImport("user32")] public static extern int GetScrollRange(HWND hwnd, int nBar, ref int lpMinPos, ref int lpMaxPos);
[DllImport("user32")] public static extern int GetSubMenu(HANDLE hMenu, int nPos);
[DllImport("user32")] public static extern int GetSysColor(int nIndex);
[DllImport("user32")] public static extern int GetSysColorBrush(int nIndex);
[DllImport("user32")] public static extern int GetSystemMenu(HWND hwnd, int bRevert);
[DllImport("user32")] public static extern int GetSystemMetrics(int nIndex);
[DllImport("user32")] public static extern int GetTabbedTextExtent(HDC hdc, string lpString, int nCount, int nTabPositions, ref int lpnTabStopPositions);
[DllImport("user32")] public static extern int GetThreadDesktop(int dwThread);
[DllImport("user32")] public static extern int GetTopWindow(HWND hwnd);
[DllImport("user32")] public static extern int GetUpdateRect(HWND hwnd, ref RECT lpRect, int bErase);
[DllImport("user32")] public static extern int GetUpdateRgn(HWND hwnd, HANDLE hRgn, int fErase);
[DllImport("user32")] public static extern int GetUserObjectInformation(HANDLE hObj, int nIndex, IntPtr pvInfo, int nLength, ref int lpnLengthNeeded);
[DllImport("user32")] public static extern int GetUserObjectSecurity(HANDLE hObj, ref int pSIRequested, ref SECURITY_DESCRIPTOR pSd, int nLength, ref int lpnLengthNeeded);
[DllImport("user32")] public static extern int GetWindow(HWND hwnd, int wCmd);
[DllImport("user32")] public static extern int GetWindowContextHelpId(HWND hwnd);
[DllImport("user32")] public static extern int GetWindowDC(HWND hwnd);
[DllImport("user32")] public static extern int GetWindowLong(HWND hwnd, int nIndex);
[DllImport("user32")] public static extern int GetWindowPlacement(HWND hwnd, ref WINDOWPLACEMENT lpwndpl);
[DllImport("user32")] public static extern int GetWindowRect(HWND hwnd, ref RECT lpRect);
[DllImport("user32")] public static extern int GetWindowRgn(HWND hwnd, HANDLE hRgn);
[DllImport("user32")] public static extern int GetWindowText(HWND hwnd, StringBuilder lpString, int cch);
[DllImport("user32")] public static extern int GetWindowTextLength(HWND hwnd);
[DllImport("user32")] public static extern int GetWindowThreadProcessId(HWND hwnd, ref int lpdwProcessId);
[DllImport("user32")] public static extern int GrayString(HWND hdc, HANDLE hBrush, ref int lpOutputFunc, ref int lpData, int nCount, int X, int Y, int nWidth, int nHeight);
[DllImport("user32")] public static extern int HideCaret(HWND hwnd);
[DllImport("user32")] public static extern int HiliteMenuItem(HWND hwnd, HANDLE hMenu, int wIDHiliteItem, int wHilite);
[DllImport("user32")] public static extern int ImpersonateDdeClientWindow(HWND hwndClient, HWND hwndServer);
[DllImport("user32")] public static extern int InSendMessage();
[DllImport("user32")] public static extern int InflateRect(ref RECT lpRect, int x, int y);
[DllImport("user32")] public static extern int InsertMenu(HANDLE hMenu, int nPosition, int wFlags, int wIDNewItem, IntPtr lpNewItem);
[DllImport("user32")] public static extern int InsertMenuItem(HANDLE hMenu, int un, bool b, ref MENUITEMINFO lpcMenuItemInfo);
[DllImport("user32")] public static extern int IntersectRect(ref RECT lpDestRect, ref RECT lpSrc1Rect, ref RECT lpSrc2Rect);
[DllImport("user32")] public static extern int InvalidateRect(HWND hwnd, ref RECT lpRect, int bErase);
[DllImport("user32")] public static extern int InvalidateRgn(HWND hwnd, HANDLE hRgn, int bErase);
[DllImport("user32")] public static extern int InvertRect(HDC hdc, ref RECT lpRect);
[DllImport("user32")] public static extern int IsCharAlpha(Byte cChar);
[DllImport("user32")] public static extern int IsCharAlphaNumeric(Byte cChar);
[DllImport("user32")] public static extern int IsCharLower(Byte cChar);
[DllImport("user32")] public static extern int IsCharUpper(Byte cChar);
[DllImport("user32")] public static extern int IsChild(HWND hwndParent, HWND hwnd);
[DllImport("user32")] public static extern int IsClipboardFormatAvailable(int wFormat);
[DllImport("user32")] public static extern int IsDialogMessage(HANDLE hDlg, ref MSG lpMsg);
[DllImport("user32")] public static extern int IsDlgButtonChecked(HANDLE hDlg, int nIDButton);
[DllImport("user32")] public static extern int IsIconic(HWND hwnd);
[DllImport("user32")] public static extern int IsMenu(HANDLE hMenu);
[DllImport("user32")] public static extern int IsRectEmpty(ref RECT lpRect);
[DllImport("user32")] public static extern int IsWindow(HWND hwnd);
[DllImport("user32")] public static extern int IsWindowEnabled(HWND hwnd);
[DllImport("user32")] public static extern int IsWindowUnicode(HWND hwnd);
[DllImport("user32")] public static extern int IsWindowVisible(HWND hwnd);
[DllImport("user32")] public static extern int IsZoomed(HWND hwnd);
[DllImport("user32")] public static extern int KillTimer(HWND hwnd, int nIDEvent);
[DllImport("user32")] public static extern int LoadAccelerators(HANDLE hInstance, string lpTableName);
[DllImport("user32")] public static extern int LoadBitmap(HANDLE hInstance, string lpBitmapName);
[DllImport("user32")] public static extern int LoadCursor(HANDLE hInstance, string lpCursorName);
[DllImport("user32")] public static extern int LoadCursorFromFile(string lpFileName);
[DllImport("user32")] public static extern int LoadIcon(HANDLE hInstance, string lpIconName);
[DllImport("user32")] public static extern int LoadImage(HANDLE hInst, string lpsz, int un1, int n1, int n2, int un2);
[DllImport("user32")] public static extern int LoadKeyboardLayout(string pwszKLID, int flags);
[DllImport("user32")] public static extern int LoadMenu(HANDLE hInstance, string lpString);
[DllImport("user32")] public static extern int LoadMenuIndirect(int lpMenuTemplate);
[DllImport("user32")] public static extern int LoadString(HANDLE hInstance, int wID, string lpBuffer, int nBufferMax);
[DllImport("user32")] public static extern int LockWindowUpdate(HWND hwndLock);
[DllImport("user32")] public static extern int LookupIconIdFromDirectory(Byte presbits, int fIcon);
[DllImport("user32")] public static extern int LookupIconIdFromDirectoryEx(Byte presbits, int fIcon, int cxDesired, int cyDesired, int Flags);
[DllImport("user32")] public static extern int MapDialogRect(HANDLE hDlg, ref RECT lpRect);
[DllImport("user32")] public static extern int MapVirtualKey(int wCode, int wMapType);
[DllImport("user32")] public static extern int MapVirtualKeyEx(int uCode, int uMapType, int dwhkl);
[DllImport("user32")] public static extern int MapWindowPoints(HWND hwndFrom, HWND hwndTo, POINT [] lppt, int cPoints);
[DllImport("user32")] public static extern int MenuItemFromPoint(HWND hwnd, HANDLE hMenu, POINT ptScreen);
[DllImport("user32")] public static extern int MessageBeep(int wType);
[DllImport("user32")] public static extern int MessageBox(HWND hwnd, string lpText, string lpCaption, int wType);
[DllImport("user32")] public static extern int MessageBoxEx(HWND hwnd, string lpText, string lpCaption, int uType, int wLanguageId);
[DllImport("user32")] public static extern int MessageBoxIndirect(ref MSGBOXPARAMS lpMsgBoxParams);
[DllImport("user32")] public static extern int ModifyMenu(HANDLE hMenu, int nPosition, int wFlags, int wIDNewItem, IntPtr lpString);
[DllImport("user32")] public static extern int MoveWindow(HWND hwnd, int x, int y, int nWidth, int nHeight, int bRepaint);
[DllImport("user32")] public static extern int MsgWaitForMultipleObjects(int nCount, ref int pHandles, int fWaitAll, int dwMilliseconds, int dwWakeMask);
[DllImport("user32")] public static extern int OemKeyScan(int wOemChar);
[DllImport("user32")] public static extern int OemToChar(string lpszSrc, string lpszDst);
[DllImport("user32")] public static extern int OemToCharBuff(string lpszSrc, string lpszDst, int cchDstLength);
[DllImport("user32")] public static extern int OffsetRect(ref RECT lpRect, int x, int y);
[DllImport("user32")] public static extern int OpenClipboard(HWND hwnd);
[DllImport("user32")] public static extern int OpenDesktop(string lpszDesktop, int dwFlags, int fInherit, int dwDesiredAccess);
[DllImport("user32")] public static extern int OpenIcon(HWND hwnd);
[DllImport("user32")] public static extern int OpenInputDesktop(int dwFlags, int fInherit, int dwDesiredAccess);
[DllImport("user32")] public static extern int OpenWindowStation(string lpszWinSta, int fInherit, int dwDesiredAccess);
[DllImport("user32")] public static extern int PackDDElParam(int msg, int uiLo, int uiHi);
[DllImport("user32")] public static extern int PaintDesktop(HDC hdc);
[DllImport("user32")] public static extern int PeekMessage(ref MSG lpMsg, HWND hwnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg);
[DllImport("user32")] public static extern int PostMessage(HWND hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int PostThreadMessage(int idThread, int msg, int wParam, int lParam);
[DllImport("user32")] public static extern int PtInRect(ref RECT lpRect, int ptX, int ptY);
[DllImport("user32")] public static extern int RedrawWindow(HWND hwnd, ref RECT lprcUpdate, HANDLE hrgnUpdate, int fuRedraw);
[DllImport("user32")] public static extern int RegisterClass(ref WNDCLASS Class);
[DllImport("user32")] public static extern int RegisterClipboardFormat(string lpString);
[DllImport("user32")] public static extern int RegisterHotKey(HWND hwnd, int id, int fsModifiers, int vk);
[DllImport("user32")] public static extern int RegisterWindowMessage(string lpString);
[DllImport("user32")] public static extern int ReleaseCapture();
[DllImport("user32")] public static extern int ReleaseDC(HWND hwnd, HDC hdc);
[DllImport("user32")] public static extern int RemoveMenu(HANDLE hMenu, int nPosition, int wFlags);
[DllImport("user32")] public static extern int RemoveProp(HWND hwnd, string lpString);
[DllImport("user32")] public static extern int ReplyMessage(int lReply);
[DllImport("user32")] public static extern int ReuseDDElParam(int lParam, int msgIn, int msgOut, int uiLo, int uiHi);
[DllImport("user32")] public static extern int ScreenToClient(HWND hwnd, ref POINT lpPoint);
[DllImport("user32")] public static extern int ScrollDC(HDC hdc, int dx, int dy, ref RECT lprcScroll, ref RECT lprcClip, HANDLE hrgnUpdate, ref RECT lprcUpdate);
[DllImport("user32")] public static extern int ScrollWindow(HWND hwnd, int XAmount, int YAmount, ref RECT lpRect, ref RECT lpClipRect);
[DllImport("user32")] public static extern int ScrollWindowEx(HWND hwnd, int dx, int dy, ref RECT lprcScroll, ref RECT lprcClip, HANDLE hrgnUpdate, ref RECT lprcUpdate, int fuScroll);
[DllImport("user32")] public static extern int SendDlgItemMessage(HANDLE hDlg, int nIDDlgItem, int wMsg, int wParam, int lParam);
[DllImport("user32")] public static extern int SendMessage(HWND hwnd, int wMsg, int wParam, IntPtr lParam);
[DllImport("user32")] public static extern int SendMessageCallback(HWND hwnd, int msg, int wParam, int lParam, ref int lpResultCallBack, int dwData);
[DllImport("user32")] public static extern int SendMessageTimeout(HWND hwnd, int msg, int wParam, int lParam, int fuFlags, int uTimeout, ref int lpdwResult);
[DllImport("user32")] public static extern int SendNotifyMessage(HWND hwnd, int msg, int wParam, int lParam);
[DllImport("user32")] public static extern int SetActiveWindow(HWND hwnd);
[DllImport("user32")] public static extern int SetCapture(HWND hwnd);
[DllImport("user32")] public static extern int SetCaretBlinkTime(int wMSeconds);
[DllImport("user32")] public static extern int SetCaretPos(int x, int y);
[DllImport("user32")] public static extern int SetClassLong(HWND hwnd, int nIndex, int dwNewLong);
[DllImport("user32")] public static extern int SetClassWord(HWND hwnd, int nIndex, int wNewWord);
[DllImport("user32")] public static extern int SetClipboardData(int wFormat, HANDLE hMem);
[DllImport("user32")] public static extern int SetClipboardViewer(HWND hwnd);
[DllImport("user32")] public static extern int SetCursor(HANDLE hCursor);
[DllImport("user32")] public static extern int SetCursorPos(int x, int y);
[DllImport("user32")] public static extern int SetDlgItemInt(HANDLE hDlg, int nIDDlgItem, int wValue, int bSigned);
[DllImport("user32")] public static extern int SetDlgItemText(HANDLE hDlg, int nIDDlgItem, string lpString);
[DllImport("user32")] public static extern int SetDoubleClickTime(int wCount);
[DllImport("user32")] public static extern int SetFocus(HWND hwnd);
[DllImport("user32")] public static extern int SetForegroundWindow(HWND hwnd);
[DllImport("user32")] public static extern int SetKeyboardState(Byte lppbKeyState);
[DllImport("user32")] public static extern int SetMenu(HWND hwnd, HANDLE hMenu);
[DllImport("user32")] public static extern int SetMenuContextHelpId(HANDLE hMenu, int dw);
[DllImport("user32")] public static extern int SetMenuDefaultItem(HANDLE hMenu, int uItem, int fByPos);
[DllImport("user32")] public static extern int SetMenuItemBitmaps(HANDLE hMenu, int nPosition, int wFlags, HANDLE hBitmapUnchecked, HANDLE hBitmapChecked);
[DllImport("user32")] public static extern int SetMenuItemInfo(HANDLE hMenu, int un, bool b, ref MENUITEMINFO lpcMenuItemInfo);
[DllImport("user32")] public static extern int SetMessageExtraInfo(int lParam);
[DllImport("user32")] public static extern int SetMessageQueue(int cMessagesMax);
[DllImport("user32")] public static extern int SetParent(HWND hwndChild, HWND hwndNewParent);
[DllImport("user32")] public static extern int SetProcessWindowStation(HANDLE hWinSta);
[DllImport("user32")] public static extern int SetProp(HWND hwnd, string lpString, HANDLE hData);
[DllImport("user32")] public static extern int SetRect(ref RECT lpRect, int X1, int Y1, int X2, int Y2);
[DllImport("user32")] public static extern int SetRectEmpty(ref RECT lpRect);
[DllImport("user32")] public static extern int SetScrollInfo(HWND hwnd, int n, ref SCROLLINFO lpcScrollInfo, bool redraw);
[DllImport("user32")] public static extern int SetScrollPos(HWND hwnd, int nBar, int nPos, int bRedraw);
[DllImport("user32")] public static extern int SetScrollRange(HWND hwnd, int nBar, int nMinPos, int nMaxPos, int bRedraw);
[DllImport("user32")] public static extern int SetSysColors(int nChanges, ref int lpSysColor, ref int lpColorValues);
[DllImport("user32")] public static extern int SetSystemCursor(HANDLE hcur, int id);
[DllImport("user32")] public static extern int SetThreadDesktop(HANDLE hDesktop);
[DllImport("user32")] public static extern int SetTimer(HWND hwnd, int nIDEvent, int uElapse, ref int lpTimerFunc);
[DllImport("user32")] public static extern int SetUserObjectInformation(HANDLE hObj, int nIndex, IntPtr pvInfo, int nLength);
[DllImport("user32")] public static extern int SetUserObjectSecurity(HANDLE hObj, ref int pSIRequested, ref SECURITY_DESCRIPTOR pSd);
[DllImport("user32")] public static extern int SetWindowContextHelpId(HWND hwnd, int dw);
[DllImport("user32")] public static extern int SetWindowLong(HWND hwnd, int nIndex, int dwNewLong);
[DllImport("user32")] public static extern int SetWindowPlacement(HWND hwnd, ref WINDOWPLACEMENT lpwndpl);
[DllImport("user32")] public static extern int SetWindowPos(HWND hwnd, HWND hwndInsertAfter, int x, int y, int cx, int cy, int wFlags);
[DllImport("user32")] public static extern int SetWindowRgn(HWND hwnd, HANDLE hRgn, int bRedraw);
[DllImport("user32")] public static extern int SetWindowText(HWND hwnd, string lpString);
[DllImport("user32")] public static extern int SetWindowWord(HWND hwnd, int nIndex, int wNewWord);
[DllImport("user32")] public static extern int SetWindowsHook(int nFilterType, ref int pfnFilterProc);
[DllImport("user32")] public static extern int SetWindowsHookEx(int idHook, ref int lpfn, HANDLE hmod, int dwThreadId);
[DllImport("user32")] public static extern int ShowCaret(HWND hwnd);
[DllImport("user32")] public static extern int ShowCursor(int bShow);
[DllImport("user32")] public static extern int ShowOwnedPopups(HWND hwnd, int fShow);
[DllImport("user32")] public static extern int ShowScrollBar(HWND hwnd, int wBar, int bShow);
[DllImport("user32")] public static extern int ShowWindow(HWND hwnd, int nCmdShow);
[DllImport("user32")] public static extern int ShowWindowAsync(HWND hwnd, int nCmdShow);
[DllImport("user32")] public static extern int SubtractRect(ref RECT lprcDst, ref RECT lprcSrc1, ref RECT lprcSrc2);
[DllImport("user32")] public static extern int SwapMouseButton(int bSwap);
[DllImport("user32")] public static extern int SwitchDesktop(HANDLE hDesktop);
[DllImport("user32")] public static extern int SystemParametersInfo(int uAction, int uParam, ref IntPtr lpvParam, int fuWinIni);
[DllImport("user32")] public static extern int TabbedTextOut(HDC hdc, int x, int y, string lpString, int nCount, int nTabPositions, ref int lpnTabStopPositions, int nTabOrigin);
[DllImport("user32")] public static extern int ToAscii(int uVirtKey, int uScanCode, Byte lpbKeyState, ref int lpwTransKey, int fuState);
[DllImport("user32")] public static extern int ToAsciiEx(int uVirtKey, int uScanCode, Byte lpKeyState, short lpChar, int uFlags, int dwhkl);
[DllImport("user32")] public static extern int ToUnicode(int wVirtKey, int wScanCode, Byte lpKeyState, string pwszBuff, int cchBuff, int wFlags);
[DllImport("user32")] public static extern int TrackPopupMenu(HANDLE hMenu, int wFlags, int x, int y, int nReserved, HWND hwnd, ref RECT lprc);
[DllImport("user32")] public static extern int TrackPopupMenuEx(HANDLE hMenu, int un, int n1, int n2, HWND hwnd, ref TPMPARAMS lpTPMParams);
[DllImport("user32")] public static extern int TranslateAccelerator(HWND hwnd, HANDLE hAccTable, ref MSG lpMsg);
[DllImport("user32")] public static extern int TranslateMDISysAccel(HWND hwndClient, ref MSG lpMsg);
[DllImport("user32")] public static extern int TranslateMessage(ref MSG lpMsg);
[DllImport("user32")] public static extern int UnhookWindowsHook(int nCode, ref int pfnFilterProc);
[DllImport("user32")] public static extern int UnhookWindowsHookEx(HANDLE hHook);
[DllImport("user32")] public static extern int UnionRect(ref RECT lpDestRect, ref RECT lpSrc1Rect, ref RECT lpSrc2Rect);
[DllImport("user32")] public static extern int UnloadKeyboardLayout(HANDLE hKL);
[DllImport("user32")] public static extern int UnpackDDElParam(int msg, int lParam, ref int puiLo, ref int puiHi);
[DllImport("user32")] public static extern int UnregisterClass(string lpClassName, HANDLE hInstance);
[DllImport("user32")] public static extern int UnregisterHotKey(HWND hwnd, int id);
[DllImport("user32")] public static extern int UpdateWindow(HWND hwnd);
[DllImport("user32")] public static extern int ValidateRect(HWND hwnd, ref RECT lpRect);
[DllImport("user32")] public static extern int ValidateRgn(HWND hwnd, HANDLE hRgn);
[DllImport("user32")] public static extern int WaitForInputIdle(HANDLE hProcess, int dwMilliseconds);
[DllImport("user32")] public static extern int WaitMessage();
[DllImport("user32")] public static extern int WinHelp(HWND hwnd, string lpHelpFile, int wCommand, int dwData);
[DllImport("user32")] public static extern int WindowFromDC(HDC hdc);
[DllImport("user32")] public static extern int WindowFromPoint(int xPoint, int yPoint);
[DllImport("user32")] public static extern short CascadeWindows(HWND hwndParent, int wHow, ref RECT lpRect, int cKids, ref int lpkids);
[DllImport("user32")] public static extern short GetAsyncKeyState(int vKey);
[DllImport("user32")] public static extern short GetKeyState(int nVirtKey);
[DllImport("user32")] public static extern short GetWindowWord(HWND hwnd, int nIndex);
[DllImport("user32")] public static extern short RegisterClassEx(ref WNDCLASSEX pcWndClassEx);
[DllImport("user32")] public static extern short TileWindows(HWND hwndParent, int wHow, ref RECT lpRect, int cKids, ref int lpKids);
[DllImport("user32")] public static extern short VkKeyScan(Byte cChar);
[DllImport("user32")] public static extern short VkKeyScanEx(Byte ch, int dwhkl);
[DllImport("user32")] public static extern string CharLower(string lpsz);
[DllImport("user32")] public static extern string CharNext(string lpsz);
[DllImport("user32")] public static extern string CharPrev(string lpszStart, string lpszCurrent);
[DllImport("user32")] public static extern string CharUpper(string lpsz);
[DllImport("user32")] public static extern void PostQuitMessage(int nExitCode);
[DllImport("user32")] public static extern void keybd_event(Byte bVk, Byte bScan, int dwFlags, int dwExtraInfo);
[DllImport("user32")] public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
[DllImport("user32")] public static extern void SetDebugErrorLevel(int dwLevel);
[DllImport("user32")] public static extern void SetLastErrorEx(int dwErrCode, int dwType); public const int APPCLASS_MASK = 0xF;
public const int APPCLASS_MONITOR = 0x1;
public const int APPCLASS_STANDARD = 0x0;
public const int APPCMD_CLIENTONLY = 0x10;
public const int APPCMD_FILTERINITS = 0x20;
public const int APPCMD_MASK = 0xFF0;
public const int BDR_INNER = 0xC;
public const int BDR_OUTER = 0x3;
public const int BDR_RAISED = 0x5;
public const int BDR_RAISEDINNER = 0x4;
public const int BDR_RAISEDOUTER = 0x1;
public const int BDR_SUNKEN = 0xA;
public const int BDR_SUNKENINNER = 0x8;
public const int BDR_SUNKENOUTER = 0x2;
public const int BF_ADJUST = 0x2000;
public const int BF_BOTTOM = 0x8;
public const int BF_BOTTOMLEFT = (BF_BOTTOM | BF_LEFT);
public const int BF_BOTTOMRIGHT = (BF_BOTTOM | BF_RIGHT);
public const int BF_DIAGONAL = 0x10;
public const int BF_DIAGONAL_ENDBOTTOMLEFT = (BF_DIAGONAL | BF_BOTTOM | BF_LEFT);
public const int BF_DIAGONAL_ENDBOTTOMRIGHT = (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT);
public const int BF_DIAGONAL_ENDTOPLEFT = (BF_DIAGONAL | BF_TOP | BF_LEFT);
public const int BF_DIAGONAL_ENDTOPRIGHT = (BF_DIAGONAL | BF_TOP | BF_RIGHT);
public const int BF_FLAT = 0x4000;
public const int BF_LEFT = 0x1;
public const int BF_MIDDLE = 0x800;
public const int BF_MONO = 0x8000;
public const int BF_RECT = (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM);
public const int BF_RIGHT = 0x4;
public const int BF_SOFT = 0x1000;
public const int BF_TOP = 0x2;
public const int BF_TOPLEFT = (BF_TOP | BF_LEFT);
public const int BF_TOPRIGHT = (BF_TOP | BF_RIGHT);
public const int BIF_BROWSEFORCOMPUTER = ;
public const int BIF_BROWSEFORPRINTER = ;
public const int BIF_BROWSEINCLUDEFILES = ;
public const int BIF_BROWSEINCLUDEURLS = ;
public const int BIF_DONTGOBELOWDOMAIN = ;
public const int BIF_EDITBOX = ;
public const int BIF_RETURNFSANCESTORS = ;
public const int BIF_RETURNONLYFSDIRS = ;
public const int BIF_SHAREABLE = ;
public const int BIF_STATUSTEXT = ;
public const int BIF_USENEWUI = ;
public const int BIF_VALIDATE = ;
public const int BM_GETCHECK = 0xF0;
public const int BM_GETSTATE = 0xF2;
public const int BM_SETCHECK = 0xF1;
public const int BM_SETSTATE = 0xF3;
public const int BM_SETSTYLE = 0xF4;
public const int BN_CLICKED = ;
public const int BN_DISABLE = ;
public const int BN_DOUBLECLICKED = ;
public const int BN_HILITE = ;
public const int BN_PAINT = ;
public const int BN_UNHILITE = ;
public const int BS_3STATE = 0x5;
public const int BS_AUTO3STATE = 0x6;
public const int BS_AUTOCHECKBOX = 0x3;
public const int BS_AUTORADIOBUTTON = 0x9;
public const int BS_CHECKBOX = 0x2;
public const int BS_DEFPUSHBUTTON = 0x1;
public const int BS_GROUPBOX = 0x7;
public const int BS_LEFTTEXT = 0x20;
public const int BS_OWNERDRAW = 0xB;
public const int BS_PUSHBUTTON = 0x0;
public const int BS_RADIOBUTTON = 0x4;
public const int BS_USERBUTTON = 0x8;
public const int CADV_LATEACK = 0xFFFF;
public const int CBF_FAIL_ADVISES = 0x4000;
public const int CBF_FAIL_ALLSVRXACTIONS = 0x3F000;
public const int CBF_FAIL_CONNECTIONS = 0x2000;
public const int CBF_FAIL_EXECUTES = 0x8000;
public const int CBF_FAIL_POKES = 0x10000;
public const int CBF_FAIL_REQUESTS = 0x20000;
public const int CBF_FAIL_SELFCONNECTIONS = 0x1000;
public const int CBF_SKIP_ALLNOTIFICATIONS = 0x3C0000;
public const int CBF_SKIP_CONNECT_CONFIRMS = 0x40000;
public const int CBF_SKIP_DISCONNECTS = 0x200000;
public const int CBF_SKIP_REGISTRATIONS = 0x80000;
public const int CBF_SKIP_UNREGISTRATIONS = 0x100000;
public const int CBN_CLOSEUP = ;
public const int CBN_DBLCLK = ;
public const int CBN_DROPDOWN = ;
public const int CBN_EDITCHANGE = ;
public const int CBN_EDITUPDATE = ;
public const int CBN_ERRSPACE = (-);
public const int CBN_KILLFOCUS = ;
public const int CBN_SELCHANGE = ;
public const int CBN_SELENDCANCEL = ;
public const int CBN_SELENDOK = ;
public const int CBN_SETFOCUS = ;
public const int CBR_BLOCK = 0xFFFF;
public const int CBS_AUTOHSCROLL = 0x40;
public const int CBS_DISABLENOSCROLL = 0x800;
public const int CBS_DROPDOWN = 0x2;
public const int CBS_DROPDOWNLIST = 0x3;
public const int CBS_HASSTRINGS = 0x200;
public const int CBS_NOINTEGRALHEIGHT = 0x400;
public const int CBS_OEMCONVERT = 0x80;
public const int CBS_OWNERDRAWFIXED = 0x10;
public const int CBS_OWNERDRAWVARIABLE = 0x20;
public const int CBS_SIMPLE = 0x1;
public const int CBS_SORT = 0x100;
public const int CB_ADDSTRING = 0x143;
public const int CB_DELETESTRING = 0x144;
public const int CB_DIR = 0x145;
public const int CB_ERR = (-);
public const int CB_ERRSPACE = (-);
public const int CB_FINDSTRING = 0x14C;
public const int CB_FINDSTRINGEXACT = 0x158;
public const int CB_GETCOUNT = 0x146;
public const int CB_GETCURSEL = 0x147;
public const int CB_GETDROPPEDCONTROLRECT = 0x152;
public const int CB_GETDROPPEDSTATE = 0x157;
public const int CB_GETEDITSEL = 0x140;
public const int CB_GETEXTENDEDUI = 0x156;
public const int CB_GETITEMDATA = 0x150;
public const int CB_GETITEMHEIGHT = 0x154;
public const int CB_GETLBTEXT = 0x148;
public const int CB_GETLBTEXTLEN = 0x149;
public const int CB_GETLOCALE = 0x15A;
public const int CB_INSERTSTRING = 0x14A;
public const int CB_LIMITTEXT = 0x141;
public const int CB_MSGMAX = 0x15B;
public const int CB_OKAY = ;
public const int CB_RESETCONTENT = 0x14B;
public const int CB_SELECTSTRING = 0x14D;
public const int CB_SETCURSEL = 0x14E;
public const int CB_SETEDITSEL = 0x142;
public const int CB_SETEXTENDEDUI = 0x155;
public const int CB_SETITEMDATA = 0x151;
public const int CB_SETITEMHEIGHT = 0x153;
public const int CB_SETLOCALE = 0x159;
public const int CB_SHOWDROPDOWN = 0x14F;
public const int CF_BITMAP = ;
public const int CF_DIB = ;
public const int CF_DIF = ;
public const int CF_DSPBITMAP = 0x82;
public const int CF_DSPENHMETAFILE = 0x8E;
public const int CF_DSPMETAFILEPICT = 0x83;
public const int CF_DSPTEXT = 0x81;
public const int CF_ENHMETAFILE = ;
public const int CF_GDIOBJFIRST = 0x300;
public const int CF_GDIOBJLAST = 0x3FF;
public const int CF_METAFILEPICT = ;
public const int CF_OEMTEXT = ;
public const int CF_OWNERDISPLAY = 0x80;
public const int CF_PALETTE = ;
public const int CF_PENDATA = ;
public const int CF_PRIVATEFIRST = 0x200;
public const int CF_PRIVATELAST = 0x2FF;
public const int CF_RIFF = ;
public const int CF_SYLK = ;
public const int CF_TEXT = ;
public const int CF_TIFF = ;
public const int CF_UNICODETEXT = ;
public const int CF_WAVE = ;
public const int CN_EVENT = 0x4;
public const int CN_RECEIVE = 0x1;
public const int CN_TRANSMIT = 0x2;
public const int COLOR_ACTIVEBORDER = ;
public const int COLOR_ACTIVECAPTION = ;
public const int COLOR_APPWORKSPACE = ;
public const int COLOR_BACKGROUND = ;
public const int COLOR_BTNFACE = ;
public const int COLOR_BTNHIGHLIGHT = ;
public const int COLOR_BTNSHADOW = ;
public const int COLOR_BTNTEXT = ;
public const int COLOR_CAPTIONTEXT = ;
public const int COLOR_GRAYTEXT = ;
public const int COLOR_HIGHLIGHT = ;
public const int COLOR_HIGHLIGHTTEXT = ;
public const int COLOR_INACTIVEBORDER = ;
public const int COLOR_INACTIVECAPTION = ;
public const int COLOR_INACTIVECAPTIONTEXT = ;
public const int COLOR_MENU = ;
public const int COLOR_MENUTEXT = ;
public const int COLOR_SCROLLBAR = ;
public const int COLOR_WINDOW = ;
public const int COLOR_WINDOWFRAME = ;
public const int COLOR_WINDOWTEXT = ;
public const int CP_WINANSI = ;
public const int CP_WINUNICODE = ;
public const int CS_BYTEALIGNCLIENT = 0x1000;
public const int CS_BYTEALIGNWINDOW = 0x2000;
public const int CS_CLASSDC = 0x40;
public const int CS_DBLCLKS = 0x8;
public const int CS_HREDRAW = 0x2;
public const int CS_KEYCVTWINDOW = 0x4;
public const int CS_NOCLOSE = 0x200;
public const int CS_NOKEYCVT = 0x100;
public const int CS_OWNDC = 0x20;
public const int CS_PARENTDC = 0x80;
public const int CS_PUBLICCLASS = 0x4000;
public const int CS_SAVEBITS = 0x800;
public const int CS_VREDRAW = 0x1;
public const int CTLCOLOR_BTN = ;
public const int CTLCOLOR_DLG = ;
public const int CTLCOLOR_EDIT = ;
public const int CTLCOLOR_LISTBOX = ;
public const int CTLCOLOR_MAX = ;
public const int CTLCOLOR_MSGBOX = ;
public const int CTLCOLOR_SCROLLBAR = ;
public const int CTLCOLOR_STATIC = ;
public const int CW_USEDEFAULT = unchecked((int)0x80000000);
public const int DCX_CACHE = 0x2;
public const int DCX_CLIPCHILDREN = 0x8;
public const int DCX_CLIPSIBLINGS = 0x10;
public const int DCX_EXCLUDERGN = 0x40;
public const int DCX_EXCLUDEUPDATE = 0x100;
public const int DCX_INTERSECTRGN = 0x80;
public const int DCX_INTERSECTUPDATE = 0x200;
public const int DCX_LOCKWINDOWUPDATE = 0x400;
public const int DCX_NORECOMPUTE = 0x100000;
public const int DCX_NORESETATTRS = 0x4;
public const int DCX_PARENTCLIP = 0x20;
public const int DCX_VALIDATE = 0x200000;
public const int DCX_WINDOW = 0x1;
public const int DC_HASDEFID = 0x534;
public const int DDE_FACK = 0x8000;
public const int DDE_FACKREQ = 0x8000;
public const int DDE_FACKRESERVED = (~ (DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS));
public const int DDE_FADVRESERVED = (~ (DDE_FACKREQ | DDE_FDEFERUPD));
public const int DDE_FAPPSTATUS = 0xFF;
public const int DDE_FBUSY = 0x4000;
public const int DDE_FDATRESERVED = (~ (DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED));
public const int DDE_FDEFERUPD = 0x4000;
public const int DDE_FNOTPROCESSED = 0x0;
public const int DDE_FPOKRESERVED = (~ (DDE_FRELEASE));
public const int DDE_FRELEASE = 0x2000;
public const int DDE_FREQUESTED = 0x1000;
public const int DDL_ARCHIVE = 0x20;
public const int DDL_DIRECTORY = 0x10;
public const int DDL_DRIVES = 0x4000;
public const int DDL_EXCLUSIVE = 0x8000;
public const int DDL_HIDDEN = 0x2;
public const int DDL_POSTMSGS = 0x2000;
public const int DDL_READONLY = 0x1;
public const int DDL_READWRITE = 0x0;
public const int DDL_SYSTEM = 0x4;
public const int DESKTOP_CREATEMENU = 0x4;
public const int DESKTOP_CREATEWINDOW = 0x2;
public const int DESKTOP_ENUMERATE = 0x40;
public const int DESKTOP_HOOKCONTROL = 0x8;
public const int DESKTOP_JOURNALPLAYBACK = 0x20;
public const int DESKTOP_JOURNALRECORD = 0x10;
public const int DESKTOP_READOBJECTS = 0x1;
public const int DESKTOP_WRITEOBJECTS = 0x80;
public const int DLGC_BUTTON = 0x2000;
public const int DLGC_DEFPUSHBUTTON = 0x10;
public const int DLGC_HASSETSEL = 0x8;
public const int DLGC_RADIOBUTTON = 0x40;
public const int DLGC_STATIC = 0x100;
public const int DLGC_UNDEFPUSHBUTTON = 0x20;
public const int DLGC_WANTALLKEYS = 0x4;
public const int DLGC_WANTARROWS = 0x1;
public const int DLGC_WANTCHARS = 0x80;
public const int DLGC_WANTMESSAGE = 0x4;
public const int DLGC_WANTTAB = 0x2;
public const int DLGWINDOWEXTRA = ;
public const int DMLERR_ADVACKTIMEOUT = 0x4000;
public const int DMLERR_BUSY = 0x4001;
public const int DMLERR_DATAACKTIMEOUT = 0x4002;
public const int DMLERR_DLL_NOT_INITIALIZED = 0x4003;
public const int DMLERR_DLL_USAGE = 0x4004;
public const int DMLERR_EXECACKTIMEOUT = 0x4005;
public const int DMLERR_FIRST = 0x4000;
public const int DMLERR_INVALIDPARAMETER = 0x4006;
public const int DMLERR_LAST = 0x4011;
public const int DMLERR_LOW_MEMORY = 0x4007;
public const int DMLERR_MEMORY_ERROR = 0x4008;
public const int DMLERR_NOTPROCESSED = 0x4009;
public const int DMLERR_NO_CONV_ESTABLISHED = 0x400A;
public const int DMLERR_NO_ERROR = ;
public const int DMLERR_POKEACKTIMEOUT = 0x400B;
public const int DMLERR_POSTMSG_FAILED = 0x400C;
public const int DMLERR_REENTRANCY = 0x400D;
public const int DMLERR_SERVER_DIED = 0x400E;
public const int DMLERR_SYS_ERROR = 0x400F;
public const int DMLERR_UNADVACKTIMEOUT = 0x4010;
public const int DMLERR_UNFOUND_QUEUE_ID = 0x4011;
public const int DM_GETDEFID = WM_USER + ;
public const int DM_SETDEFID = WM_USER + ;
public const int DNS_FILTEROFF = 0x8;
public const int DNS_FILTERON = 0x4;
public const int DNS_REGISTER = 0x1;
public const int DNS_UNREGISTER = 0x2;
public const int DS_ABSALIGN = 0x1;
public const int DS_LOCALEDIT = 0x20;
public const int DS_MODALFRAME = 0x80;
public const int DS_NOIDLEMSG = 0x100;
public const int DS_SETFONT = 0x40;
public const int DS_SETFOREGROUND = 0x200;
public const int DS_SYSMODAL = 0x2;
public const int DT_BOTTOM = 0x8;
public const int DT_CALCRECT = 0x400;
public const int DT_CENTER = 0x1;
public const int DT_EDITCONTROL = 0x2000;
public const int DT_END_ELLIPSIS = 0x8000;
public const int DT_EXPANDTABS = 0x40;
public const int DT_EXTERNALLEADING = 0x200;
public const int DT_INTERNAL = 0x1000;
public const int DT_LEFT = 0x0;
public const int DT_MODIFYSTRING = 0x10000;
public const int DT_NOCLIP = 0x100;
public const int DT_NOPREFIX = 0x800;
public const int DT_PATH_ELLIPSIS = 0x4000;
public const int DT_RIGHT = 0x2;
public const int DT_RTLREADING = 0x20000;
public const int DT_SINGLELINE = 0x20;
public const int DT_TABSTOP = 0x80;
public const int DT_TOP = 0x0;
public const int DT_VCENTER = 0x4;
public const int DT_WORDBREAK = 0x10;
public const int DT_WORD_ELLIPSIS = 0x40000;
public const int DWL_DLGPROC = ;
public const int DWL_MSGRESULT = ;
public const int DWL_USER = ;
public const int EC_DISABLE = ST_BLOCKED;
public const int EC_ENABLEALL = ;
public const int EC_ENABLEONE = ST_BLOCKNEXT;
public const int EC_QUERYWAITING = ;
public const int EDGE_BUMP = (BDR_RAISEDOUTER | BDR_SUNKENINNER);
public const int EDGE_ETCHED = (BDR_SUNKENOUTER | BDR_RAISEDINNER);
public const int EDGE_RAISED = (BDR_RAISEDOUTER | BDR_RAISEDINNER);
public const int EDGE_SUNKEN = (BDR_SUNKENOUTER | BDR_SUNKENINNER);
public const int EM_CANPASTE = 0x432;
public const int EM_CANREDO = 0x455;
public const int EM_CANUNDO = 0xC6;
public const int EM_CHARFROMPOS = 0x427;
public const int EM_DISPLAYBAND = 0x433;
public const int EM_EMPTYUNDOBUFFER = 0xCD;
public const int EM_EXGETSEL = 0x434;
public const int EM_EXLIMITTEXT = 0x435;
public const int EM_EXLINEFROMCHAR = 0x436;
public const int EM_EXSETSEL = 0x437;
public const int EM_FINDTEXT = 0x438;
public const int EM_FINDTEXTEX = 0x44F;
public const int EM_FINDWORDBREAK = 0x44C;
public const int EM_FMTLINES = 0xC8;
public const int EM_FORMATRANGE = 0x439;
public const int EM_GETCHARFORMAT = 0x43A;
public const int EM_GETEVENTMASK = 0x43B;
public const int EM_GETFIRSTVISIBLELINE = 0xCE;
public const int EM_GETLIMITTEXT = 0x425;
public const int EM_GETLINE = 0xC4;
public const int EM_GETLINECOUNT = 0xBA;
public const int EM_GETMODIFY = 0xB8;
public const int EM_GETOLEINTERFACE = 0x43C;
public const int EM_GETOPTIONS = 0x44E;
public const int EM_GETPARAFORMAT = 0x43D;
public const int EM_GETPASSWORDCHAR = 0xD2;
public const int EM_GETRECT = 0xB2;
public const int EM_GETREDONAME = 0x457;
public const int EM_GETSEL = 0xB0;
public const int EM_GETSELTEXT = 0x43E;
public const int EM_GETTEXTMODE = 0x45A;
public const int EM_GETTEXTRANGE = 0x44B;
public const int EM_GETTHUMB = 0xBE;
public const int EM_GETUNDONAME = 0x456;
public const int EM_GETWORDBREAKPROC = 0xD1;
public const int EM_HIDESELECTION = 0x43F;
public const int EM_LIMITTEXT = 0xC5;
public const int EM_LINEFROMCHAR = 0xC9;
public const int EM_LINEINDEX = 0xBB;
public const int EM_LINELENGTH = 0xC1;
public const int EM_LINESCROLL = 0xB6;
public const int EM_PASTESPECIAL = 0x440;
public const int EM_POSFROMCHAR = 0x426;
public const int EM_REDO = 0x454;
public const int EM_REPLACESEL = 0xC2;
public const int EM_REQUESTRESIZE = 0x441;
public const int EM_SCROLL = 0xB5;
public const int EM_SCROLLCARET = 0xB7;
public const int EM_SELECTIONTYPE = 0x442;
public const int EM_SETBKGNDCOLOR = 0x443;
public const int EM_SETCHARFORMAT = 0x444;
public const int EM_SETEVENTMASK = 0x445;
public const int EM_SETMODIFY = 0xB9;
public const int EM_SETOLECALLBACK = 0x446;
public const int EM_SETOPTIONS = 0x44D;
public const int EM_SETPARAFORMAT = 0x447;
public const int EM_SETPASSWORDCHAR = 0xCC;
public const int EM_SETREADONLY = 0xCF;
public const int EM_SETRECT = 0xB3;
public const int EM_SETRECTNP = 0xB4;
public const int EM_SETSEL = 0xB1;
public const int EM_SETTABSTOPS = 0xCB;
public const int EM_SETTARGETDEVICE = 0x448;
public const int EM_SETTEXTMODE = 0x459;
public const int EM_SETUNDOLIMIT = 0x452;
public const int EM_SETWORDBREAKPROC = 0xD0;
public const int EM_STOPGROUPTYPING = 0x458;
public const int EM_STREAMIN = 0x449;
public const int EM_STREAMOUT = 0x44A;
public const int EM_UNDO = 0xC7;
public const int EN_CHANGE = 0x300;
public const int EN_ERRSPACE = 0x500;
public const int EN_HSCROLL = 0x601;
public const int EN_KILLFOCUS = 0x200;
public const int EN_MAXTEXT = 0x501;
public const int EN_SETFOCUS = 0x100;
public const int EN_UPDATE = 0x400;
public const int EN_VSCROLL = 0x602;
public const int ESB_DISABLE_BOTH = 0x3;
public const int ESB_DISABLE_DOWN = 0x2;
public const int ESB_DISABLE_LEFT = 0x1;
public const int ESB_DISABLE_LTUP = ESB_DISABLE_LEFT;
public const int ESB_DISABLE_RIGHT = 0x2;
public const int ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT;
public const int ESB_DISABLE_UP = 0x1;
public const int ESB_ENABLE_BOTH = 0x0;
public const int ES_AUTOHSCROLL = 0x80;
public const int ES_AUTOVSCROLL = 0x40;
public const int ES_CENTER = 0x1;
public const int ES_LEFT = 0x0;
public const int ES_LOWERCASE = 0x10;
public const int ES_MULTILINE = 0x4;
public const int ES_NOHIDESEL = 0x100;
public const int ES_OEMCONVERT = 0x400;
public const int ES_PASSWORD = 0x20;
public const int ES_READONLY = 0x800;
public const int ES_RIGHT = 0x2;
public const int ES_UPPERCASE = 0x8;
public const int ES_WANTRETURN = 0x1000;
public const int EWX_FORCE = ;
public const int EWX_LOGOFF = ;
public const int EWX_REBOOT = ;
public const int EWX_SHUTDOWN = ;
public const int FALT = 0x10;
public const int FCONTROL = 0x8;
public const int FNOINVERT = 0x2;
public const int FSHIFT = 0x4;
public const int FVIRTKEY = 0x1;
public const int GCL_CBCLSEXTRA = (-);
public const int GCL_CBWNDEXTRA = (-);
public const int GCL_HBRBACKGROUND = (-);
public const int GCL_HCURSOR = (-);
public const int GCL_HICON = (-);
public const int GCL_HMODULE = (-);
public const int GCL_MENUNAME = (-);
public const int GCL_STYLE = (-);
public const int GCL_WNDPROC = (-);
public const int GCW_ATOM = (-);
public const int GWL_EXSTYLE = (-);
public const int GWL_HINSTANCE = (-);
public const int GWL_HWNDPARENT = (-);
public const int GWL_ID = (-);
public const int GWL_STYLE = (-);
public const int GWL_USERDATA = (-);
public const int GWL_WNDPROC = (-);
public const int GW_CHILD = ;
public const int GW_HWNDFIRST = ;
public const int GW_HWNDLAST = ;
public const int GW_HWNDNEXT = ;
public const int GW_HWNDPREV = ;
public const int GW_MAX = ;
public const int GW_OWNER = ;
public const int HCBT_ACTIVATE = ;
public const int HCBT_CLICKSKIPPED = ;
public const int HCBT_CREATEWND = ;
public const int HCBT_DESTROYWND = ;
public const int HCBT_KEYSKIPPED = ;
public const int HCBT_MINMAX = ;
public const int HCBT_MOVESIZE = ;
public const int HCBT_QS = ;
public const int HCBT_SETFOCUS = ;
public const int HCBT_SYSCOMMAND = ;
public const int HC_ACTION = ;
public const int HC_GETNEXT = ;
public const int HC_NOREM = HC_NOREMOVE;
public const int HC_NOREMOVE = ;
public const int HC_SKIP = ;
public const int HC_SYSMODALOFF = ;
public const int HC_SYSMODALON = ;
public const int HDATA_APPOWNED = 0x1;
public const int HELP_COMMAND = 0x102;
public const int HELP_CONTENTS = 0x3;
public const int HELP_CONTEXT = 0x1;
public const int HELP_CONTEXTPOPUP = 0x8;
public const int HELP_FORCEFILE = 0x9;
public const int HELP_HELPONHELP = 0x4;
public const int HELP_INDEX = 0x3;
public const int HELP_KEY = 0x101;
public const int HELP_MULTIKEY = 0x201;
public const int HELP_PARTIALKEY = 0x105;
public const int HELP_QUIT = 0x2;
public const int HELP_SETCONTENTS = 0x5;
public const int HELP_SETINDEX = 0x5;
public const int HELP_SETWINPOS = 0x203;
public const int HIDE_WINDOW = ;
public const int HKL_NEXT = ;
public const int HKL_PREV = ;
public const int HSHELL_ACTIVATESHELLWINDOW = ;
public const int HSHELL_WINDOWCREATED = ;
public const int HSHELL_WINDOWDESTROYED = ;
public const int HTBORDER = ;
public const int HTBOTTOM = ;
public const int HTBOTTOMLEFT = ;
public const int HTBOTTOMRIGHT = ;
public const int HTCAPTION = ;
public const int HTCLIENT = ;
public const int HTERROR = (-);
public const int HTGROWBOX = ;
public const int HTHSCROLL = ;
public const int HTLEFT = ;
public const int HTMAXBUTTON = ;
public const int HTMENU = ;
public const int HTMINBUTTON = ;
public const int HTNOWHERE = ;
public const int HTREDUCE = HTMINBUTTON;
public const int HTRIGHT = ;
public const int HTSIZE = HTGROWBOX;
public const int HTSIZEFIRST = HTLEFT;
public const int HTSIZELAST = HTBOTTOMRIGHT;
public const int HTSYSMENU = ;
public const int HTTOP = ;
public const int HTTOPLEFT = ;
public const int HTTOPRIGHT = ;
public const int HTTRANSPARENT = (-);
public const int HTVSCROLL = ;
public const int HTZOOM = HTMAXBUTTON;
public HWND HWND_BOTTOM
{
get { return (HWND) ; }
}
public HWND HWND_BROADCAST
{
get { return (HWND) 0xFFFF; }
}
public HWND HWND_DESKTOP
{
get { return (HWND) ; }
}
public HWND HWND_TOP
{
get { return (HWND) ; }
}
public HWND HWND_NOTOPMOST
{
get { return (HWND) (-); }
}
public HWND HWND_TOPMOST
{
get { return (HWND) (-); }
}
public const int IDABORT = ;
public const int IDCANCEL = ;
public const int IDC_APPSTARTING = ;
public const int IDC_ARROW = ;
public const int IDC_CROSS = ;
public const int IDC_IBEAM = ;
public const int IDC_ICON = ;
public const int IDC_NO = ;
public const int IDC_SIZE = ;
public const int IDC_SIZEALL = ;
public const int IDC_SIZENESW = ;
public const int IDC_SIZENS = ;
public const int IDC_SIZENWSE = ;
public const int IDC_SIZEWE = ;
public const int IDC_UPARROW = ;
public const int IDC_WAIT = ;
public const int IDHOT_SNAPDESKTOP = (-);
public const int IDHOT_SNAPWINDOW = (-);
public const int IDIGNORE = ;
public const int IDI_APPLICATION = ;
public const int IDI_ASTERISK = ;
public const int IDI_EXCLAMATION = ;
public const int IDI_HAND = ;
public const int IDI_QUESTION = ;
public const int IDNO = ;
public const int IDOK = ;
public const int IDRETRY = ;
public const int IDYES = ;
public const int INVALID_HANDLE_VALUE = -;
public const int KEYEVENTF_EXTENDEDKEY = 0x1;
public const int KEYEVENTF_KEYUP = 0x2;
public const int KF_ALTDOWN = 0x2000;
public const int KF_DLGMODE = 0x800;
public const int KF_EXTENDED = 0x100;
public const int KF_MENUMODE = 0x1000;
public const int KF_REPEAT = 0x4000;
public const int KF_UP = 0x8000;
public const int KLF_ACTIVATE = 0x1;
public const int KLF_REORDER = 0x8;
public const int KLF_SUBSTITUTE_OK = 0x2;
public const int KLF_UNLOADPREVIOUS = 0x4;
public const int KL_NAMELENGTH = ;
public const int LBN_DBLCLK = ;
public const int LBN_ERRSPACE = (-);
public const int LBN_KILLFOCUS = ;
public const int LBN_SELCANCEL = ;
public const int LBN_SELCHANGE = ;
public const int LBN_SETFOCUS = ;
public const int LBS_DISABLENOSCROLL = 0x1000;
public const int LBS_EXTENDEDSEL = 0x800;
public const int LBS_HASSTRINGS = 0x40;
public const int LBS_MULTICOLUMN = 0x200;
public const int LBS_MULTIPLESEL = 0x8;
public const int LBS_NODATA = 0x2000;
public const int LBS_NOINTEGRALHEIGHT = 0x100;
public const int LBS_NOREDRAW = 0x4;
public const int LBS_NOTIFY = 0x1;
public const int LBS_OWNERDRAWFIXED = 0x10;
public const int LBS_OWNERDRAWVARIABLE = 0x20;
public const int LBS_SORT = 0x2;
public const int LBS_STANDARD = (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER);
public const int LBS_USETABSTOPS = 0x80;
public const int LBS_WANTKEYBOARDINPUT = 0x400;
public const int LB_ADDFILE = 0x196;
public const int LB_ADDSTRING = 0x180;
public const int LB_CTLCODE = ;
public const int LB_DELETESTRING = 0x182;
public const int LB_DIR = 0x18D;
public const int LB_ERR = (-);
public const int LB_ERRSPACE = (-);
public const int LB_FINDSTRING = 0x18F;
public const int LB_FINDSTRINGEXACT = 0x1A2;
public const int LB_GETANCHORINDEX = 0x19D;
public const int LB_GETCARETINDEX = 0x19F;
public const int LB_GETCOUNT = 0x18B;
public const int LB_GETCURSEL = 0x188;
public const int LB_GETHORIZONTALEXTENT = 0x193;
public const int LB_GETITEMDATA = 0x199;
public const int LB_GETITEMHEIGHT = 0x1A1;
public const int LB_GETITEMRECT = 0x198;
public const int LB_GETLOCALE = 0x1A6;
public const int LB_GETSEL = 0x187;
public const int LB_GETSELCOUNT = 0x190;
public const int LB_GETSELITEMS = 0x191;
public const int LB_GETTEXT = 0x189;
public const int LB_GETTEXTLEN = 0x18A;
public const int LB_GETTOPINDEX = 0x18E;
public const int LB_INSERTSTRING = 0x181;
public const int LB_MSGMAX = 0x1A8;
public const int LB_OKAY = ;
public const int LB_RESETCONTENT = 0x184;
public const int LB_SELECTSTRING = 0x18C;
public const int LB_SELITEMRANGE = 0x19B;
public const int LB_SELITEMRANGEEX = 0x183;
public const int LB_SETANCHORINDEX = 0x19C;
public const int LB_SETCARETINDEX = 0x19E;
public const int LB_SETCOLUMNWIDTH = 0x195;
public const int LB_SETCOUNT = 0x1A7;
public const int LB_SETCURSEL = 0x186;
public const int LB_SETHORIZONTALEXTENT = 0x194;
public const int LB_SETITEMDATA = 0x19A;
public const int LB_SETITEMHEIGHT = 0x1A0;
public const int LB_SETLOCALE = 0x1A5;
public const int LB_SETSEL = 0x185;
public const int LB_SETTABSTOPS = 0x192;
public const int LB_SETTOPINDEX = 0x197;
public const int MAX_MONITORS = ;
public const int MA_ACTIVATE = ;
public const int MA_ACTIVATEANDEAT = ;
public const int MA_NOACTIVATE = ;
public const int MA_NOACTIVATEANDEAT = ;
public const int MB_ABORTRETRYIGNORE = 0x2;
public const int MB_APPLMODAL = 0x0;
public const int MB_DEFAULT_DESKTOP_ONLY = 0x20000;
public const int MB_DEFBUTTON1 = 0x0;
public const int MB_DEFBUTTON2 = 0x100;
public const int MB_DEFBUTTON3 = 0x200;
public const int MB_DEFMASK = 0xF00;
public const int MB_ICONASTERISK = 0x40;
public const int MB_ICONEXCLAMATION = 0x30;
public const int MB_ICONHAND = 0x10;
public const int MB_ICONINFORMATION = MB_ICONASTERISK;
public const int MB_ICONMASK = 0xF0;
public const int MB_ICONQUESTION = 0x20;
public const int MB_ICONSTOP = MB_ICONHAND;
public const int MB_MISCMASK = 0xC000;
public const int MB_MODEMASK = 0x3000;
public const int MB_NOFOCUS = 0x8000;
public const int MB_OK = 0x0;
public const int MB_OKCANCEL = 0x1;
public const int MB_RETRYCANCEL = 0x5;
public const int MB_SETFOREGROUND = 0x10000;
public const int MB_SYSTEMMODAL = 0x1000;
public const int MB_TASKMODAL = 0x2000;
public const int MB_TYPEMASK = 0xF;
public const int MB_YESNO = 0x4;
public const int MB_YESNOCANCEL = 0x3;
public const int MDIS_ALLCHILDSTYLES = 0x1;
public const int MDITILE_HORIZONTAL = 0x1;
public const int MDITILE_SKIPDISABLED = 0x2;
public const int MDITILE_VERTICAL = 0x0;
public const int MF_APPEND = 0x100;
public const int MF_BITMAP = 0x4;
public const int MF_BYCOMMAND = 0x0;
public const int MF_BYPOSITION = 0x400;
public const int MF_CALLBACKS = 0x8000000;
public const int MF_CHANGE = 0x80;
public const int MF_CHECKED = 0x8;
public const int MF_CONV = 0x40000000;
public const int MF_DELETE = 0x200;
public const int MF_DISABLED = 0x2;
public const int MF_ENABLED = 0x0;
public const int MF_END = 0x80;
public const int MF_ERRORS = 0x10000000;
public const int MF_GRAYED = 0x1;
public const int MF_HELP = 0x4000;
public const int MF_HILITE = 0x80;
public const int MF_HSZ_INFO = 0x1000000;
public const int MF_INSERT = 0x0;
public const int MF_LINKS = 0x20000000;
public const int MF_MASK = unchecked((int)0xFF000000);
public const int MF_MENUBARBREAK = 0x20;
public const int MF_MENUBREAK = 0x40;
public const int MF_MOUSESELECT = 0x8000;
public const int MF_OWNERDRAW = 0x100;
public const int MF_POPUP = 0x10;
public const int MF_POSTMSGS = 0x4000000;
public const int MF_REMOVE = 0x1000;
public const int MF_SENDMSGS = 0x2000000;
public const int MF_SEPARATOR = 0x800;
public const int MF_STRING = 0x0;
public const int MF_SYSMENU = 0x2000;
public const int MF_UNCHECKED = 0x0;
public const int MF_UNHILITE = 0x0;
public const int MF_USECHECKBITMAPS = 0x200;
public const int MH_CLEANUP = ;
public const int MH_CREATE = ;
public const int MH_DELETE = ;
public const int MH_KEEP = ;
public const int MK_CONTROL = 0x8;
public const int MK_LBUTTON = 0x1;
public const int MK_MBUTTON = 0x10;
public const int MK_RBUTTON = 0x2;
public const int MK_SHIFT = 0x4;
public const int MOD_ALT = 0x1;
public const int MOD_CONTROL = 0x2;
public const int MOD_SHIFT = 0x4;
public const int MOUSEEVENTF_ABSOLUTE = 0x8000;
public const int MOUSEEVENTF_LEFTDOWN = 0x2;
public const int MOUSEEVENTF_LEFTUP = 0x4;
public const int MOUSEEVENTF_MIDDLEDOWN = 0x20;
public const int MOUSEEVENTF_MIDDLEUP = 0x40;
public const int MOUSEEVENTF_MOVE = 0x1;
public const int MOUSEEVENTF_RIGHTDOWN = 0x8;
public const int MOUSEEVENTF_RIGHTUP = 0x10;
public const int MSGF_DDEMGR = 0x8001;
public const int MSGF_DIALOGBOX = ;
public const int MSGF_MAINLOOP = ;
public const int MSGF_MAX = ;
public const int MSGF_MENU = ;
public const int MSGF_MESSAGEBOX = ;
public const int MSGF_MOVE = ;
public const int MSGF_NEXTWINDOW = ;
public const int MSGF_SCROLLBAR = ;
public const int MSGF_SIZE = ;
public const int MSGF_USER = ;
public const int OBM_BTNCORNERS = ;
public const int OBM_BTSIZE = ;
public const int OBM_CHECK = ;
public const int OBM_CHECKBOXES = ;
public const int OBM_CLOSE = ;
public const int OBM_COMBO = ;
public const int OBM_DNARROW = ;
public const int OBM_DNARROWD = ;
public const int OBM_DNARROWI = ;
public const int OBM_LFARROW = ;
public const int OBM_LFARROWD = ;
public const int OBM_LFARROWI = ;
public const int OBM_MNARROW = ;
public const int OBM_OLD_CLOSE = ;
public const int OBM_OLD_DNARROW = ;
public const int OBM_OLD_LFARROW = ;
public const int OBM_OLD_REDUCE = ;
public const int OBM_OLD_RESTORE = ;
public const int OBM_OLD_RGARROW = ;
public const int OBM_OLD_UPARROW = ;
public const int OBM_OLD_ZOOM = ;
public const int OBM_REDUCE = ;
public const int OBM_REDUCED = ;
public const int OBM_RESTORE = ;
public const int OBM_RESTORED = ;
public const int OBM_RGARROW = ;
public const int OBM_RGARROWD = ;
public const int OBM_RGARROWI = ;
public const int OBM_SIZE = ;
public const int OBM_UPARROW = ;
public const int OBM_UPARROWD = ;
public const int OBM_UPARROWI = ;
public const int OBM_ZOOM = ;
public const int OBM_ZOOMD = ;
public const int OCR_CROSS = ;
public const int OCR_IBEAM = ;
public const int OCR_ICOCUR = ;
public const int OCR_ICON = ;
public const int OCR_NO = ;
public const int OCR_NORMAL = ;
public const int OCR_SIZE = ;
public const int OCR_SIZEALL = ;
public const int OCR_SIZENESW = ;
public const int OCR_SIZENS = ;
public const int OCR_SIZENWSE = ;
public const int OCR_SIZEWE = ;
public const int OCR_UP = ;
public const int OCR_WAIT = ;
public const int ODA_DRAWENTIRE = 0x1;
public const int ODA_FOCUS = 0x4;
public const int ODA_SELECT = 0x2;
public const int ODS_CHECKED = 0x8;
public const int ODS_DISABLED = 0x4;
public const int ODS_FOCUS = 0x10;
public const int ODS_GRAYED = 0x2;
public const int ODS_SELECTED = 0x1;
public const int ODT_BUTTON = ;
public const int ODT_COMBOBOX = ;
public const int ODT_LISTBOX = ;
public const int ODT_MENU = ;
public const int OIC_BANG = ;
public const int OIC_HAND = ;
public const int OIC_NOTE = ;
public const int OIC_QUES = ;
public const int OIC_SAMPLE = ;
public const int ORD_LANGDRIVER = ;
public const int PAGE_EXECUTE = 0x10;
public const int PAGE_EXECUTE_READ = 0x20;
public const int PAGE_EXECUTE_READWRITE = 0x40;
public const int PAGE_EXECUTE_WRITECOPY = 0x80;
public const int PAGE_GUARD = 0x100;
public const int PAGE_NOACCESS = 0x1;
public const int PAGE_NOCACHE = 0x200;
public const int PAGE_READONLY = 0x2;
public const int PAGE_READWRITE = 0x4;
public const int PAGE_WRITECOPY = 0x8;
public const int PM_NOREMOVE = 0x0;
public const int PM_NOYIELD = 0x2;
public const int PM_REMOVE = 0x1;
public const int PWR_CRITICALRESUME = ;
public const int PWR_FAIL = (-);
public const int PWR_OK = ;
public const int PWR_SUSPENDREQUEST = ;
public const int PWR_SUSPENDRESUME = ;
public const int QID_SYNC = 0xFFFF;
public const int QS_ALLEVENTS = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY);
public const int QS_ALLINPUT = (QS_SENDMESSAGE | QS_PAINT | QS_TIMER | QS_POSTMESSAGE | QS_MOUSEBUTTON | QS_MOUSEMOVE | QS_HOTKEY | QS_KEY);
public const int QS_HOTKEY = 0x80;
public const int QS_INPUT = (QS_MOUSE | QS_KEY);
public const int QS_KEY = 0x1;
public const int QS_MOUSE = (QS_MOUSEMOVE | QS_MOUSEBUTTON);
public const int QS_MOUSEBUTTON = 0x4;
public const int QS_MOUSEMOVE = 0x2;
public const int QS_PAINT = 0x20;
public const int QS_POSTMESSAGE = 0x8;
public const int QS_SENDMESSAGE = 0x40;
public const int QS_TIMER = 0x10;
public const int RDW_ALLCHILDREN = 0x80;
public const int RDW_ERASE = 0x4;
public const int RDW_ERASENOW = 0x200;
public const int RDW_FRAME = 0x400;
public const int RDW_INTERNALPAINT = 0x2;
public const int RDW_INVALIDATE = 0x1;
public const int RDW_NOCHILDREN = 0x40;
public const int RDW_NOERASE = 0x20;
public const int RDW_NOFRAME = 0x800;
public const int RDW_NOINTERNALPAINT = 0x10;
public const int RDW_UPDATENOW = 0x100;
public const int RDW_VALIDATE = 0x8;
public const int READ = ;
public const int READ_WRITE = ;
public const int SBM_ENABLE_ARROWS = 0xE4;
public const int SBM_GETPOS = 0xE1;
public const int SBM_GETRANGE = 0xE3;
public const int SBM_SETPOS = 0xE0;
public const int SBM_SETRANGE = 0xE2;
public const int SBM_SETRANGEREDRAW = 0xE6;
public const int SBS_BOTTOMALIGN = 0x4;
public const int SBS_HORZ = 0x0;
public const int SBS_LEFTALIGN = 0x2;
public const int SBS_RIGHTALIGN = 0x4;
public const int SBS_SIZEBOX = 0x8;
public const int SBS_SIZEBOXBOTTOMRIGHTALIGN = 0x4;
public const int SBS_SIZEBOXTOPLEFTALIGN = 0x2;
public const int SBS_TOPALIGN = 0x2;
public const int SBS_VERT = 0x1;
public const int SB_BOTH = ;
public const int SB_BOTTOM = ;
public const int SB_CTL = ;
public const int SB_ENDSCROLL = ;
public const int SB_HORZ = ;
public const int SB_LEFT = ;
public const int SB_LINEDOWN = ;
public const int SB_LINELEFT = ;
public const int SB_LINERIGHT = ;
public const int SB_LINEUP = ;
public const int SB_PAGEDOWN = ;
public const int SB_PAGELEFT = ;
public const int SB_PAGERIGHT = ;
public const int SB_PAGEUP = ;
public const int SB_RIGHT = ;
public const int SB_THUMBPOSITION = ;
public const int SB_THUMBTRACK = ;
public const int SB_TOP = ;
public const int SB_VERT = ;
public const int SC_ARRANGE = 0xF110;
public const int SC_CLOSE = 0xF060;
public const int SC_HOTKEY = 0xF150;
public const int SC_HSCROLL = 0xF080;
public const int SC_ICON = SC_MINIMIZE;
public const int SC_KEYMENU = 0xF100;
public const int SC_MAXIMIZE = 0xF030;
public const int SC_MINIMIZE = 0xF020;
public const int SC_MOUSEMENU = 0xF090;
public const int SC_MOVE = 0xF010;
public const int SC_NEXTWINDOW = 0xF040;
public const int SC_PREVWINDOW = 0xF050;
public const int SC_RESTORE = 0xF120;
public const int SC_SCREENSAVE = 0xF140;
public const int SC_SIZE = 0xF000;
public const int SC_TASKLIST = 0xF130;
public const int SC_VSCROLL = 0xF070;
public const int SC_ZOOM = SC_MAXIMIZE;
public const int SHOW_FULLSCREEN = ;
public const int SHOW_ICONWINDOW = ;
public const int SHOW_OPENNOACTIVATE = ;
public const int SHOW_OPENWINDOW = ;
public const int SIZEFULLSCREEN = SIZE_MAXIMIZED;
public const int SIZEICONIC = SIZE_MINIMIZED;
public const int SIZENORMAL = SIZE_RESTORED;
public const int SIZEZOOMHIDE = SIZE_MAXHIDE;
public const int SIZEZOOMSHOW = SIZE_MAXSHOW;
public const int SIZE_MAXHIDE = ;
public const int SIZE_MAXIMIZED = ;
public const int SIZE_MAXSHOW = ;
public const int SIZE_MINIMIZED = ;
public const int SIZE_RESTORED = ;
public const int SMTO_ABORTIFHUNG = 0x2;
public const int SMTO_BLOCK = 0x1;
public const int SMTO_NORMAL = 0x0;
public const int SM_CMETRICS = ;
public const int SM_CMOUSEBUTTONS = ;
public const int SM_CXBORDER = ;
public const int SM_CXCURSOR = ;
public const int SM_CXDLGFRAME = ;
public const int SM_CXDOUBLECLK = ;
public const int SM_CXFIXEDFRAME = SM_CXDLGFRAME;
public const int SM_CXFRAME = ;
public const int SM_CXFULLSCREEN = ;
public const int SM_CXHSCROLL = ;
public const int SM_CXHTHUMB = ;
public const int SM_CXICON = ;
public const int SM_CXICONSPACING = ;
public const int SM_CXMIN = ;
public const int SM_CXMINTRACK = ;
public const int SM_CXSCREEN = ;
public const int SM_CXSIZE = ;
public const int SM_CXSIZEFRAME = SM_CXFRAME;
public const int SM_CXVSCROLL = ;
public const int SM_CYBORDER = ;
public const int SM_CYCAPTION = ;
public const int SM_CYCURSOR = ;
public const int SM_CYDLGFRAME = ;
public const int SM_CYDOUBLECLK = ;
public const int SM_CYFIXEDFRAME = SM_CYDLGFRAME;
public const int SM_CYFRAME = ;
public const int SM_CYFULLSCREEN = ;
public const int SM_CYHSCROLL = ;
public const int SM_CYICON = ;
public const int SM_CYICONSPACING = ;
public const int SM_CYKANJIWINDOW = ;
public const int SM_CYMENU = ;
public const int SM_CYMIN = ;
public const int SM_CYMINTRACK = ;
public const int SM_CYSCREEN = ;
public const int SM_CYSIZE = ;
public const int SM_CYSIZEFRAME = SM_CYFRAME;
public const int SM_CYVSCROLL = ;
public const int SM_CYVTHUMB = ;
public const int SM_DBCSENABLED = ;
public const int SM_DEBUG = ;
public const int SM_MENUDROPALIGNMENT = ;
public const int SM_MOUSEPRESENT = ;
public const int SM_PENWINDOWS = ;
public const int SM_RESERVED1 = ;
public const int SM_RESERVED2 = ;
public const int SM_RESERVED3 = ;
public const int SM_RESERVED4 = ;
public const int SM_SWAPBUTTON = ;
public const int SPIF_SENDWININICHANGE = 0x2;
public const int SPIF_UPDATEINIFILE = 0x1;
public const int SPI_GETACCESSTIMEOUT = ;
public const int SPI_GETANIMATION = ;
public const int SPI_GETBEEP = ;
public const int SPI_GETBORDER = ;
public const int SPI_GETDEFAULTINPUTLANG = ;
public const int SPI_GETDRAGFULLWINDOWS = ;
public const int SPI_GETFASTTASKSWITCH = ;
public const int SPI_GETFILTERKEYS = ;
public const int SPI_GETFONTSMOOTHING = ;
public const int SPI_GETGRIDGRANULARITY = ;
public const int SPI_GETHIGHCONTRAST = ;
public const int SPI_GETICONMETRICS = ;
public const int SPI_GETICONTITLELOGFONT = ;
public const int SPI_GETICONTITLEWRAP = ;
public const int SPI_GETKEYBOARDDELAY = ;
public const int SPI_GETKEYBOARDPREF = ;
public const int SPI_GETKEYBOARDSPEED = ;
public const int SPI_GETLOWPOWERACTIVE = ;
public const int SPI_GETLOWPOWERTIMEOUT = ;
public const int SPI_GETMENUDROPALIGNMENT = ;
public const int SPI_GETMINIMIZEDMETRICS = ;
public const int SPI_GETMOUSE = ;
public const int SPI_GETMOUSEKEYS = ;
public const int SPI_GETMOUSETRAILS = ;
public const int SPI_GETNONCLIENTMETRICS = ;
public const int SPI_GETPOWEROFFACTIVE = ;
public const int SPI_GETPOWEROFFTIMEOUT = ;
public const int SPI_GETSCREENREADER = ;
public const int SPI_GETSCREENSAVEACTIVE = ;
public const int SPI_GETSCREENSAVETIMEOUT = ;
public const int SPI_GETSERIALKEYS = ;
public const int SPI_GETSHOWSOUNDS = ;
public const int SPI_GETSOUNDSENTRY = ;
public const int SPI_GETSTICKYKEYS = ;
public const int SPI_GETTOGGLEKEYS = ;
public const int SPI_GETWINDOWSEXTENSION = ;
public const int SPI_GETWORKAREA = ;
public const int SPI_ICONHORIZONTALSPACING = ;
public const int SPI_ICONVERTICALSPACING = ;
public const int SPI_LANGDRIVER = ;
public const int SPI_SCREENSAVERRUNNING = ;
public const int SPI_SETACCESSTIMEOUT = ;
public const int SPI_SETANIMATION = ;
public const int SPI_SETBEEP = ;
public const int SPI_SETBORDER = ;
public const int SPI_SETCURSORS = ;
public const int SPI_SETDEFAULTINPUTLANG = ;
public const int SPI_SETDESKPATTERN = ;
public const int SPI_SETDESKWALLPAPER = ;
public const int SPI_SETDOUBLECLICKTIME = ;
public const int SPI_SETDOUBLECLKHEIGHT = ;
public const int SPI_SETDOUBLECLKWIDTH = ;
public const int SPI_SETDRAGFULLWINDOWS = ;
public const int SPI_SETDRAGHEIGHT = ;
public const int SPI_SETDRAGWIDTH = ;
public const int SPI_SETFASTTASKSWITCH = ;
public const int SPI_SETFILTERKEYS = ;
public const int SPI_SETFONTSMOOTHING = ;
public const int SPI_SETGRIDGRANULARITY = ;
public const int SPI_SETHANDHELD = ;
public const int SPI_SETHIGHCONTRAST = ;
public const int SPI_SETICONMETRICS = ;
public const int SPI_SETICONS = ;
public const int SPI_SETICONTITLELOGFONT = ;
public const int SPI_SETICONTITLEWRAP = ;
public const int SPI_SETKEYBOARDDELAY = ;
public const int SPI_SETKEYBOARDPREF = ;
public const int SPI_SETKEYBOARDSPEED = ;
public const int SPI_SETLANGTOGGLE = ;
public const int SPI_SETLOWPOWERACTIVE = ;
public const int SPI_SETLOWPOWERTIMEOUT = ;
public const int SPI_SETMENUDROPALIGNMENT = ;
public const int SPI_SETMINIMIZEDMETRICS = ;
public const int SPI_SETMOUSE = ;
public const int SPI_SETMOUSEBUTTONSWAP = ;
public const int SPI_SETMOUSEKEYS = ;
public const int SPI_SETMOUSETRAILS = ;
public const int SPI_SETNONCLIENTMETRICS = ;
public const int SPI_SETPENWINDOWS = ;
public const int SPI_SETPOWEROFFACTIVE = ;
public const int SPI_SETPOWEROFFTIMEOUT = ;
public const int SPI_SETSCREENREADER = ;
public const int SPI_SETSCREENSAVEACTIVE = ;
public const int SPI_SETSCREENSAVETIMEOUT = ;
public const int SPI_SETSERIALKEYS = ;
public const int SPI_SETSHOWSOUNDS = ;
public const int SPI_SETSOUNDSENTRY = ;
public const int SPI_SETSTICKYKEYS = ;
public const int SPI_SETTOGGLEKEYS = ;
public const int SPI_SETWORKAREA = ;
public const int SS_BLACKFRAME = 0x7;
public const int SS_BLACKRECT = 0x4;
public const int SS_CENTER = 0x1;
public const int SS_GRAYFRAME = 0x8;
public const int SS_GRAYRECT = 0x5;
public const int SS_ICON = 0x3;
public const int SS_LEFT = 0x0;
public const int SS_LEFTNOWORDWRAP = 0xC;
public const int SS_NOPREFIX = 0x80;
public const int SS_RIGHT = 0x2;
public const int SS_SIMPLE = 0xB;
public const int SS_USERITEM = 0xA;
public const int SS_WHITEFRAME = 0x9;
public const int SS_WHITERECT = 0x6;
public const int STM_GETICON = 0x171;
public const int STM_MSGMAX = 0x172;
public const int STM_SETICON = 0x170;
public const int ST_ADVISE = 0x2;
public const int ST_BEGINSWP = ;
public const int ST_BLOCKED = 0x8;
public const int ST_BLOCKNEXT = 0x80;
public const int ST_CLIENT = 0x10;
public const int ST_CONNECTED = 0x1;
public const int ST_ENDSWP = ;
public const int ST_INLIST = 0x40;
public const int ST_ISLOCAL = 0x4;
public const int ST_ISSELF = 0x100;
public const int ST_TERMINATED = 0x20;
public const int SWP_DRAWFRAME = SWP_FRAMECHANGED;
public const int SWP_FRAMECHANGED = 0x20;
public const int SWP_HIDEWINDOW = 0x80;
public const int SWP_NOACTIVATE = 0x10;
public const int SWP_NOCOPYBITS = 0x100;
public const int SWP_NOMOVE = 0x2;
public const int SWP_NOOWNERZORDER = 0x200;
public const int SWP_NOREDRAW = 0x8;
public const int SWP_NOREPOSITION = SWP_NOOWNERZORDER;
public const int SWP_NOSIZE = 0x1;
public const int SWP_NOZORDER = 0x4;
public const int SWP_SHOWWINDOW = 0x40;
public const int SW_ERASE = 0x4;
public const int SW_HIDE = ;
public const int SW_INVALIDATE = 0x2;
public const int SW_MAX = ;
public const int SW_MAXIMIZE = ;
public const int SW_MINIMIZE = ;
public const int SW_NORMAL = ;
public const int SW_OTHERUNZOOM = ;
public const int SW_OTHERZOOM = ;
public const int SW_PARENTCLOSING = ;
public const int SW_PARENTOPENING = ;
public const int SW_RESTORE = ;
public const int SW_SCROLLCHILDREN = 0x1;
public const int SW_SHOW = ;
public const int SW_SHOWDEFAULT = ;
public const int SW_SHOWMAXIMIZED = ;
public const int SW_SHOWMINIMIZED = ;
public const int SW_SHOWMINNOACTIVE = ;
public const int SW_SHOWNA = ;
public const int SW_SHOWNOACTIVATE = ;
public const int SW_SHOWNORMAL = ;
public const int TIMEOUT_ASYNC = 0xFFFF;
public const int TPM_CENTERALIGN = 0x4;
public const int TPM_LEFTALIGN = 0x0;
public const int TPM_LEFTBUTTON = 0x0;
public const int TPM_RIGHTALIGN = 0x8;
public const int TPM_RIGHTBUTTON = 0x2;
public const int VK_ADD = 0x6B;
public const int VK_ATTN = 0xF6;
public const int VK_BACK = 0x8;
public const int VK_CANCEL = 0x3;
public const int VK_CAPITAL = 0x14;
public const int VK_CLEAR = 0xC;
public const int VK_CONTROL = 0x11;
public const int VK_CRSEL = 0xF7;
public const int VK_DECIMAL = 0x6E;
public const int VK_DELETE = 0x2E;
public const int VK_DIVIDE = 0x6F;
public const int VK_DOWN = 0x28;
public const int VK_END = 0x23;
public const int VK_EREOF = 0xF9;
public const int VK_ESCAPE = 0x1B;
public const int VK_EXECUTE = 0x2B;
public const int VK_EXSEL = 0xF8;
public const int VK_F1 = 0x70;
public const int VK_F10 = 0x79;
public const int VK_F11 = 0x7A;
public const int VK_F12 = 0x7B;
public const int VK_F13 = 0x7C;
public const int VK_F14 = 0x7D;
public const int VK_F15 = 0x7E;
public const int VK_F16 = 0x7F;
public const int VK_F17 = 0x80;
public const int VK_F18 = 0x81;
public const int VK_F19 = 0x82;
public const int VK_F2 = 0x71;
public const int VK_F20 = 0x83;
public const int VK_F21 = 0x84;
public const int VK_F22 = 0x85;
public const int VK_F23 = 0x86;
public const int VK_F24 = 0x87;
public const int VK_F3 = 0x72;
public const int VK_F4 = 0x73;
public const int VK_F5 = 0x74;
public const int VK_F6 = 0x75;
public const int VK_F7 = 0x76;
public const int VK_F8 = 0x77;
public const int VK_F9 = 0x78;
public const int VK_HELP = 0x2F;
public const int VK_HOME = 0x24;
public const int VK_INSERT = 0x2D;
public const int VK_LBUTTON = 0x1;
public const int VK_LCONTROL = 0xA2;
public const int VK_LEFT = 0x25;
public const int VK_LMENU = 0xA4;
public const int VK_LSHIFT = 0xA0;
public const int VK_MBUTTON = 0x4;
public const int VK_MENU = 0x12;
public const int VK_MULTIPLY = 0x6A;
public const int VK_NEXT = 0x22;
public const int VK_NONAME = 0xFC;
public const int VK_NUMLOCK = 0x90;
public const int VK_NUMPAD0 = 0x60;
public const int VK_NUMPAD1 = 0x61;
public const int VK_NUMPAD2 = 0x62;
public const int VK_NUMPAD3 = 0x63;
public const int VK_NUMPAD4 = 0x64;
public const int VK_NUMPAD5 = 0x65;
public const int VK_NUMPAD6 = 0x66;
public const int VK_NUMPAD7 = 0x67;
public const int VK_NUMPAD8 = 0x68;
public const int VK_NUMPAD9 = 0x69;
public const int VK_OEM_CLEAR = 0xFE;
public const int VK_PA1 = 0xFD;
public const int VK_PAUSE = 0x13;
public const int VK_PLAY = 0xFA;
public const int VK_PRINT = 0x2A;
public const int VK_PRIOR = 0x21;
public const int VK_RBUTTON = 0x2;
public const int VK_RCONTROL = 0xA3;
public const int VK_RETURN = 0xD;
public const int VK_RIGHT = 0x27;
public const int VK_RMENU = 0xA5;
public const int VK_RSHIFT = 0xA1;
public const int VK_SCROLL = 0x91;
public const int VK_SELECT = 0x29;
public const int VK_SEPARATOR = 0x6C;
public const int VK_SHIFT = 0x10;
public const int VK_SNAPSHOT = 0x2C;
public const int VK_SPACE = 0x20;
public const int VK_SUBTRACT = 0x6D;
public const int VK_TAB = 0x9;
public const int VK_UP = 0x26;
public const int VK_ZOOM = 0xFB;
public const int WA_ACTIVE = ;
public const int WA_CLICKACTIVE = ;
public const int WA_INACTIVE = ;
public const int WB_ISDELIMITER = ;
public const int WB_LEFT = ;
public const int WB_RIGHT = ;
public const int WC_DIALOG = ;
public const int WH_CALLWNDPROC = ;
public const int WH_CBT = ;
public const int WH_DEBUG = ;
public const int WH_FOREGROUNDIDLE = ;
public const int WH_GETMESSAGE = ;
public const int WH_HARDWARE = ;
public const int WH_JOURNALPLAYBACK = ;
public const int WH_JOURNALRECORD = ;
public const int WH_KEYBOARD = ;
public const int WH_MAX = ;
public const int WH_MIN = (-);
public const int WH_MOUSE = ;
public const int WH_MSGFILTER = (-);
public const int WH_SHELL = ;
public const int WH_SYSMSGFILTER = ;
public const int WINSTA_ACCESSCLIPBOARD = 0x4;
public const int WINSTA_ACCESSPUBLICATOMS = 0x20;
public const int WINSTA_CREATEDESKTOP = 0x8;
public const int WINSTA_ENUMDESKTOPS = 0x1;
public const int WINSTA_ENUMERATE = 0x100;
public const int WINSTA_EXITWINDOWS = 0x40;
public const int WINSTA_READATTRIBUTES = 0x2;
public const int WINSTA_READSCREEN = 0x200;
public const int WINSTA_WRITEATTRIBUTES = 0x10;
public const int WM_ACTIVATE = 0x6;
public const int WM_ACTIVATEAPP = 0x1C;
public const int WM_ASKCBFORMATNAME = 0x30C;
public const int WM_CANCELJOURNAL = 0x4B;
public const int WM_CANCELMODE = 0x1F;
public const int WM_CHANGECBCHAIN = 0x30D;
public const int WM_CHAR = 0x102;
public const int WM_CHARTOITEM = 0x2F;
public const int WM_CHILDACTIVATE = 0x22;
public const int WM_CLEAR = 0x303;
public const int WM_CLOSE = 0x10;
public const int WM_COMMAND = 0x111;
public const int WM_COMMNOTIFY = 0x44;
public const int WM_COMPACTING = 0x41;
public const int WM_COMPAREITEM = 0x39;
public const int WM_COPY = 0x301;
public const int WM_COPYDATA = 0x4A;
public const int WM_CREATE = 0x1;
public const int WM_CTLCOLORBTN = 0x135;
public const int WM_CTLCOLORDLG = 0x136;
public const int WM_CTLCOLOREDIT = 0x133;
public const int WM_CTLCOLORLISTBOX = 0x134;
public const int WM_CTLCOLORMSGBOX = 0x132;
public const int WM_CTLCOLORSCROLLBAR = 0x137;
public const int WM_CTLCOLORSTATIC = 0x138;
public const int WM_CUT = 0x300;
public const int WM_DDE_ACK = (WM_DDE_FIRST + );
public const int WM_DDE_ADVISE = (WM_DDE_FIRST + );
public const int WM_DDE_DATA = (WM_DDE_FIRST + );
public const int WM_DDE_EXECUTE = (WM_DDE_FIRST + );
public const int WM_DDE_FIRST = 0x3E0;
public const int WM_DDE_INITIATE = (WM_DDE_FIRST);
public const int WM_DDE_LAST = (WM_DDE_FIRST + );
public const int WM_DDE_POKE = (WM_DDE_FIRST + );
public const int WM_DDE_REQUEST = (WM_DDE_FIRST + );
public const int WM_DDE_TERMINATE = (WM_DDE_FIRST + );
public const int WM_DDE_UNADVISE = (WM_DDE_FIRST + );
public const int WM_DEADCHAR = 0x103;
public const int WM_DELETEITEM = 0x2D;
public const int WM_DESTROY = 0x2;
public const int WM_DESTROYCLIPBOARD = 0x307;
public const int WM_DEVMODECHANGE = 0x1B;
public const int WM_DRAWCLIPBOARD = 0x308;
public const int WM_DRAWITEM = 0x2B;
public const int WM_DROPFILES = 0x233;
public const int WM_ENABLE = 0xA;
public const int WM_ENDSESSION = 0x16;
public const int WM_ENTERIDLE = 0x121;
public const int WM_ENTERMENULOOP = 0x211;
public const int WM_ERASEBKGND = 0x14;
public const int WM_EXITMENULOOP = 0x212;
public const int WM_FONTCHANGE = 0x1D;
public const int WM_GETDLGCODE = 0x87;
public const int WM_GETFONT = 0x31;
public const int WM_GETHOTKEY = 0x33;
public const int WM_GETMINMAXINFO = 0x24;
public const int WM_GETTEXT = 0xD;
public const int WM_GETTEXTLENGTH = 0xE;
public const int WM_HOTKEY = 0x312;
public const int WM_HSCROLL = 0x114;
public const int WM_HSCROLLCLIPBOARD = 0x30E;
public const int WM_ICONERASEBKGND = 0x27;
public const int WM_INITDIALOG = 0x110;
public const int WM_INITMENU = 0x116;
public const int WM_INITMENUPOPUP = 0x117;
public const int WM_KEYDOWN = 0x100;
public const int WM_KEYFIRST = 0x100;
public const int WM_KEYLAST = 0x108;
public const int WM_KEYUP = 0x101;
public const int WM_KILLFOCUS = 0x8;
public const int WM_LBUTTONDBLCLK = 0x203;
public const int WM_LBUTTONDOWN = 0x201;
public const int WM_LBUTTONUP = 0x202;
public const int WM_MBUTTONDBLCLK = 0x209;
public const int WM_MBUTTONDOWN = 0x207;
public const int WM_MBUTTONUP = 0x208;
public const int WM_MDIACTIVATE = 0x222;
public const int WM_MDICASCADE = 0x227;
public const int WM_MDICREATE = 0x220;
public const int WM_MDIDESTROY = 0x221;
public const int WM_MDIGETACTIVE = 0x229;
public const int WM_MDIICONARRANGE = 0x228;
public const int WM_MDIMAXIMIZE = 0x225;
public const int WM_MDINEXT = 0x224;
public const int WM_MDIREFRESHMENU = 0x234;
public const int WM_MDIRESTORE = 0x223;
public const int WM_MDISETMENU = 0x230;
public const int WM_MDITILE = 0x226;
public const int WM_MEASUREITEM = 0x2C;
public const int WM_MENUCHAR = 0x120;
public const int WM_MENUSELECT = 0x11F;
public const int WM_MOUSEACTIVATE = 0x21;
public const int WM_MOUSEFIRST = 0x200;
public const int WM_MOUSELAST = 0x209;
public const int WM_MOUSEMOVE = 0x200;
public const int WM_MOVE = 0x3;
public const int WM_NCACTIVATE = 0x86;
public const int WM_NCCALCSIZE = 0x83;
public const int WM_NCCREATE = 0x81;
public const int WM_NCDESTROY = 0x82;
public const int WM_NCHITTEST = 0x84;
public const int WM_NCLBUTTONDBLCLK = 0xA3;
public const int WM_NCLBUTTONDOWN = 0xA1;
public const int WM_NCLBUTTONUP = 0xA2;
public const int WM_NCMBUTTONDBLCLK = 0xA9;
public const int WM_NCMBUTTONDOWN = 0xA7;
public const int WM_NCMBUTTONUP = 0xA8;
public const int WM_NCMOUSEMOVE = 0xA0;
public const int WM_NCPAINT = 0x85;
public const int WM_NCRBUTTONDBLCLK = 0xA6;
public const int WM_NCRBUTTONDOWN = 0xA4;
public const int WM_NCRBUTTONUP = 0xA5;
public const int WM_NEXTDLGCTL = 0x28;
public const int WM_NULL = 0x0;
public const int WM_OTHERWINDOWCREATED = 0x42;
public const int WM_OTHERWINDOWDESTROYED = 0x43;
public const int WM_PAINT = 0xF;
public const int WM_PAINTCLIPBOARD = 0x309;
public const int WM_PAINTICON = 0x26;
public const int WM_PALETTECHANGED = 0x311;
public const int WM_PALETTEISCHANGING = 0x310;
public const int WM_PARENTNOTIFY = 0x210;
public const int WM_PASTE = 0x302;
public const int WM_PENWINFIRST = 0x380;
public const int WM_PENWINLAST = 0x38F;
public const int WM_POWER = 0x48;
public const int WM_QUERYDRAGICON = 0x37;
public const int WM_QUERYENDSESSION = 0x11;
public const int WM_QUERYNEWPALETTE = 0x30F;
public const int WM_QUERYOPEN = 0x13;
public const int WM_QUEUESYNC = 0x23;
public const int WM_QUIT = 0x12;
public const int WM_RBUTTONDBLCLK = 0x206;
public const int WM_RBUTTONDOWN = 0x204;
public const int WM_RBUTTONUP = 0x205;
public const int WM_RENDERALLFORMATS = 0x306;
public const int WM_RENDERFORMAT = 0x305;
public const int WM_SETCURSOR = 0x20;
public const int WM_SETFOCUS = 0x7;
public const int WM_SETFONT = 0x30;
public const int WM_SETHOTKEY = 0x32;
public const int WM_SETREDRAW = 0xB;
public const int WM_SETTEXT = 0xC;
public const int WM_SHOWWINDOW = 0x18;
public const int WM_SIZE = 0x5;
public const int WM_SIZECLIPBOARD = 0x30B;
public const int WM_SPOOLERSTATUS = 0x2A;
public const int WM_SYSCHAR = 0x106;
public const int WM_SYSCOLORCHANGE = 0x15;
public const int WM_SYSCOMMAND = 0x112;
public const int WM_SYSDEADCHAR = 0x107;
public const int WM_SYSKEYDOWN = 0x104;
public const int WM_SYSKEYUP = 0x105;
public const int WM_TIMECHANGE = 0x1E;
public const int WM_TIMER = 0x113;
public const int WM_UNDO = 0x304;
public const int WM_USER = 0x400;
public const int WM_VKEYTOITEM = 0x2E;
public const int WM_VSCROLL = 0x115;
public const int WM_VSCROLLCLIPBOARD = 0x30A;
public const int WM_WINDOWPOSCHANGED = 0x47;
public const int WM_WINDOWPOSCHANGING = 0x46;
public const int WM_WININICHANGE = 0x1A;
public const int WPF_RESTORETOMAXIMIZED = 0x2;
public const int WPF_SETMINPOSITION = 0x1;
public const int WRITE = ;
public const int WS_BORDER = 0x800000;
public const int WS_CAPTION = 0xC00000;
public const int WS_CHILD = 0x40000000;
public const int WS_CHILDWINDOW = (WS_CHILD);
public const int WS_CLIPCHILDREN = 0x2000000;
public const int WS_CLIPSIBLINGS = 0x4000000;
public const int WS_DISABLED = 0x8000000;
public const int WS_DLGFRAME = 0x400000;
public const int WS_EX_ACCEPTFILES = 0x10;
public const int WS_EX_DLGMODALFRAME = 0x1;
public const int WS_EX_NOPARENTNOTIFY = 0x4;
public const int WS_EX_TOPMOST = 0x8;
public const int WS_EX_TRANSPARENT = 0x20;
public const int WS_GROUP = 0x20000;
public const int WS_HSCROLL = 0x100000;
public const int WS_ICONIC = WS_MINIMIZE;
public const int WS_MAXIMIZE = 0x1000000;
public const int WS_MAXIMIZEBOX = 0x10000;
public const int WS_MINIMIZE = 0x20000000;
public const int WS_MINIMIZEBOX = 0x20000;
public const int WS_OVERLAPPED = 0x0;
public const int WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX);
public const int WS_POPUP = unchecked((int)0x80000000);
public const int WS_POPUPWINDOW = (WS_POPUP | WS_BORDER | WS_SYSMENU);
public const int WS_SIZEBOX = WS_THICKFRAME;
public const int WS_SYSMENU = 0x80000;
public const int WS_TABSTOP = 0x10000;
public const int WS_THICKFRAME = 0x40000;
public const int WS_TILED = WS_OVERLAPPED;
public const int WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW;
public const int WS_VISIBLE = 0x10000000;
public const int WS_VSCROLL = 0x200000;
public const int WVR_ALIGNBOTTOM = 0x40;
public const int WVR_ALIGNLEFT = 0x20;
public const int WVR_ALIGNRIGHT = 0x80;
public const int WVR_ALIGNTOP = 0x10;
public const int WVR_HREDRAW = 0x100;
public const int WVR_REDRAW = (WVR_HREDRAW | WVR_VREDRAW);
public const int WVR_VALIDRECTS = 0x400;
public const int WVR_VREDRAW = 0x200;
public const int XCLASS_BOOL = 0x1000;
public const int XCLASS_DATA = 0x2000;
public const int XCLASS_FLAGS = 0x4000;
public const int XCLASS_MASK = 0xFC00;
public const int XCLASS_NOTIFICATION = 0x8000;
public const int XST_ADVACKRCVD = ;
public const int XST_ADVDATAACKRCVD = ;
public const int XST_ADVDATASENT = ;
public const int XST_ADVSENT = ;
public const int XST_CONNECTED = ;
public const int XST_DATARCVD = ;
public const int XST_EXECACKRCVD = ;
public const int XST_EXECSENT = ;
public const int XST_INCOMPLETE = ;
public const int XST_INIT1 = ;
public const int XST_INIT2 = ;
public const int XST_NULL = ;
public const int XST_POKEACKRCVD = ;
public const int XST_POKESENT = ;
public const int XST_REQSENT = ;
public const int XST_UNADVACKRCVD = ;
public const int XST_UNADVSENT = ;
public const int XTYPF_ACKREQ = 0x8;
public const int XTYPF_NOBLOCK = 0x2;
public const int XTYPF_NODATA = 0x4;
public const int XTYP_ADVDATA = (0x10 | XCLASS_FLAGS);
public const int XTYP_ADVREQ = (0x20 | XCLASS_DATA | XTYPF_NOBLOCK);
public const int XTYP_ADVSTART = (0x30 | XCLASS_BOOL);
public const int XTYP_ADVSTOP = (0x40 | XCLASS_NOTIFICATION);
public const int XTYP_CONNECT = (0x60 | XCLASS_BOOL | XTYPF_NOBLOCK);
public const int XTYP_CONNECT_CONFIRM = (0x70 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_DISCONNECT = (0xC0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_ERROR = (0x0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_EXECUTE = (0x50 | XCLASS_FLAGS);
public const int XTYP_MASK = 0xF0;
public const int XTYP_MONITOR = (0xF0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_POKE = (0x90 | XCLASS_FLAGS);
public const int XTYP_REGISTER = (0xA0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_REQUEST = (0xB0 | XCLASS_DATA);
public const int XTYP_SHIFT = ;
public const int XTYP_UNREGISTER = (0xD0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK);
public const int XTYP_WILDCONNECT = (0xE0 | XCLASS_DATA | XTYPF_NOBLOCK);
public const int XTYP_XACT_COMPLETE = (0x80 | XCLASS_NOTIFICATION);
public const string SZDDESYS_ITEM_FORMATS = "Formats";
public const string SZDDESYS_ITEM_HELP = "Help";
public const string SZDDESYS_ITEM_RTNMSG = "ReturnMessage";
public const string SZDDESYS_ITEM_STATUS = "Status";
public const string SZDDESYS_ITEM_SYSITEMS = "SysItems";
public const string SZDDESYS_ITEM_TOPICS = "Topics";
public const string SZDDESYS_TOPIC = "System";
public const string SZDDE_ITEM_ITEMLIST = "TopicItemList";
}
}

Shell.cs

using System;
using System.Runtime.InteropServices; using HWND = System.IntPtr;
using HANDLE = System.IntPtr; namespace Win32
{
public struct DRAGINFO
{
public int uSize;
public POINT pt;
public int fNC;
public string lpFileList;
public int grfKeyState;
}
public struct APPBARDATA
{
public int cbSize;
public HWND hwnd;
public int uCallbackMessage;
public int uEdge;
public RECT rc;
public int lParam;
}
public struct SHFILEOPSTRUCT
{
public HWND hwnd;
public int wFunc;
public string pFrom;
public string pTo;
public short fFlags;
public int fAnyOperationsAborted;
public HANDLE hNameMappings;
public string lpszProgressTitle;
}
public struct SHNAMEMAPPING
{
public string pszOldPath;
public string pszNewPath;
public int cchOldPath;
public int cchNewPath;
}
public struct SHELLEXECUTEINFO
{
public int cbSize;
public int fMask;
public HWND hwnd;
public string lpVerb;
public string lpFile;
public string lpParameters;
public string lpDirectory;
public int nShow;
public HANDLE hInstApp;
public int lpIDList;
public string lpClass;
public HANDLE hkeyClass;
public int dwHotKey;
public HANDLE hIcon;
public HANDLE hProcess;
}
public struct NOTIFYICONDATA
{
public int cbSize;
public HWND hwnd;
public int uID;
public int uFlags;
public int uCallbackMessage;
public HANDLE hIcon;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string szTip;
}
public struct SHFILEINFO
{
public HANDLE hIcon;
public int iIcon;
public int dwAttributes;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=Kernel.MAX_PATH)]public string szDisplayName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=)] public string szTypeName;
} public abstract class Shell
{
[DllImport("shell32")] public static extern int CommandLineToArgv(string lpCmdLine, short pNumArgs);
[DllImport("shell32")] public static extern int DoEnvironmentSubst(string szString, int cbString);
[DllImport("shell32")] public static extern int DragQueryFile(HANDLE hDROP, int UINT, string lpStr, int ch);
[DllImport("shell32")] public static extern int DragQueryPoint(HANDLE hDROP, ref POINT lpPoint);
[DllImport("shell32")] public static extern int DuplicateIcon(HANDLE hInst, HANDLE hIcon);
[DllImport("shell32")] public static extern int ExtractAssociatedIcon(HANDLE hInst, string lpIconPath, ref int lpiIcon);
[DllImport("shell32")] public static extern int ExtractIcon(HANDLE hInst, string lpszExeFileName, int nIconIndex);
[DllImport("shell32")] public static extern int ExtractIconEx(string lpszFile, int nIconIndex, ref int phiconLarge, ref int phiconSmall, int nIcons);
[DllImport("shell32")] public static extern int FindExecutable(string lpFile, string lpDirectory, string lpResult);
[DllImport("shell32")] public static extern int SHAppBarMessage(int dwMessage, ref APPBARDATA pData);
[DllImport("shell32")] public static extern int SHFileOperation(ref SHFILEOPSTRUCT lpFileOp);
[DllImport("shell32")] public static extern int SHGetFileInfo(string pszPath, int dwFileAttributes, ref SHFILEINFO psfi, int cbFileInfo, int uFlags);
[DllImport("shell32")] public static extern int SHGetNewLinkInfo(string pszLinkto, string pszDir, string pszName, ref int pfMustCopy, int uFlags);
[DllImport("shell32")] public static extern int ShellAbout(HWND hwnd, string szApp, string szOtherStuff, HANDLE hIcon);
[DllImport("shell32")] public static extern int ShellExecute(HWND hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);
[DllImport("shell32")] public static extern int Shell_NotifyIcon(int dwMessage, ref NOTIFYICONDATA lpData);
[DllImport("shell32")] public static extern void DragAcceptFiles(HWND hwnd, int fAccept);
[DllImport("shell32")] public static extern void DragFinish(HANDLE hDrop);
[DllImport("shell32")] public static extern void SHFreeNameMappings(HANDLE hNameMappings);
[DllImport("shell32")] public static extern void WinExecError(HWND hwnd, int error, string lpstrFileName, string lpstrTitle);
[DllImport("shell32")] public static extern int SHBrowseForFolder(BROWSEINFO lpbi);
[DllImport("shell32")] public static extern int SHGetPathFromIDList(int pidList, string lpBuffer); public const int ABE_BOTTOM = ;
public const int ABE_LEFT = ;
public const int ABE_RIGHT = ;
public const int ABE_TOP = ;
public const int ABM_ACTIVATE = 0x6;
public const int ABM_GETAUTOHIDEBAR = 0x7;
public const int ABM_GETSTATE = 0x4;
public const int ABM_GETTASKBARPOS = 0x5;
public const int ABM_NEW = 0x0;
public const int ABM_QUERYPOS = 0x2;
public const int ABM_REMOVE = 0x1;
public const int ABM_SETAUTOHIDEBAR = 0x8;
public const int ABM_SETPOS = 0x3;
public const int ABM_WINDOWPOSCHANGED = 0x9;
public const int ABN_FULLSCREENAPP = 0x2;
public const int ABN_POSCHANGED = 0x1;
public const int ABN_STATECHANGE = 0x0;
public const int ABN_WINDOWARRANGE = 0x3;
public const int ABS_ALWAYSONTOP = 0x2;
public const int ABS_AUTOHIDE = 0x1;
public const int EIRESID = -;
public const int FOF_ALLOWUNDO = 0x40;
public const int FOF_CONFIRMMOUSE = 0x2;
public const int FOF_FILESONLY = 0x80;
public const int FOF_MULTIDESTFILES = 0x1;
public const int FOF_NOCONFIRMATION = 0x10;
public const int FOF_NOCONFIRMMKDIR = 0x200;
public const int FOF_RENAMEONCOLLISION = 0x8;
public const int FOF_SILENT = 0x4;
public const int FOF_SIMPLEPROGRESS = 0x100;
public const int FOF_WANTMAPPINGHANDLE = 0x20;
public const int FO_COPY = 0x2;
public const int FO_DELETE = 0x3;
public const int FO_MOVE = 0x1;
public const int FO_RENAME = 0x4;
public const int NIF_ICON = 0x2;
public const int NIF_MESSAGE = 0x1;
public const int NIF_TIP = 0x4;
public const int NIM_ADD = 0x0;
public const int NIM_DELETE = 0x2;
public const int NIM_MODIFY = 0x1;
public const int PO_DELETE = 0x13;
public const int PO_PORTCHANGE = 0x20;
public const int PO_RENAME = 0x14;
public const int PO_REN_PORT = 0x34;
public const int SEE_MASK_CLASSKEY = 0x3;
public const int SEE_MASK_CLASSNAME = 0x1;
public const int SEE_MASK_CONNECTNETDRV = 0x80;
public const int SEE_MASK_DOENVSUBST = 0x200;
public const int SEE_MASK_FLAG_DDEWAIT = 0x100;
public const int SEE_MASK_FLAG_NO_UI = 0x400;
public const int SEE_MASK_HOTKEY = 0x20;
public const int SEE_MASK_ICON = 0x10;
public const int SEE_MASK_IDLIST = 0x4;
public const int SEE_MASK_INVOKEIDLIST = 0xC;
public const int SEE_MASK_NOCLOSEPROCESS = 0x40;
public const int SE_ERR_ACCESSDENIED = ;
public const int SE_ERR_ASSOCINCOMPLETE = ;
public const int SE_ERR_DDEBUSY = ;
public const int SE_ERR_DDEFAIL = ;
public const int SE_ERR_DDETIMEOUT = ;
public const int SE_ERR_DLLNOTFOUND = ;
public const int SE_ERR_FNF = ;
public const int SE_ERR_NOASSOC = ;
public const int SE_ERR_OOM = ;
public const int SE_ERR_PNF = ;
public const int SE_ERR_SHARE = ;
public const int SHGFI_ATTRIBUTES = 0x800;
public const int SHGFI_DISPLAYNAME = 0x200;
public const int SHGFI_EXETYPE = 0x2000;
public const int SHGFI_ICON = 0x100;
public const int SHGFI_ICONLOCATION = 0x1000;
public const int SHGFI_LARGEICON = 0x0;
public const int SHGFI_LINKOVERLAY = 0x8000;
public const int SHGFI_OPENICON = 0x2;
public const int SHGFI_PIDL = 0x8;
public const int SHGFI_SELECTED = 0x10000;
public const int SHGFI_SHELLICONSIZE = 0x4;
public const int SHGFI_SMALLICON = 0x1;
public const int SHGFI_SYSICONINDEX = 0x4000;
public const int SHGFI_TYPENAME = 0x400;
public const int SHGFI_USEFILEATTRIBUTES = 0x10;
public const int SHGNLI_PIDL = 0x1;
public const int SHGNLI_PREFIXNAME = 0x2;
}
}

更多参考《C#封装好的Win32API》

最新文章

  1. PHP 的 HMAC_SHA1算法 实现
  2. Debugging JTAG Connectivity Problems
  3. [转]python -m SimpleHTTPServer
  4. Caching in ASP.NET MVC
  5. python的pyc和pyo文件
  6. HDU 1065 - I Think I Need a Houseboat
  7. Ubuntu-升级linux软件源,安装vim/五笔
  8. CodeForces 616B Dinner with Emma
  9. win10更新时遇到错误0x80070002的正确处理方法
  10. CISCO2960配置vlan
  11. VS2010创建MVC4项目提示错误: 此模板尝试加载组件程序集 “NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral,
  12. domain logic approaches
  13. java8中optional和.stream().map()
  14. uvaLive7303 Aquarium (kruskal)
  15. python实战提升--1
  16. 离线安装Cloudera Manager 5和CDH5(最新版5.9.3) 完全教程(五)数据库安装(双节点)
  17. 2019年以后ArcGIS 调用天地图的资源URL
  18. JavaBasic_09
  19. day01计算机组成与操作系统
  20. 修改ssh远程默认端口

热门文章

  1. 遗传算法,实数编码的交叉操作之SBX(模拟二进制交叉)
  2. Spring Boot整合Activiti,查看流程图出现中文乱码问题
  3. SYSLOG审记日志的配置。
  4. 腾讯优测优分享 | 你是否体验过Android手机插入耳机后仍外放的尴尬?
  5. CSS counter-reset 属性
  6. 第一章:UNIX基础知识
  7. Unity全视角游戏的键盘操作位移——研究笔记
  8. eclipse中的窗口切换快捷键
  9. Servlet页面登录的数据库验证程序(一)
  10. Entity Framework 摘记