Beef Corlib
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
System.Windows Class Reference

Classes

struct  ACL
 
struct  BrowseInfo
 
struct  COM_IFileDialog
 
struct  COM_IFileOpenDialog
 
struct  COM_IFileSaveDialog
 
struct  COM_IShellItem
 
struct  COM_IShellItemArray
 
struct  COM_IUnknown
 
struct  COMDLG_FILTERSPEC
 
struct  DynamicTimeZoneInformation
 
struct  EventHandle
 
struct  EXPLICIT_ACCESS_W
 
struct  FileAttributeData
 
struct  FileHandle
 
struct  FileNotifyInformation
 
struct  FindHandle
 
struct  Handle
 
struct  HInstance
 
struct  HKey
 
struct  HModule
 
struct  HWnd
 
struct  Int64_Rev
 
struct  IntBool
 
struct  IOCompletionHandle
 
struct  NativeFindData
 
struct  NativeFindDataA
 
struct  OpenFileName
 
struct  Overlapped
 
struct  ProcessHandle
 
struct  ProcessInformation
 
struct  RegistryTimeZoneInformation
 
struct  ShellExecuteInfo
 
struct  SHFileInfo
 
struct  StartupInfo
 
struct  SystemTime
 
struct  TimeZoneInformation
 
struct  TRUSTEE_W
 
struct  VS_FIXEDFILEINFO
 

Public Types

enum  BrowseInfos { NewDialogStyle = 0x0040, HideNewFolderButton = 0x0200 }
 
enum  FOS : uint32 {
  FOS_OVERWRITEPROMPT = 0x00000002, FOS_STRICTFILETYPES = 0x00000004, FOS_NOCHANGEDIR = 0x00000008, FOS_PICKFOLDERS = 0x00000020,
  FOS_FORCEFILESYSTEM = 0x00000040, FOS_ALLNONSTORAGEITEMS = 0x00000080, FOS_NOVALIDATE = 0x00000100, FOS_ALLOWMULTISELECT = 0x00000200,
  FOS_PATHMUSTEXIST = 0x00000800, FOS_FILEMUSTEXIST = 0x00001000, FOS_CREATEPROMPT = 0x00002000, FOS_SHAREAWARE = 0x00004000,
  FOS_NOREADONLYRETURN = 0x00008000, FOS_NOTESTFILECREATE = 0x00010000, FOS_HIDEMRUPLACES = 0x00020000, FOS_HIDEPINNEDPLACES = 0x00040000,
  FOS_NODEREFERENCELINKS = 0x00100000, FOS_DONTADDTORECENT = 0x02000000, FOS_FORCESHOWHIDDEN = 0x10000000, FOS_DEFAULTNOMINIMODE = 0x20000000
}
 
enum  ACCESS_MODE : int32 {
  NOT_USED_ACCESS = 0, GRANT_ACCESS, SET_ACCESS, DENY_ACCESS,
  REVOKE_ACCESS, SET_AUDIT_SUCCESS, SET_AUDIT_FAILURE
}
 
enum  MULTIPLE_TRUSTEE_OPERATION : int32 { NO_MULTIPLE_TRUSTEE, TRUSTEE_IS_IMPERSONATE }
 
enum  TRUSTEE_FORM : int32 {
  TRUSTEE_IS_SID, TRUSTEE_IS_NAME, TRUSTEE_BAD_FORM, TRUSTEE_IS_OBJECTS_AND_SID,
  TRUSTEE_IS_OBJECTS_AND_NAME
}
 
enum  TRUSTEE_TYPE : int32 {
  TRUSTEE_IS_UNKNOWN, TRUSTEE_IS_USER, TRUSTEE_IS_GROUP, TRUSTEE_IS_DOMAIN,
  TRUSTEE_IS_ALIAS, TRUSTEE_IS_WELL_KNOWN_GROUP, TRUSTEE_IS_DELETED, TRUSTEE_IS_INVALID,
  TRUSTEE_IS_COMPUTER
}
 

Public Member Functions

function int WndProc (HWnd hWnd, int32 msg, int wParam, int lParam)
 
delegate IntBool EnumThreadWindowsCallback (HWnd hWnd, void *extraParameter)
 
static IntBool GetFileVersionInfoW (char16 *lptstrFilename, uint32 dwHandle, uint32 dwLen, void *lpData)
 
static uint32 GetFileVersionInfoSizeW (char16 *lptstrFilename, out uint32 lpdwHandle)
 
static IntBool VerQueryValueW (void *pBlock, char16 *lpSubBlock, ref void *lplpBuffer, out int32 puLen)
 
static uint32 VerLanguageNameW (uint32 wLang, char16 *szLang, uint32 cchLang)
 
