33template <
typename Character>
43#pragma warning(suppress:28931)
44 Character
const drive_letter =
static_cast<Character
>(
toupper(
static_cast<char>(
path[0])));
45 Character
const name[] = {
'=', drive_letter,
':',
'\0' };
47 if (traits::set_environment_variable(
name,
path))
56template <
typename Character>
64 if (!traits::set_current_directory(
path))
86 Character buffer_initial_storage[
MAX_PATH + 1];
89 errno_t const err = traits::get_current_directory(current_directory_buffer);
96 return set_cwd_environment_variable(current_directory_buffer.
data());
103 return common_chdir(
path);
108 return common_chdir(
path);
int __cdecl _wchdir(wchar_t const *const path)
int __cdecl _chdir(char const *const path)
void __cdecl __acrt_errno_map_os_error(unsigned long)
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
#define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr)
DWORD WINAPI GetLastError(void)