C# Class Windows, terrafx.interop.windows

Mostra file Open project: terrafx/terrafx.interop.windows Class Usage Examples

Private Properties

Property Type Description
AllocateUserPhysicalPages BOOL
AllocateUserPhysicalPagesNuma BOOL
CreateFileMapping2 HANDLE
CreateFileMappingFromApp HANDLE
CreateFileMappingNumaW HANDLE
CreateFileMappingW HANDLE
CreateMemoryResourceNotification HANDLE
DiscardVirtualMemory uint
FlushViewOfFile BOOL
FreeUserPhysicalPages BOOL
GetLargePageMinimum nuint
GetMemoryErrorHandlingCapabilities BOOL
GetProcessWorkingSetSize BOOL
GetProcessWorkingSetSizeEx BOOL
GetSystemFileCacheSize BOOL
GetWriteWatch uint
MapUserPhysicalPages BOOL
MapViewOfFile void*
MapViewOfFile2 void*
MapViewOfFile3 void*
MapViewOfFile3FromApp void*
MapViewOfFileEx void*
MapViewOfFileFromApp void*
MapViewOfFileNuma2 void*
OfferVirtualMemory uint
OpenFileMappingFromApp HANDLE
OpenFileMappingW HANDLE
PrefetchVirtualMemory BOOL
QueryMemoryResourceNotification BOOL
QueryVirtualMemoryInformation BOOL
ReadProcessMemory BOOL
ReclaimVirtualMemory uint
RegisterBadMemoryNotification void*
ResetWriteWatch uint
SetProcessValidCallTargets BOOL
SetProcessWorkingSetSize BOOL
SetProcessWorkingSetSizeEx BOOL
SetSystemFileCacheSize BOOL
UnmapViewOfFile BOOL
UnmapViewOfFile2 BOOL
UnmapViewOfFileEx BOOL
UnregisterBadMemoryNotification BOOL
VirtualAlloc void*
VirtualAlloc2 void*
VirtualAlloc2FromApp void*
VirtualAllocEx void*
VirtualAllocExNuma void*
VirtualAllocFromApp void*
VirtualFree BOOL
VirtualFreeEx BOOL
VirtualLock BOOL
VirtualProtect BOOL
VirtualProtectEx BOOL
VirtualProtectFromApp BOOL
VirtualQuery nuint
VirtualQueryEx nuint
VirtualUnlock BOOL
WriteProcessMemory BOOL

Public Methods

Method Description
MEVT_EVENTPARM ( byte x ) : uint
MEVT_EVENTTYPE ( uint x ) : byte
PROPSETHDR_OSVER_KIND ( nuint dwOSVer ) : ushort
PROPSETHDR_OSVER_MAJOR ( nuint dwOSVer ) : byte
PROPSETHDR_OSVER_MINOR ( nuint dwOSVer ) : byte

Private Methods

