Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.82 KB

getdcwd-nolock-wgetdcwd-nolock.md

File metadata and controls

76 lines (57 loc) · 2.82 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _getdcwd_nolock, _wgetdcwd_nolock
_getdcwd_nolock, _wgetdcwd_nolock
11/04/2016
_wgetdcwd_nolock
_getdcwd_nolock
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
DLLExport
apiref
_wgetdcwd_nolock
tgetdcwd_nolock
wgetdcwd_nolock
_getdcwd_nolock
_tgetdcwd_nolock
getdcwd_nolock
getdcwd_nolock function
_tgetdcwd_nolock function
working directory
tgetdcwd_nolock function
_getdcwd_nolock function
current working directory
wgetdcwd_nolock function
_wgetdcwd_nolock function
directories [C++], current working
d9bdf712-43f8-4173-8f9a-844e82beaa97

_getdcwd_nolock, _wgetdcwd_nolock

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

Important

This API cannot be used in applications that execute in the Windows Runtime. For more information, see CRT functions not supported in Universal Windows Platform apps.

Syntax

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_nolock and wchar_t for _wgetdcwd_nolock.

Return value

See _getdcwd, _wgetdcwd.

Remarks

_getdcwd_nolock and _wgetdcwd_nolock are identical to _getdcwd and _wgetdcwd, respectively, except that they aren't protected from interference by other threads. They might be faster because they don't 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

Requirements

Routine Required header
_getdcwd_nolock <direct.h>
_wgetdcwd_nolock <direct.h> or <wchar.h>

For more compatibility information, see Compatibility.

See also

Directory control
_chdir, _wchdir
_getcwd, _wgetcwd
_getdrive
_mkdir, _wmkdir
_rmdir, _wrmdir