<P>VOID CopyMemory(<BR>&nbsp; PVOID Destination,&nbsp;&nbsp; // copy destination<BR>&nbsp; CONST VOID* Source,&nbsp; // memory block<BR>&nbsp; SIZE_T Length&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // size of memory block<BR>);</P>
<P>Destination: 要拷贝到的内存地址<BR>Source:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 拷贝的源地址<BR>Length:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 拷贝的内存的大小</P>
<P>例子:<BR>void test(char *pbData, unsigned int cbData) {<BR>&nbsp; char buf[BUFFER_SIZE];<BR>&nbsp; CopyMemory(buf, pbData, min(cbData,BUFFER_SIZE));<BR>}<BR></P>