C# Класс Interop

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CheckForAvailableVirtualMemory ( ulong nativeSize ) : void
CreateFileMapping ( IntPtr hFile, Kernel32 &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
CreateFileMapping ( IntPtr hFile, mincore &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
CreateFileMapping ( SafeFileHandle, hFile, Kernel32 &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
CreateFileMapping ( SafeFileHandle, hFile, mincore &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
MapViewOfFile ( SafeMemoryMappedFileHandle hFileMappingObject, int desiredAccess, long fileOffset, UIntPtr numberOfBytesToMap ) : SafeMemoryMappedViewHandle
OpenFileMapping ( int desiredAccess, bool inheritHandle, string name ) : SafeMemoryMappedFileHandle
VirtualAlloc ( SafeHandle baseAddress, UIntPtr size, int allocationType, int protection ) : IntPtr

Приватные методы

Метод Описание
HRESULT_FROM_WIN32 ( int errorCode ) : int
MapSecurityStatus ( uint statusCode ) : string
SplitLong ( long number, int &high, int &low ) : void

Описание методов

CheckForAvailableVirtualMemory() публичный статический Метод

public static CheckForAvailableVirtualMemory ( ulong nativeSize ) : void
nativeSize ulong
Результат void

CreateFileMapping() публичный статический Метод

public static CreateFileMapping ( IntPtr hFile, Kernel32 &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
hFile IntPtr
securityAttributes Kernel32
pageProtection int
maximumSize long
name string
Результат SafeMemoryMappedFileHandle

CreateFileMapping() публичный статический Метод

public static CreateFileMapping ( IntPtr hFile, mincore &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
hFile IntPtr
securityAttributes mincore
pageProtection int
maximumSize long
name string
Результат SafeMemoryMappedFileHandle

CreateFileMapping() публичный статический Метод

public static CreateFileMapping ( SafeFileHandle, hFile, Kernel32 &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
hFile SafeFileHandle,
securityAttributes Kernel32
pageProtection int
maximumSize long
name string
Результат SafeMemoryMappedFileHandle

CreateFileMapping() публичный статический Метод

public static CreateFileMapping ( SafeFileHandle, hFile, mincore &securityAttributes, int pageProtection, long maximumSize, string name ) : SafeMemoryMappedFileHandle
hFile SafeFileHandle,
securityAttributes mincore
pageProtection int
maximumSize long
name string
Результат SafeMemoryMappedFileHandle

MapViewOfFile() публичный статический Метод

public static MapViewOfFile ( SafeMemoryMappedFileHandle hFileMappingObject, int desiredAccess, long fileOffset, UIntPtr numberOfBytesToMap ) : SafeMemoryMappedViewHandle
hFileMappingObject SafeMemoryMappedFileHandle
desiredAccess int
fileOffset long
numberOfBytesToMap UIntPtr
Результат SafeMemoryMappedViewHandle

OpenFileMapping() публичный статический Метод

public static OpenFileMapping ( int desiredAccess, bool inheritHandle, string name ) : SafeMemoryMappedFileHandle
desiredAccess int
inheritHandle bool
name string
Результат SafeMemoryMappedFileHandle

VirtualAlloc() публичный статический Метод

public static VirtualAlloc ( SafeHandle baseAddress, UIntPtr size, int allocationType, int protection ) : IntPtr
baseAddress SafeHandle
size UIntPtr
allocationType int
protection int
Результат IntPtr