Here's what I'm trying to compile:

Getting an error at:
Public Declare Sub RtlMoveMemory Lib "kernel32" (Dest As Any, Src As Any, ByVal L As Long)

Could someone else try and see what the problem is? I really want to get this compiled into a .dll

The correct declaration of this from the vb API viewer is...

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long

So from what I can tell the declaration that they are using is correct (its just without the alias), however, if you are trying to paste this code into a form, then you need to turn these declarations from public to private.

Good Luck