メモリブロックをコピーする
Declare Sub MoveMemory Lib "kernel32.dll" Alias "RtlMoveMemory" _
(Destination As Any, Source As Any, ByVal Length As Long)
Declare Sub MoveMemory Lib "kernel32.dll" Alias "RtlMoveMemory" _
(Destination As Integer, Source As Integer, ByVal Length As Integer)
VOID MoveMemory (
PVOID Destination,
CONST VOID *Source,
SIZE_T Length
);
引数
Destination
コピー先メモリブロックのアドレスSource
コピーするメモリブロックのアドレスLength
コピーするバイト数備考
MoveMemory()関数はメモリのポインタ制御に使用することが多いサンプル
ダウンロード(MoveMemory.lzh 11.7KB)