Kernel32FillMemory Method
Fills a block of memory with a specified value.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", EntryPoint = "RtlFillMemory", SetLastError = true)]
public static void FillMemory(
IntPtr destination,
IntPtr length,
byte fillValue
)
<DllImportAttribute("Kernel32.dll", EntryPoint := "RtlFillMemory", SetLastError := true>]
Public Shared Sub FillMemory (
destination As IntPtr,
length As IntPtr,
fillValue As Byte
)
Dim destination As IntPtr
Dim length As IntPtr
Dim fillValue As Byte
Kernel32.FillMemory(destination, length,
fillValue)
public:
[DllImportAttribute(L"Kernel32.dll", EntryPoint = L"RtlFillMemory", SetLastError = true)]
static void FillMemory(
IntPtr destination,
IntPtr length,
unsigned char fillValue
)
[<DllImportAttribute("Kernel32.dll", EntryPoint = "RtlFillMemory", SetLastError = true)>]
static member FillMemory :
destination : IntPtr *
length : IntPtr *
fillValue : byte -> unit
No code example is currently available or this language may not be supported.
Parameters
- destination IntPtr
-
A pointer to the starting address of the block of memory to fill.
- length IntPtr
-
The size of the block of memory to fill, in bytes.
This value must be less than the size of the destination buffer.
- fillValue Byte
-
The byte value with which to fill the memory block.