static uint32 GetNamedSecurityInfoW (char16 *pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, SID **ppsidOwner, SID **ppsidGroup, ACL **ppDacl, ACL **ppSacl, SECURITY_DESCRIPTOR **ppSecurityDescriptor)
 
static void BuildExplicitAccessWithNameW (EXPLICIT_ACCESS_W *pExplicitAccess, char16 *pTrusteeName, uint32 AccessPermissions, ACCESS_MODE AccessMode, uint32 Inheritance)
 
static uint32 SetEntriesInAclW (uint32 cCountOfExplicitEntries, EXPLICIT_ACCESS_W *pListOfExplicitEntries, ACL *OldAcl, ACL **NewAcl)
 
static uint32 SetNamedSecurityInfoW (char16 *pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, SID *psidOwner, SID *psidGroup, ACL *pDacl, ACL *pSacl)
 
static uint32 GetExplicitEntriesFromAclW (ACL *pacl, uint32 *pcCountOfExplicitEntries, EXPLICIT_ACCESS_W **pListOfExplicitEntries)
 
static uint32 GetEffectiveRightsFromAclW (ACL *pacl, TRUSTEE_W *pTrustee, uint32 *pAccessRights)
 
static IntBool LookupAccountSidW (char16 *lpSystemName, SID *Sid, char16 *Name, uint32 *cchName, char16 *ReferencedDomainName, uint32 *cchReferencedDomainName, int *peUse)
 
static IntBool ConvertStringSidToSidW (char16 *StringSid, SID **Sid)
 
static void LocalFree (void *ptr)
 
static int32 GetTimeZoneInformation (out TimeZoneInformation dynamicTimeZoneInformation)
 
static int32 GetDynamicTimeZoneInformation (out DynamicTimeZoneInformation dynamicTimeZoneInformation)
 
static int32 RegOpenKeyExW (HKey hKey, char16 *lpSubKey, uint32 ulOptions, uint32 samDesired, out HKey phkResult)
 
static int32 RegOpenKeyExA (HKey hKey, char8 *lpSubKey, uint32 ulOptions, uint32 samDesired, out HKey phkResult)
 
static int32 RegCreateKeyExW (HKey hKey, char16 *lpSubKey, uint32 reserved, char16 *lpClass, uint32 dwOptions, uint32 samDesired, SecurityAttributes *lpSecurityAttributes, out HKey phkResult, uint32 *lpdwDisposition)
 
static int32 RegCreateKeyExA (HKey hKey, char8 *lpSubKey, uint32 reserved, char8 *lpClass, uint32 dwOptions, uint32 samDesired, SecurityAttributes *lpSecurityAttributes, out HKey phkResult, uint32 *lpdwDisposition)
 
static int32 RegCloseKey (HKey hKey)
 
static int32 RegDeleteKeyW (HKey hKey, char16 *lpSubKey)
 
static int32 RegDeleteKeyA (HKey hKey, char8 *lpSubKey)
 
static int32 RegDeleteValueW (HKey hKey, char16 *lpSubKey)
 
static int32 RegDeleteValueA (HKey hKey, char8 *lpSubKey)
 
static int32 RegQueryValueExW (HKey hKey, char16 *lpValueName, uint32 *lpReserved, uint32 *lpType, void *lpData, uint32 *lpcbData)
 
static int32 RegQueryValueExA (HKey hKey, char8 *lpValueName, uint32 *lpReserved, uint32 *lpType, void *lpData, uint32 *lpcbData)
 
static int32 RegEnumValueW (HKey hKey, int32 dwIndex, char16 *lpValueName, uint32 *lpcchValueName, uint32 *lpReserved, uint32 *lpType, void *lpData, uint32 *lpcbData)
 
static int32 RegEnumValueA (HKey hKey, int32 dwIndex, char8 *lpValueName, uint32 *lpcchValueName, uint32 *lpReserved, uint32 *lpType, void *lpData, uint32 *lpcbData)
 
static int32 RegGetValueW (HKey hkey, char16 *lpSubKey, char16 *lpValue, uint32 dwFlags, uint32 *pdwType, void *pvData, uint32 *pcbData)
 
static int32 RegGetValueA (HKey hkey, char8 *lpSubKey, char8 *lpValue, uint32 dwFlags, uint32 *pdwType, void *pvData, uint32 *pcbData)
 
static int32 RegSetValueExW (HKey hkey, char16 *lpValue, uint32 reserved, uint32 dwType, void *pvData, uint32 cbData)
 
static int32 RegSetValueExA (HKey hkey, char8 *lpValue, uint32 reserved, uint32 dwType, void *pvData, uint32 cbData)
 
static int32 SHGetSpecialFolderLocation (HWnd hwnd, int32 csidl, ref int ppidl)
 
static bool SHGetPathFromIDList (int pidl, char8 *path)
 
