Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 2.56 KB

nf-wofapi-wofgetdriverversion.md

File metadata and controls

81 lines (63 loc) · 2.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wofapi.WofGetDriverVersion
WofGetDriverVersion function (wofapi.h)
Used to query the version of the driver used to support a particular provider.
WofGetDriverVersion
WofGetDriverVersion function [Files]
fs.wofgetdriverversion
wofapi/WofGetDriverVersion
fs\wofgetdriverversion.htm
fs
F142903A-329D-40E3-A233-F013C26EC1EA
12/05/2018
WofGetDriverVersion, WofGetDriverVersion function [Files], fs.wofgetdriverversion, wofapi/WofGetDriverVersion
wofapi.h
Windows
Wofutil.lib
Wofutil.dll
Windows
19H1
WofGetDriverVersion
wofapi/WofGetDriverVersion
c++
APIRef
kbSyntax
DllExport
wofutil.dll
WofGetDriverVersion

WofGetDriverVersion function

-description

Used to query the version of the driver used to support a particular provider.

-parameters

-param FileOrVolumeHandle [in]

A handle to a file or volume opened with CreateFile or a similar API.

-param Provider [in]

Indicates which provider the version query is intended for. Multiple versions of Wof may exist on the same volume at the same time for different providers.

-param WofVersion [out]

Pointer to a ULONG which will contain the version upon successful completion of this function.

-returns

This function returns an HRESULT indicating success or the reason for failure. If no driver is attached on the specified volume for the specified provider, the function will fail with HRESULT_FROM_WIN32(ERROR_INVALID_FUNCTION).

-remarks

On successful completion, the WofVersion value is updated to reflect the version of the WOF driver. This value includes the major and minor version numbers of the operating system in the high-order word, and the build number of the operating system in the low-order word. The major version can be extracted with HIBYTE(HIWORD(WofVersion)); the minor version can be extracted with LOBYTE(HIWORD(WofVersion)); the build number can be extracted with LOWORD(WofVersion).

QuickInfo

-see-also

FSCTL_GET_WOF_VERSION