---
name: "PathGetDriveNumberA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/PathGetDriveNumberA"
---

# PathGetDriveNumberA(3w)

## NAME

**PathGetDriveNumberA** (SHLWAPI.@)

## SYNOPSIS

int PathGetDriveNumberA\
  (\
   LPCSTR *lpszPath*\
  )

## DESCRIPTION

Return the drive number from a path.

## PARAMS

*lpszPath* **\[In\]**  Path to get the drive number from.

## RETURNS

**Success:** The drive number corresponding to the drive in the path

**Failure:** **-1**, if *lpszPath* contains no valid drive

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/path.c"**.

Debug channel **"shell"**.
