Export (0) Print
Expand All
div
eof
Expand Minimize
This topic has not yet been rated - Rate this topic

_getdcwd_nolock, _wgetdcwd_nolock 

Gets the full path name of the current working directory on the specified drive.


char *_getdcwd_nolock( 
   int drive,
   char *buffer,
   int maxlen 
);
wchar_t *_wgetdcwd_nolock( 
   int drive,
   wchar_t *buffer,
   int maxlen 
);

Parameters

drive

Disk drive.

buffer

Storage location for the path.

maxlen

Maximum length of path in characters: char for _getdcwd and wchar_t for _wgetdcwd.

_getdcwd_nolock and _wgetdcwd_nolock are identical to _getdcwd and _wgetdcwd, respectively, except that they are not protected from interference by other threads. They might be faster because they do not incur the overhead of locking out other threads. Use these functions only in thread-safe contexts such as single-threaded applications or where the calling scope already handles thread isolation.

Generic-Text Routine Mappings
Tchar.h routine _UNICODE and _MBCS not defined _MBCS defined _UNICODE defined

_tgetdcwd_nolock

_getdcwd_nolock

_getdcwd_nolock

_wgetdcwd_nolock

Routine Required header Compatibility

_getdcwd_nolock

<direct.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_wgetdcwd_nolock

<direct.h> or <wchar.h>

Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For more compatibility information, see Compatibility in the Introduction.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.