static int SHBrowseForFolder (ref BrowseInfo bi)
 
static COM_IUnknown.HResult SHCreateItemFromParsingName (char16 *pszPath, COM_IBindCtx *pbc, Guid riid, void **ppv)
 
static int32 GetLastError ()
 
static IntBool GetExitCodeProcess (ProcessHandle process, out int32 exitCode)
 
static IntBool GetExitCodeThread (Handle process, out int32 exitCode)
 
static int32 ResumeThread (Handle thread)
 
static ProcessHandle GetCurrentProcess ()
 
static int32 GetCurrentProcessId ()
 
static ProcessHandle OpenProcess (int32 desiredAccess, IntBool inheritHandle, int32 processId)
 
static Handle CreateRemoteThread (ProcessHandle process, SecurityAttributes *threadAttributes, int stackSize, void *startAddress, void *parameter, int32 creationFlags, int32 *threadId)
 
static IntBool ReadProcessMemory (ProcessHandle process, void *baseAddress, void *buffer, int size, int *numberOfBytesRead)
 
static IntBool WriteProcessMemory (ProcessHandle process, void *baseAddress, void *buffer, int size, int *numberOfBytesWritten)
 
static void * GetProcAddress (HModule module, char8 *procName)
 
static void * VirtualAllocEx (ProcessHandle process, void *address, int size, int32 allocationType, int32 protect)
 
static void * VirtualFreeEx (ProcessHandle process, void *address, int size, int32 allocationType)
 
static FileHandle GetStdHandle (int32 stdHandle)
 
static Handle ShellExecuteW (Handle hwnd, char16 *operation, char16 *file, char16 *parameters, char16 *directory, int32 showCmd)
 
static Handle ShellExecuteA (Handle hwnd, char8 *operation, char8 *file, char8 *parameters, char8 *directory, int32 showCmd)
 
static IntBool ShellExecuteExA (ShellExecuteInfo *shellExecuteInfo)
 
static void GetStartupInfoA (StartupInfo *startupInfo)
 
static IntBool CreateProcessW (char16 *applicationName, char16 *commandLine, SecurityAttributes *processAttributes, SecurityAttributes *threadAttributes, IntBool inheritHandles, int32 creationFlags, void *environment, char16 *currentDirectory, StartupInfo *startupInfo, ProcessInformation *processInformation)
 
static IntBool CreateProcessA (char8 *applicationName, char8 *commandLine, SecurityAttributes *processAttributes, SecurityAttributes *threadAttributes, IntBool inheritHandles, int32 creationFlags, void *environment, char8 *currentDirectory, StartupInfo *startupInfo, ProcessInformation *processInformation)
 
static IntBool TerminateProcess (ProcessHandle process)
 
static IntBool CreatePipe (out Handle readPipe, out Handle writePipe, SecurityAttributes *pipeAttributes, int32 size)
 
static Handle CreateNamedPipeA (char8 *lpName, uint32 dwOpenMode, uint32 dwPipeMode, uint32 nMaxInstances, uint32 nOutBufferSize, uint32 nInBufferSize, uint32 nDefaultTimeOut, SecurityAttributes *lpSecurityAttributes)
 
static IntBool ConnectNamedPipe (Handle handle, Overlapped *overlapped)
 
static IntBool CallNamedPipeA (char8 *name, void *inBuffer, int32 inBufferSize, void *outBuffer, int32 outBufferSize, int32 *bytesRead, int32 timeOut)
 
static IntBool DisconnectNamedPipe (Handle handle)
 
static EventHandle CreateEventA (SecurityAttributes *eventAttribuetes, IntBool manualReset, IntBool initialState, char8 *name)
 
static EventHandle OpenEventA (uint32 dwDesiredAccess, IntBool bInheritHandle, char8 *lpName)
 
static IntBool SetEvent (EventHandle eventHandle)
 
static IntBool ResetEvent (EventHandle eventHandle)
 
static int32 WaitForSingleObject (Handle handle, int32 milliseconds)
 
static int32 WaitForMultipleObjects (int32 count, Handle *handles, IntBool waitAll, int32 milliseconds)
 
static IOCompletionHandle CreateIoCompletionPort (FileHandle fileHandle, IOCompletionHandle existingCompletionPort, int completionKey, int32 numberOfConcurrentThreads)
 
static IntBool GetQueuedCompletionStatus (IOCompletionHandle completionPort, out int32 numberOfBytes, out int completionKey, out Overlapped *overlapped, int32 milliseconds)
 
static IntBool PostQueuedCompletionStatus (IOCompletionHandle completionPort, int32 numberOfBytes, int completionKey, Overlapped *overlapped)
 
