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

# MSVCRT\_\_getdiskfree(3w)

## NAME

**MSVCRT\_\_getdiskfree** (MSVCRT.@)

## SYNOPSIS

unsigned int CDECL  MSVCRT\_\_getdiskfree\
  (\
   unsigned int               *disk*,\
   struct MSVCRT\_\_diskfree\_t\* *d*\
  )

## DESCRIPTION

Get information about the free space on a drive.

## PARAMS

*disk* **\[In\]**  Drive number to get information about (**1** = **'A'**, **2** = **'B'**, **...**).

info **\[Out\]**  Destination for the resulting information.

## RETURNS

**Success:** **0.** information is updated with the free space information.

**Failure:** An error code from **[GetLastError(3w)](/GetLastError/3w.md)**.

## NOTES

See **[GetLastError(3w)](/GetLastError/3w.md)**.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

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

Debug channel **"msvcrt"**.
