RAD Studio |  |

direct.h
Collapse All

The following functions, macros, and classes are provided in direct.h:

Topics

Name | Description
_chdrive | Header File direct.h Category Directory Control Routines Prototype int _chdrive(int drive); Description Sets current disk drive. _chdrive sets the current drive to the one associated with drive: 1 for A, 2 for B, 3 for C, and so on. This function changes the current drive of the parent process. Return Value _chdrive returns 0 if the current drive was changed successfully; otherwise, it returns -1. Example
_getdcwd, _wgetdcwd | Header File direct.h Category Directory Control Routines Prototype char * _getdcwd(int drive, char *buffer, int buflen); wchar_t * _wgetdcwd(int drive, wchar_t *buffer, int buflen); Description Gets current directory for specified drive. _getdcwd gets the full path name of the working directory of the specified drive (including the drive name), up to buflen bytes long, and stores it in buffer. If the full path name length (including the null-terminator) is longer than buflen, an error occurs. The drive is 0 for the default drive, 1=A, 2=B, and so on. If the working directory is the root directory, the terminating character for... more

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!