static IntBool DuplicateHandle (Handle sourceProcessHandle, Handle sourceHandle, Handle targetProcessHandle, Handle *targetHandle, int32 desiredAccess, IntBool inheritHandle, int32 options)
 
static IntBool CloseHandle (Handle handle)
 
static int32 GetFileType (FileHandle handle)
 
static int32 GetFileSize (FileHandle handle, int32 *sizeHigh)
 
static FileHandle CreateFileA (char8 *lpFileName, int32 dwDesiredAccess, System.IO.FileShare dwShareMode, SecurityAttributes *securityAttrs, System.IO.FileMode dwCreationDisposition, int32 dwFlagsAndAttributes, Handle hTemplateFile)
 
static FileHandle CreateFileW (char16 *lpFileName, int32 dwDesiredAccess, System.IO.FileShare dwShareMode, SecurityAttributes *securityAttrs, System.IO.FileMode dwCreationDisposition, int32 dwFlagsAndAttributes, Handle hTemplateFile)
 
static uint32 GetWindowsDirectoryW (char16 *lpBuffer, uint32 uSize)
 
static uint32 GetWindowsDirectoryA (char8 *lpBuffer, uint32 uSize)
 
static IntBool CreateDirectoryW (char16 *pathName, SecurityAttributes *securityAttributes)
 
static IntBool CreateDirectoryA (char8 *pathName, SecurityAttributes *securityAttributes)
 
static IntBool RemoveDirectoryW (char16 *pathName)
 
static IntBool RemoveDirectoryA (char8 *pathName)
 
static IntBool DeleteFileW (char16 *pathName)
 
static IntBool DeleteFileA (char8 *pathName)
 
static IntBool CopyFileW (char16 *srcName, char16 *dstName, IntBool failIfExists)
 
static IntBool CopyFileA (char8 *srcName, char8 *dstName, IntBool failIfExists)
 
static IntBool MoveFileW (char16 *srcName, char16 *dstName)
 
static IntBool MoveFileA (char8 *srcName, char8 *dstName)
 
static int32 ReadFile (Handle handle, uint8 *bytes, int32 numBytesToRead, out int32 numBytesRead, Overlapped *overlapped)
 
static int32 WriteFile (Handle handle, uint8 *bytes, int32 numBytesToWrite, out int32 numBytesWritten, Overlapped *overlapped)
 
static Handle OpenFileMappingA (uint32 dwDesiredAccess, IntBool bInheritHandle, char8 *lpName)
 
static Handle CreateFileMappingA (Handle hFile, SecurityAttributes *securityAttrs, uint32 flProtect, uint32 dwMaximumSizeHigh, uint32 dwMaximumSizeLow, char8 *lpName)
 
static void * MapViewOfFile (Handle hFileMappingObject, uint32 dwDesiredAccess, uint32 dwFileOffsetHigh, uint32 dwFileOffsetLow, int dwNumberOfBytesToMap)
 
static FindHandle FindFirstFileW (char16 *fileName, ref NativeFindData findFileData)
 
static IntBool FindNextFileW (FindHandle findHandle, ref NativeFindData findFileData)
 
static IntBool FindClose (FindHandle findHandle)
 
static IntBool GetFileAttributesExW (char16 *name, int32 fileInfoLevel, FileAttributeData *fileInformation)
 
static IntBool SetFileAttributesW (char16 *name, int32 attribs)
 
static int32 MessageBoxA (HWnd hWnd, char8 *text, char8 *caption, int32 type)
 
static int32 MessageBoxW (HWnd hWnd, char16 *text, char16 *caption, int32 type)
 
static int32 SetErrorMode (int32 errorMode)
 
static HWnd GetActiveWindow ()
 
static HWnd SetActiveWindow (HWnd wnd)
 
static int CallWindowProcA (int wndProc, HWnd hWnd, int32 msg, int wParam, int lParam)
 
static int CallWindowProcW (int wndProc, HWnd hWnd, int32 msg, int wParam, int lParam)
 
static int GetWindowLongPtrW (int hWnd, int32 nIndex)
 
static int SetWindowLongPtrW (int hWnd, int32 nIndex, int value)
 
static IntBool PostMessageW (HWnd hWnd, int32 msg, int wParam, int lParam)
 
static int32 SendMessageW (HWnd hWnd, int32 msg, int wParam, int lParam)
 
static int32 SendMessageTimeoutW (HWnd hWnd, int32 msg, int wParam, int lParam, int32 flags, int32 timeout, int32 *result)
 
static HWnd SetFocus (HWnd hWnd)
 
static IntBool EnumWindows (void *callback, void *extraData)
 
static HWnd GetWindow (HWnd hWnd, int32 uCmd)
 
static HWnd FindWindowW (char16 *className, char16 *windowName)
 
static HWnd FindWindowA (char8 *className, char8 *windowName)
 
