|
提取新东方背单词II的词库(2) name[1] = ':'; name[2] = '\\'; name[3] = 'c'; name[4] = 0 ; HANDLE handle = (HANDLE)OpenFile(name,&ofs,OF_WRITE); SetFilePointer(handle,0,0,FILE_END); char buf[0x10]; DWORD byte; WriteFile(handle,buf,0x10,&byte,0); FlushFileBuffers(handle); CloseHandle(handle); 然后在vc.net中直接看汇编代码 sub esp,0A8h mov al,63h mov byte ptr [esp+8],al mov byte ptr [esp+0B],al push 1 lea eax,[esp+24] push eax lea ecx,[esp+10] push ecx mov byte ptr [esp+15],3A mov byte ptr [esp+16],5C mov byte ptr [esp+18],0 call dword ptr [__imp__OpenFile@12 (405010h)] //004e3238 push 2 push 0 mov esi,eax push 0 push esi call dword ptr [__imp__SetFilePointer@16 (40500Ch)] //004e32c0 push 0 lea edx,[esp+8] push edx push 400 //写入字节数
|