WdfFileObjectGetFlags - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdffileobject.h

ULONG WdfFileObjectGetFlags(
  [in] WDFFILEOBJECT FileObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdffileobject-wdffileobjectgetflags)

WdfFileObjectGetFlags function

Description

[Applies to KMDF only]

The WdfFileObjectGetFlags method returns the flags that a specified framework file object contains.

Parameters

FileObject [in]

A handle to a framework file object.

Return value

WdfFileObjectGetFlags returns a bitwise OR of file object flags. The flag names have a format of FO_XXX and are defined in Wdm.h.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

For more information about framework file objects, see Framework File Objects.

Examples

The following code example obtains the flags that a specified framework file object contains.

ULONG flags;

flags = WdfFileObjectGetFlags(fileObject);