B.1 CopyMemory

only for RuBoard - do not distribute or recompile

B.1 CopyMemory

There is really no function called CopyMemory . CopyMemory is merely an alias for the Win32 function RtlMoveMemory . Bruce McKinney, the author of Hardcore Visual Basic (Microsoft Press), was probably the first to use the alias CopyMemory . Now it is quite common to see RtlMoveMemory declared in this fashion. Its syntax (as reflected in a Visual Basic Declare statement) is:

 Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _      (pDest As Any, pSource As Any, ByVal ByteLen As Long) 

where pDest is a pointer to the starting target address to which data is to be copied , pSource is a pointer to the starting address from which data is to be copied, and ByteLen is the number of bytes to be copied.

only for RuBoard - do not distribute or recompile


Visual Basic Shell Programming
Visual Basic Shell Programming
ISBN: B00007FY99
EAN: N/A
Year: 2000
Pages: 128

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net