static IntBool IsWindowVisible (HWnd hWnd)
 
static int32 GetWindowTextLengthW (HWnd hWnd)
 
static int32 GetWindowTextW (HWnd hWnd, char16 *ptr, int32 length)
 
static int32 GetWindowTextA (HWnd hWnd, char8 *ptr, int32 length)
 
static int32 GetWindowThreadProcessId (HWnd handle, out int32 processId)
 
static IntBool GetOpenFileNameW (ref OpenFileName ofn)
 
static IntBool GetSaveFileNameW (ref OpenFileName ofn)
 
static HModule GetModuleHandleW (char16 *modName)
 
static HModule GetModuleHandleA (char8 *modName)
 
static uint32 GetTempFileNameW (char16 *tmpPath, char16 *prefix, uint32 uniqueIdOrZero, char16 *tmpFileName)
 
static uint32 GetTempFileNameA (char8 *tmpPath, char8 *prefix, uint32 uniqueIdOrZero, char8 *tmpFileName)
 
static uint32 GetTempPathW (int32 bufferLen, char16 *buffer)
 
static IntBool GetComputerNameA (char8 *buffer, ref int32 size)
 
static int32 NtQuerySystemInformation (int32 query, void *dataPtr, int32 size, out int32 returnedSize)
 
static IntBool ReadDirectoryChangesW (FileHandle handle, uint8 *buffer, int32 bufferLength, IntBool watchSubtree, NotifyFilters notifyFilter, out int32 bytesReturned, Overlapped *overlapped, void *completionRoutine)
 
static int32 SetFilePointer (FileHandle handle, int32 distanceToMove, int32 *distanceToMoveHigh, int32 moveMethod)
 
static IntBool SHGetFileInfoW (char16 *pszPath, uint32 fileAttributes, SHFileInfo *psfi, uint32 cbFileInfo, uint32 flags)
 
static char16 * GetEnvironmentStringsW ()
 
static void FreeEnvironmentStringsW (char16 *ptr)
 
static IntBool GetFileMUIPath (uint32 dwFlags, char16 *pcwszFilePath, char16 *pwszLanguage, uint32 *pcchLanguage, char16 *pwszFileMUIPath, uint32 *pcchFileMUIPath, uint64 *pululEnumerator)
 
static IntBool SetDllDirectoryW (char16 *libFileName)
 
static HInstance LoadLibraryW (char16 *libFileName)
 
static HInstance LoadLibraryA (char8 *libFileName)
 
static HInstance LoadLibraryExW (char16 *libFileName, HModule hFile, uint32 dwFlags)
 
static HInstance LoadLibraryExA (char8 *libFileName, HModule hFile, uint32 dwFlags)
 
static IntBool FreeLibrary (HModule module)
 
static int32 LoadStringW (HInstance hInstance, uint32 uID, char16 *lpBuffer, int32 cchBufferMax)
 

Static Public Member Functions

static int GetWindowLong (HWnd hWnd, int32 nIndex)
 
static int SetWindowLong (HWnd hWnd, int32 nIndex, int value)
 
static Result< FileHandle, FileOpenError > SafeCreateFile (String lpFileName, int32 dwDesiredAccess, System.IO.FileShare dwShareMode, SecurityAttributes *securityAttrs, System.IO.FileMode dwCreationDisposition, int32 dwFlagsAndAttributes, Handle hTemplateFile)
 

Static Public Attributes

const int32 SHGFI_ICON = 0x00000100
 
const int32 SHGFI_DISPLAYNAME = 0x00000200
 
const int32 SHGFI_TYPENAME = 0x00000400
 
const int32 SHGFI_ATTRIBUTES = 0x00000800
 
const int32 SHGFI_ICONLOCATION = 0x00001000
 
const int32 SHGFI_EXETYPE = 0x00002000
 
const int32 SHGFI_SYSICONINDEX = 0x00004000
 
const int32 SHGFI_LINKOVERLAY = 0x00008000
 
const int32 SHGFI_SELECTED = 0x00010000
 
const int32 SHGFI_ATTR_SPECIFIED = 0x00020000
 
const int32 SHGFI_LARGEICON = 0x00000000
 
const int32 SHGFI_SMALLICON = 0x00000001
 
const int32 SHGFI_OPENICON = 0x00000002
 
const int32 SHGFI_SHELLICONSIZE = 0x00000004
 
const int32 SHGFI_PIDL = 0x00000008
 
const int32 SHGFI_USEFILEATTRIBUTES = 0x00000010
 
const int32 SHGFI_ADDOVERLAYS = 0x00000020
 
const int32 SHGFI_OVERLAYINDEX = 0x00000040
 
const int32 REG_NONE = 0
 
const int32 REG_SZ = 1
 
