Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.43 KB

File metadata and controls

44 lines (33 loc) · 1.43 KB

Home

Function name : CopyMemory

Group: Memory Management - Library: kernel32



Code examples:

Converting command-line string to a set of Unicode argument strings
Winsock: retrieving information from a host database for a given host name
Testing serial ports
Connecting a local device to a network resource
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Custom FTP Class for Visual FoxPro application
Verifying a file using the Authenticode policy provider

Declaration:

VOID CopyMemory(
  PVOID Destination,   // copy destination
  CONST VOID* Source,  // memory block
  SIZE_T Length        // size of memory block
);  

FoxPro declaration:

DECLARE RtlMoveMemory IN kernel32 As CopyMemory;
    STRING  @ Destination,;
    INTEGER   Source,;
    INTEGER   nLength  

Comments:

The FoxPro declaration looks a bit tricky. There is no direct CopyMemory declaration in KERNEL32 module. Actually you can omit the alias and work directly with the name RtlMoveMemory.