Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does RTLCopyMemory work in Vista?

I've noticed that RTLMoveMemory seems to work just fine. But when I try to use RTLCopyMemory I get: "Can't find DLL entry point RtlCopyMemory in kernel32". Here is my declare:

Private Declare Sub CopyMem Lib "kernel32" Alias "RtlCopyMemory" ( _
    ByVal dest As Long, _
    ByVal source As Long, _
    ByVal bytLen As Long)
like image 428
Oorang Avatar asked Nov 22 '25 08:11

Oorang


1 Answers

RtlCopyMemory is provided inline. It is defined in winnt.h as memcpy. This means that it's not included in a Win32 DLL, it's part of the C runtime library. You could try importing memcpy from c:\windows\system32\msvcrt.dll.

like image 81
Aaron Klotz Avatar answered Nov 24 '25 11:11

Aaron Klotz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!