I try this: mov eax,offset newdir push eax Call SetCurrentDirectoryA and it doest work. in td32 eax always returns 1, never fails, eveb when i should hit root directory, which leads me to belive the direcory isnt changing is there soemthing im forgetting to do that is also necessary to change dirs? i use Tasm32. im using windows 98 second edition. i compile my source like this: tasm32 /ml /m3 Sourcecode.asm tlink32 /Tpe /aa /x SourceCode.obj,,,import32.lib any help you guys could lend would be greatly apprecieated
Posted on 2001-03-06 09:11:00 by Cell_
According to the SDK, SetCurrentDirectory returns 0 if it fails and nonzero for success. So, it appears that the function is working.
Posted on 2001-03-06 09:49:00 by anon
NO Its not because even in root directory function doesnt return 0! like it sshould its looping forever why>
Posted on 2001-03-06 18:36:00 by Cell_
What is it you are trying to do ? Maybe you could post part of your code ?
Posted on 2001-03-06 19:11:00 by anon
is newdir null terminated? i think something like this should not return any errors (or will work well): .data newdir db "c:\windows",0 ; (c:\windows\<-???) .code push offset newdir call SetCurrentDirectoryA
Posted on 2001-03-07 21:42:00 by drcmda