---
name: "_getdrive"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/_getdrive"
---

# \_getdrive(3w)

## NAME

**\_getdrive** (MSVCRT.@)

## SYNOPSIS

int CDECL  \_getdrive\
  (\
  )

## DESCRIPTION

Get the current drive number.

## PARAMS

None.

## RETURNS

**Success:** The drive letter number from **1** to **26** (**"A:"** to **"Z:"**).

**Failure:** **0.**

## IMPLEMENTATION

Defined in **"msvcrt.h"**.

Implemented in **"dlls/msvcrt/dir.c"**.

Debug channel **"msvcrt"**.