const int32 REG_EXPAND_SZ = 2
 
const int32 REG_BINARY = 3
 
const int32 REG_DWORD = 4
 
const int32 REG_DWORD_LITTLE_ENDIAN = 4
 
const int32 REG_DWORD_BIG_ENDIAN = 5
 
const int32 REG_LINK = 6
 
const int32 REG_MULTI_SZ = 7
 
const int32 REG_RESOURCE_LIST = 8
 
const int32 REG_FULL_RESOURCE_DESCRIPTOR = 9
 
const int32 REG_RESOURCE_REQUIREMENTS_LIST = 10
 
const int32 REG_QWORD = 11
 
const int32 REG_QWORD_LITTLE_ENDIAN = 11
 
const int32 REG_OPTION_NON_VOLATILE = 0
 
const int32 MB_OK = 0
 
const int32 MB_OKCANCEL = 1
 
const int32 MB_YESNO = 4
 
const int32 MB_ICONHAND = 0x10
 
const int32 MB_ICONQUESTION = 0x20
 
const int32 IDOK = 1
 
const int32 IDYES = 6
 
const int32 LOAD_LIBRARY_AS_DATAFILE = 0x00000002
 
const int32 LOAD_STRING_MAX_LENGTH = 500
 
const int32 MUI_PREFERRED_UI_LANGUAGES = 0x10
 
const int32 SECTION_QUERY = 0x0001
 
const int32 SECTION_MAP_WRITE = 0x0002
 
const int32 SECTION_MAP_READ = 0x0004
 
const int32 SECTION_MAP_EXECUTE = 0x0008
 
const int32 SECTION_EXTEND_SIZE = 0x0010
 
const int32 FILE_MAP_WRITE = SECTION_MAP_WRITE
 
const int32 FILE_MAP_READ = SECTION_MAP_READ
 
const int32 S_OK = 0
 
const int32 MAX_PATH = 260
 
const int32 SEE_MASK_DEFAULT = 0
 
const int32 SEE_MASK_NOCLOSEPROCESS = 0x40
 
const int32 SEE_MASK_FLAG_NO_UI = 0x400
 
const int32 SEE_MASK_FLAG_DDEWAIT = 0x100
 
const int32 FILE_ATTRIBUTE_READONLY = 0x00000001
 
const int32 FILE_ATTRIBUTE_DIRECTORY = 0x00000010
 
const int32 FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400
 
const int32 GENERIC_READ = (.)0x80000000
 
const int32 GENERIC_WRITE = 0x40000000
 
const int32 GENERIC_EXECUTE = 0x20000000
 
const int32 GENERIC_ALL = 0x10000000
 
const int32 SW_HIDE = 0
 
const int32 SW_MAXIMIZE = 3
 
const int32 SW_MINIMIZE = 6
 
const int32 SW_RESTORE = 9
 
const int32 SW_SHOW = 5
 
const int32 SW_SHOWDEFAULT = 10
 
const int32 SW_SHOWMAXIMIZED = 3
 
const int32 SW_SHOWMINIMIZED = 2
 
const int32 SW_SHOWMINNOACTIVE = 7
 
const int32 SW_SHOWNA = 8
 
const int32 SW_SHOWNOACTIVATE = 4
 
const int32 SW_SHOWNORMAL = 1
 
const int32 GW_OWNER = 4
 
const int32 STD_INPUT_HANDLE = -10
 
const int32 STD_OUTPUT_HANDLE = -11
 
const int32 STD_ERROR_HANDLE = -12
 
const int32 CREATE_SUSPENDED = 0x00000004
 
const int32 CREATE_NO_WINDOW = 0x08000000
 
const int32 FILE_TYPE_DISK = 0x0001
 
const int32 FILE_TYPE_CHAR = 0x0002
 
const int32 FILE_TYPE_PIPE = 0x0003
 
const int32 FILE_READ_DATA = (0x0001)
 
const int32 FILE_WRITE_DATA = (0x0002)
 
const int32 FILE_LIST_DIRECTORY = (0x0001)
 
const int32 FILE_SHARE_READ = 0x00000001
 
const int32 FILE_SHARE_WRITE = 0x00000002
 
const int32 FILE_SHARE_DELETE = 0x00000004
 
const int32 FILE_BEGIN = 0
 
const int32 FILE_CURRENT = 1
 
const int32 FILE_END = 2
 
const int32 FILE_FLAG_OVERLAPPED = 0x40000000
 
const int32 FILE_FLAG_BACKUP_SEMANTICS = 0x02000000
 
const int32 FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000
 
const int32 FILE_FLAG_WRITE_THROUGH = (int32)0x80000000
 
const int32 DUPLICATE_CLOSE_SOURCE = 0x1
 
