// wdffileobject.h
ULONG WdfFileObjectGetFlags(
[in] WDFFILEOBJECT FileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfFileObjectGetFlags method returns the flags that a specified framework file object contains.
FileObject [in]A handle to a framework file object.
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.
For more information about framework file objects, see Framework File Objects.
The following code example obtains the flags that a specified framework file object contains.
ULONG flags;
flags = WdfFileObjectGetFlags(fileObject);