CopyMemory
The CopyMemory function copies a block of memory from one location to another. VOID CopyMemory(
PVOID Destination, // pointer to address of copy destination
CONST VOID *Source, // pointer to address of block to copy
DWORD Length // size, in bytes, of block to copy
);
Parameters
Destination
Pointer to the starting address of the copied block's destination.
Source
Pointer to the starting address of the block of memory to copy.
Length
Specifies the size, in bytes, of the block of memory to copy.
Return Values
This function has no return value. Res
If the source and destination blocks overlap, the results are undefined. For overlapped blocks, use the MoveMemory function. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h.See Also
Memory Management Overview, Memory Management Functions, CopyMemoryVlm, FillMemory, FillMemoryVlm, MoveMemory, MoveMemoryVlm, ZeroMemory
The CopyMemory function copies a block of memory from one location to another. VOID CopyMemory(
PVOID Destination, // pointer to address of copy destination
CONST VOID *Source, // pointer to address of block to copy
DWORD Length // size, in bytes, of block to copy
);
Parameters
Destination
Pointer to the starting address of the copied block's destination.
Source
Pointer to the starting address of the block of memory to copy.
Length
Specifies the size, in bytes, of the block of memory to copy.
Return Values
This function has no return value. Res
If the source and destination blocks overlap, the results are undefined. For overlapped blocks, use the MoveMemory function. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h.See Also
Memory Management Overview, Memory Management Functions, CopyMemoryVlm, FillMemory, FillMemoryVlm, MoveMemory, MoveMemoryVlm, ZeroMemory
解决方案 »
- 动态创建多个OptionButton控件如何分组?
- Visual Basic 五子棋程序源代码(人机对下、免费提供)
- VB 控制外部的多媒体文件的问题
- 获取记录条数的问题,在线等待,急,解决就给分
- 关于matlab非线性最小二乘求解的问题
- gbasic所编程序中有CVS函数,请问有什么用?如何使用?
- VB 试题库系统如何完成对OLE对象的输入和输出
- 这个SQL 语句如何写?
- 请问如何编代码调出软键盘
- 谁知道有关于.jpg文件的文件头信息.或者有相关.dll文件提供.我的email是[email protected]
- 在MSCHART中如何实现一边显示刻度值,一边显示百分比,在线等待
- MSHFlexGrid绑定后,如何日期字段显示需要的格式
Destination:目的地址
Source:源地址
Length:复制的长度(字节)
调用的实际上是RtlMoveMemory这个函数
http://www.csdn.net/develop/read_article.asp?id=12675