const int32 DUPLICATE_SAME_ACCESS = 0x2
 
const int32 WAIT_ABANDONED = 0x80
 
const int32 WAIT_OBJECT_0 = 0
 
const int32 WAIT_TIMEOUT = 0x102
 
const int32 WAIT_FAILED = -1
 
const int32 STARTF_USESTDHANDLES = 0x00000100
 
const int32 ERROR_BAD_EXE_FORMAT = 193
 
const int32 ERROR_EXE_MACHINE_TYPE_MISMATCH = 216
 
const int32 ERROR_ABANDONED_WAIT_0 = 735
 
const int32 ERROR_PIPE_CONNECTED = 535
 
const int32 ERROR_BROKEN_PIPE = 109
 
const int32 ERROR_MORE_DATA = 234
 
const int32 ERROR_NO_DATA = 232
 
const int32 ERROR_NO_MORE_ITEMS = 259
 
const int32 PROCESS_QUERY_INFORMATION = 0x0400
 
const int32 STATUS_PENDING = 0x00000103
 
const int32 STILL_ACTIVE = STATUS_PENDING
 
const int32 SYNCHRONIZE = 0x00100000
 
const int32 SEM_FAILCRITICALERRORS = 1
 
const int32 ERROR_SUCCESS = 0x0
 
const int32 ERROR_INVALID_FUNCTION = 0x1
 
const int32 ERROR_FILE_NOT_FOUND = 0x2
 
const int32 ERROR_PATH_NOT_FOUND = 0x3
 
const int32 ERROR_ACCESS_DENIED = 0x5
 
const int32 ERROR_INVALID_HANDLE = 0x6
 
const int32 ERROR_NOT_ENOUGH_MEMORY = 0x8
 
const int32 ERROR_INVALID_DATA = 0xd
 
const int32 ERROR_INVALID_DRIVE = 0xf
 
const int32 ERROR_NO_MORE_FILES = 0x12
 
const int32 ERROR_NOT_READY = 0x15
 
const int32 ERROR_SHARING_VIOLATION = 32
 
const int32 ERROR_ALREADY_EXISTS = 0xB7
 
const int32 GetFileExInfoStandard = 0
 
const int32 GWL_WNDPROC = (-4)
 
const int32 GWL_HWNDPARENT = (-8)
 
const int32 GWL_STYLE = (-16)
 
const int32 GWL_EXSTYLE = (-20)
 
const int32 GWL_ID = (-12)
 
const int32 GW_HWNDFIRST = 0
 
const int32 GW_HWNDLAST = 1
 
const int32 GW_HWNDNEXT = 2
 
const int32 GW_HWNDPREV = 3
 
const int32 OFN_READONLY = 0x00000001
 
const int32 OFN_OVERWRITEPROMPT = 0x00000002
 
const int32 OFN_HIDEREADONLY = 0x00000004
 
const int32 OFN_NOCHANGEDIR = 0x00000008
 
const int32 OFN_SHOWHELP = 0x00000010
 
const int32 OFN_ENABLEHOOK = 0x00000020
 
const int32 OFN_NOVALIDATE = 0x00000100
 
const int32 OFN_ALLOWMULTISELECT = 0x00000200
 
const int32 OFN_PATHMUSTEXIST = 0x00000800
 
const int32 OFN_FILEMUSTEXIST = 0x00001000
 
const int32 OFN_CREATEPROMPT = 0x00002000
 
const int32 OFN_EXPLORER = 0x00080000
 
const int32 OFN_NODEREFERENCELINKS = 0x00100000
 
const int32 OFN_ENABLESIZING = 0x00800000
 
const int32 OFN_USESHELLITEM = 0x01000000
 
const int32 CSIDL_DESKTOP = 0x0000
 
const int32 CSIDL_PROGRAMS = 0x0002
 
const int32 CSIDL_PERSONAL = 0x0005
 
const int32 CSIDL_STARTUP = 0x0007
 
const int32 CSIDL_LOCAL_APPDATA = 0x001c
 
const int32 CSIDL_COMMON_APPDATA = 0x0023
 
const int32 CSIDL_PROGRAM_FILES = 0x0026
 
const int32 WM_CLOSE = 0x0010
 
const int32 WM_DESTROY = 0x0002
 
const int32 WM_INITDIALOG = 0x0110
 
const int32 WM_SETFOCUS = 0x0007
 
const int32 WM_USER = 0x0400
 
const int32 WM_KEYDOWN = 0x0100
 
const int32 WM_KEYUP = 0x0101
 
const int32 WM_CHAR = 0x0102
 
const int32 WM_SETTINGCHANGE = 0x001A
 
const int32 BFFM_INITIALIZED = 1
 
const int32 BFFM_SELCHANGED = 2
 
