__declspec (naked) int __stdcall DirExists(char* pszsrc) { __asm { sub esp, 328 lea ecx, [esp+8] mov eax, [esp+332] mov [esp+4], ecx mov [esp], eax call dword ptr FindFirstFile cmp eax, -1 je short notDir push eax call dword ptr FindClose mov eax, [esp] add esp, 320 and eax, 10h ret 4 notDir: add esp, 320 xor eax, eax ret 4 } }
BruNews, ciao...
|