Method Description
AllocateUserPhysicalPages ( HANDLE hProcess, nuint* NumberOfPages, nuint* PageArray ) : BOOL
AllocateUserPhysicalPagesNuma ( HANDLE hProcess, nuint* NumberOfPages, nuint* PageArray, uint nndPreferred ) : BOOL
CreateFileMapping2 ( HANDLE File, SECURITY_ATTRIBUTES* SecurityAttributes, uint DesiredAccess, uint PageProtection, uint AllocationAttributes, ulong MaximumSize, ushort* Name, MEM_EXTENDED_PARAMETER* ExtendedParameters, uint ParameterCount ) : HANDLE
CreateFileMappingFromApp ( HANDLE hFile, SECURITY_ATTRIBUTES* SecurityAttributes, uint PageProtection, ulong MaximumSize, ushort* Name ) : HANDLE
CreateFileMappingNumaW ( HANDLE hFile, SECURITY_ATTRIBUTES* lpFileMappingAttributes, uint flProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, ushort* lpName, uint nndPreferred ) : HANDLE
CreateFileMappingW ( HANDLE hFile, SECURITY_ATTRIBUTES* lpFileMappingAttributes, uint flProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, ushort* lpName ) : HANDLE
CreateMemoryResourceNotification ( MEMORY_RESOURCE_NOTIFICATION_TYPE NotificationType ) : HANDLE
DiscardVirtualMemory ( void* VirtualAddress, nuint Size ) : uint
FlushViewOfFile ( void* lpBaseAddress, nuint dwNumberOfBytesToFlush ) : BOOL
FreeUserPhysicalPages ( HANDLE hProcess, nuint* NumberOfPages, nuint* PageArray ) : BOOL
GetLargePageMinimum ( ) : nuint
GetMemoryErrorHandlingCapabilities ( uint* Capabilities ) : BOOL
GetProcessWorkingSetSize ( HANDLE hProcess, nuint* lpMinimumWorkingSetSize, nuint* lpMaximumWorkingSetSize ) : BOOL
GetProcessWorkingSetSizeEx ( HANDLE hProcess, nuint* lpMinimumWorkingSetSize, nuint* lpMaximumWorkingSetSize, uint* Flags ) : BOOL
GetSystemFileCacheSize ( nuint* lpMinimumFileCacheSize, nuint* lpMaximumFileCacheSize, uint* lpFlags ) : BOOL
GetWriteWatch ( uint dwFlags, void* lpBaseAddress, nuint dwRegionSize, void** lpAddresses, nuint* lpdwCount, uint* lpdwGranularity ) : uint
MapUserPhysicalPages ( void* VirtualAddress, nuint NumberOfPages, nuint* PageArray ) : BOOL
MapViewOfFile ( HANDLE hFileMappingObject, uint dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, nuint dwNumberOfBytesToMap ) : void*
MapViewOfFile2 ( HANDLE FileMappingHandle, HANDLE ProcessHandle, ulong Offset, void* BaseAddress, nuint ViewSize, uint AllocationType, uint PageProtection ) : void*
MapViewOfFile3 ( HANDLE FileMapping, HANDLE Process, void* BaseAddress, ulong Offset, nuint ViewSize, uint AllocationType, uint PageProtection, MEM_EXTENDED_PARAMETER* ExtendedParameters, uint ParameterCount ) : void*
MapViewOfFile3FromApp ( HANDLE FileMapping, HANDLE Process, void* BaseAddress, ulong Offset, nuint ViewSize, uint AllocationType, uint PageProtection, MEM_EXTENDED_PARAMETER* ExtendedParameters, uint ParameterCount ) : void*
MapViewOfFileEx ( HANDLE hFileMappingObject, uint dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, nuint dwNumberOfBytesToMap, void* lpBaseAddress ) : void*
MapViewOfFileFromApp ( HANDLE hFileMappingObject, uint DesiredAccess, ulong FileOffset, nuint NumberOfBytesToMap ) : void*
MapViewOfFileNuma2 ( HANDLE FileMappingHandle, HANDLE ProcessHandle, ulong Offset, void* BaseAddress, nuint ViewSize, uint AllocationType, uint PageProtection, uint PreferredNode ) : void*
OfferVirtualMemory ( void* VirtualAddress, nuint Size, OFFER_PRIORITY Priority ) : uint
OpenFileMappingFromApp ( uint DesiredAccess, BOOL InheritHandle, ushort* Name ) : HANDLE
OpenFileMappingW ( uint dwDesiredAccess, BOOL bInheritHandle, ushort* lpName ) : HANDLE
PrefetchVirtualMemory ( HANDLE hProcess, nuint NumberOfEntries, WIN32_MEMORY_RANGE_ENTRY* VirtualAddresses, uint Flags ) : BOOL
QueryMemoryResourceNotification ( HANDLE ResourceNotificationHandle, BOOL* ResourceState ) : BOOL
QueryVirtualMemoryInformation ( HANDLE Process, void* VirtualAddress, WIN32_MEMORY_INFORMATION_CLASS MemoryInformationClass, void* MemoryInformation, nuint MemoryInformationSize, nuint* ReturnSize ) : BOOL
ReadProcessMemory ( HANDLE hProcess, void* lpBaseAddress, void* lpBuffer, nuint nSize, nuint* lpNumberOfBytesRead ) : BOOL
ReclaimVirtualMemory ( void* VirtualAddress, nuint Size ) : uint
RegisterBadMemoryNotification ( ) : void*
ResetWriteWatch ( void* lpBaseAddress, nuint dwRegionSize ) : uint
SetProcessValidCallTargets ( HANDLE hProcess, void* VirtualAddress, nuint RegionSize, uint NumberOfOffsets, CFG_CALL_TARGET_INFO* OffsetInformation ) : BOOL
SetProcessWorkingSetSize ( HANDLE hProcess, nuint dwMinimumWorkingSetSize, nuint dwMaximumWorkingSetSize ) : BOOL
SetProcessWorkingSetSizeEx ( HANDLE hProcess, nuint dwMinimumWorkingSetSize, nuint dwMaximumWorkingSetSize, uint Flags ) : BOOL
SetSystemFileCacheSize ( nuint MinimumFileCacheSize, nuint MaximumFileCacheSize, uint Flags ) : BOOL
UnmapViewOfFile ( void* lpBaseAddress ) : BOOL
UnmapViewOfFile2 ( HANDLE Process, void* BaseAddress, uint UnmapFlags ) : BOOL
UnmapViewOfFileEx ( void* BaseAddress, uint UnmapFlags ) : BOOL
UnregisterBadMemoryNotification ( void* RegistrationHandle ) : BOOL
VirtualAlloc ( void* lpAddress, nuint dwSize, uint flAllocationType, uint flProtect ) : void*
VirtualAlloc2 ( HANDLE Process, void* BaseAddress, nuint Size, uint AllocationType, uint PageProtection, MEM_EXTENDED_PARAMETER* ExtendedParameters, uint ParameterCount ) : void*
VirtualAlloc2FromApp ( HANDLE Process, void* BaseAddress, nuint Size, uint AllocationType, uint PageProtection, MEM_EXTENDED_PARAMETER* ExtendedParameters, uint ParameterCount ) : void*
VirtualAllocEx ( HANDLE hProcess, void* lpAddress, nuint dwSize, uint flAllocationType, uint flProtect ) : void*
VirtualAllocExNuma ( HANDLE hProcess, void* lpAddress, nuint dwSize, uint flAllocationType, uint flProtect, uint nndPreferred ) : void*
VirtualAllocFromApp ( void* BaseAddress, nuint Size, uint AllocationType, uint Protection ) : void*
VirtualFree ( void* lpAddress, nuint dwSize, uint dwFreeType ) : BOOL
VirtualFreeEx ( HANDLE hProcess, void* lpAddress, nuint dwSize, uint dwFreeType ) : BOOL
VirtualLock ( void* lpAddress, nuint dwSize ) : BOOL
VirtualProtect ( void* lpAddress, nuint dwSize, uint flNewProtect, uint* lpflOldProtect ) : BOOL
VirtualProtectEx ( HANDLE hProcess, void* lpAddress, nuint dwSize, uint flNewProtect, uint* lpflOldProtect ) : BOOL
VirtualProtectFromApp ( void* Address, nuint Size, uint NewProtection, uint* OldProtection ) : BOOL
VirtualQuery ( void* lpAddress, MEMORY_BASIC_INFORMATION* lpBuffer, nuint dwLength ) : nuint
VirtualQueryEx ( HANDLE hProcess, void* lpAddress, MEMORY_BASIC_INFORMATION* lpBuffer, nuint dwLength ) : nuint
VirtualUnlock ( void* lpAddress, nuint dwSize ) : BOOL
WriteProcessMemory ( HANDLE hProcess, void* lpBaseAddress, void* lpBuffer, nuint nSize, nuint* lpNumberOfBytesWritten ) : BOOL

Method Details

MEVT_EVENTPARM() public static method

public static MEVT_EVENTPARM ( byte x ) : uint
x byte
return uint

MEVT_EVENTTYPE() public static method

public static MEVT_EVENTTYPE ( uint x ) : byte
x uint
return byte

PROPSETHDR_OSVER_KIND() public static method

public static PROPSETHDR_OSVER_KIND ( nuint dwOSVer ) : ushort
dwOSVer nuint
return ushort

PROPSETHDR_OSVER_MAJOR() public static method

public static PROPSETHDR_OSVER_MAJOR ( nuint dwOSVer ) : byte
dwOSVer nuint
return byte

PROPSETHDR_OSVER_MINOR() public static method

public static PROPSETHDR_OSVER_MINOR ( nuint dwOSVer ) : byte
dwOSVer nuint
return byte