const int32 BFFM_SETSELECTIONA = 0x400 + 102
 
const int32 BFFM_SETSELECTIONW = 0x400 + 103
 
const int32 BFFM_ENABLEOK = 0x400 + 101
 
const int32 STANDARD_RIGHTS_REQUIRED = 0x000F0000
 
const int32 PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFF
 
const uint32 STATUS_INFO_LENGTH_MISMATCH = 0xC0000004
 
const int32 PIPE_ACCESS_DUPLEX = 0x00000003
 
const int32 PIPE_ACCESS_INBOUND = 0x00000001
 
const int32 PIPE_ACCESS_OUTBOUND = 0x00000002
 
const int32 WRITE_DAC = 0x00040000
 
const int32 WRITE_OWNER = 0x00080000
 
const int32 ACCESS_SYSTEM_SECURITY = 0x01000000
 
const int32 PIPE_TYPE_BYTE = 0x00000000
 
const int32 PIPE_TYPE_MESSAGE = 0x00000004
 
const int32 PIPE_READMODE_BYTE = 0x00000000
 
const int32 PIPE_READMODE_MESSAGE = 0x00000002
 
const int32 PIPE_WAIT = 0x00000000
 
const int32 PIPE_NOWAIT = 0x00000001
 
const int32 PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000
 
const int32 PIPE_REJECT_REMOTE_CLIENTS = 0x00000008
 
const int32 PIPE_UNLIMITED_INSTANCES = 255
 
const int32 MEM_COMMIT = 0x1000
 
const int32 MEM_RESERVE = 0x2000
 
const int32 MEM_DECOMMIT = 0x4000
 
const int32 MEM_RELEASE = 0x8000
 
const int32 PAGE_NOACCESS = 0x01
 
const int32 PAGE_READONLY = 0x02
 
const int32 PAGE_READWRITE = 0x04
 
const int32 PAGE_WRITECOPY = 0x08
 
const int32 KEY_EXECUTE = (0x20019)
 
const int32 KEY_READ = (0x20019)
 
const int32 KEY_WRITE = (0x20006)
 
const int32 KEY_ALL_ACCESS = (0xf003f)
 
const int32 KEY_QUERY_VALUE = (0x0001)
 
const int32 KEY_SET_VALUE = (0x0002)
 
const int32 KEY_CREATE_SUB_KEY = (0x0004)
 
const int32 KEY_ENUMERATE_SUB_KEYS = (0x0008)
 
const int32 KEY_NOTIFY = (0x0010)
 
const int32 KEY_CREATE_LINK = (0x0020)
 
const int32 KEY_WOW64_32KEY = (0x0200)
 
const int32 KEY_WOW64_64KEY = (0x0100)
 
const int32 KEY_WOW64_RES = (0x0300)
 
const HKey HKEY_CLASSES_ROOT = (HKey)0x80000000
 
const HKey HKEY_CURRENT_USER = (HKey)0x80000001
 
const HKey HKEY_LOCAL_MACHINE = (HKey)0x80000002
 
const HKey HKEY_USERS = (HKey)0x80000003
 
const HKey HKEY_PERFORMANCE_DATA = (HKey)0x80000004
 
const HKey HKEY_PERFORMANCE_TEXT = (HKey)0x80000050
 
const HKey HKEY_PERFORMANCE_NLSTEXT = (HKey)0x80000060
 
const HKey HKEY_CURRENT_CONFIG = (HKey)0x80000005
 
const HKey HKEY_DYN_DATA = (HKey)0x80000006
 
const HKey HKEY_CURRENT_USER_LOCAL_SETTINGS = (HKey)0x80000007
 
const int32 NtQueryProcessBasicInfo = 0
 
const int32 NtQuerySystemProcessInformation = 5
 
const int32 TIME_ZONE_ID_INVALID = -1
 
const int32 OBJECT_INHERIT_ACE = 1
 
const int32 CONTAINER_INHERIT_ACE = 2
 
const int32 NO_PROPAGATE_INHERIT_ACE = 4
 
const int32 INHERIT_ONLY_ACE = 8
 
const int32 INHERITED_ACE = 0x10
 
const int32 VALID_INHERIT_FLAGS = 0x1F
 
const int32 SMTO_NORMAL = 0x0000
 
const int32 SMTO_BLOCK = 0x0001
 
const int32 SMTO_ABORTIFHUNG = 0x0002
 
const int32 VS_FF_DEBUG = 0x00000001
 
const int32 VS_FF_PRERELEASE = 0x00000002
 
const int32 VS_FF_PATCHED = 0x00000004
 
const int32 VS_FF_PRIVATEBUILD = 0x00000008
 
const int32 VS_FF_INFOINFERRED = 0x00000010
 
const int32 VS_FF_SPECIALBUILD = 0x00000020L