[Toc][Index]

DosChDir


Bindings:  C, MASM 

This call defines the current directory for the requesting process. 
 DosChDir    (DirName, Reserved) 
 
 DirName (PSZ) - input 
    Address of the ASCIIZ directory path name. 
 Reserved (ULONG) - input 
    Reserved and must be set to zero. 
 rc (USHORT) - return 
    Return code descriptions are: 
    0         NO_ERROR 
    2         ERROR_FILE_NOT_FOUND 
    3         ERROR_PATH_NOT_FOUND 
    5         ERROR_ACCESS_DENIED 
    8         ERROR_NOT_ENOUGH_MEMORY 
    26        ERROR_NOT_DOS_DISK 
    87        ERROR_INVALID_PARAMETER 
    108       ERROR_DRIVE_LOCKED 
    206       ERROR_FILENAME_EXCED_RANGE 
 
 Remarks 
 The directory path is not changed if any member of the path does not 
 exist. The current directory changes only for the requesting process. 
 For FSDs, the case of the current directory is set according to the 
 DirName passed in, not according to the case of the directories on disk. 
 For example, if the directory "c:\bin" is created and DosChDir is called 
 with DirName "c:\bin", the current directory returned by DosQCurDir will 
 be "c:\bin". 
 Programs running without the NEWFILES bit set are allowed to DosChDir to 
 a non-8.3 filename format directory. 
 DosQSysInfo must be used by an application to determine the maximum path 
 length supported by OS/2.  The returned value should be used to 
 dynamically allocate buffers that are to be used to store paths. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs