NAME

_chdrive  (MSVCRT.@)

SYNOPSIS

 int CDECL  _chdrive
 (
  int newdrive
 )

DESCRIPTION

Change the current drive.

PARAMS

newdrive [In] Drive number to change to (1 = 'A', 2 = 'B', ...).

RETURNS

Success: 0. The current drive is set to newdrive.

Failure: -1. errno indicates the error.

NOTES

See SetCurrentDirectoryA.

IMPLEMENTATION

Declared in "msvcrt/direct.h". https://source.winehq.org/source/include/msvcrt/direct.h

Implemented in "dlls/msvcrt/dir.c". https://source.winehq.org/source/dlls/msvcrt/dir.c

Debug channel "msvcrt".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.