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

# GetVersionFromFileExW(3w)

## NAME

**GetVersionFromFileExW** (ADVPACK.@)

## SYNOPSIS

HRESULT GetVersionFromFileExW\
  (\
   LPCWSTR *lpszFilename*,\
   LPDWORD *pdwMSVer*,\
   LPDWORD *pdwLSVer*,\
   BOOL    *bVersion*\
  )

## DESCRIPTION

Gets the files version or language information.

## PARAMS

*lpszFilename* **\[In\]**  The file to get the information from.

*pdwMSVer* **\[Out\]**  Major version.

*pdwLSVer* **\[Out\]**  Minor version.

*bVersion* **\[In\]**  Whether to retrieve version or language info.

## RETURNS

Always returns **S\_OK**.

## NOTES

If *bVersion* is **TRUE**, version information is retrieved, else *pdwMSVer* gets the language Id and *pdwLSVer* gets the codepage **ID**.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/files.c"**.

Debug channel **"advpack"**.
