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
According to the SDK, SetCurrentDirectory returns 0 if it fails and nonzero for success. So, it appears that the function is working.
NO Its not because even in root directory function doesnt return 0! like it sshould its looping forever why>
What is it you are trying to do ? Maybe you could post part of your code ?
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