GetFileBandwidthReservation function
Applies to: desktop apps only
Retrieves the bandwidth reservation properties of the volume on which the specified file resides.
Syntax
BOOL WINAPI GetFileBandwidthReservation( __in HANDLE hFile, __out LPDWORD lpPeriodMilliseconds, __out LPDWORD lpBytesPerPeriod, __out LPBOOL pDiscardable, __out LPDWORD lpTransferSize, __out LPDWORD lpNumOutstandingRequests );
Parameters
- hFile [in]
-
A handle to the file.
- lpPeriodMilliseconds [out]
-
A pointer to a variable that receives the period of the reservation, in milliseconds. The period is the time from which the I/O is issued to the kernel until the time the I/O should be completed. If no bandwidth has been reserved for this handle, then the value returned is the minimum reservation period supported for this volume.
- lpBytesPerPeriod [out]
-
A pointer to a variable that receives the maximum number of bytes per period that can be reserved on the volume. If no bandwidth has been reserved for this handle, then the value returned is the maximum number of bytes per period supported for the volume.
- pDiscardable [out]
-
TRUE if I/O should be completed with an error if a driver is unable to satisfy an I/O operation before the period expires. FALSE if the underlying subsystem does not support failing in this manner.
- lpTransferSize [out]
-
The minimum size of any individual I/O request that may be issued by the application. All I/O requests should be multiples of TransferSize. If no bandwidth has been reserved for this handle, then the value returned is the minimum transfer size supported for this volume.
- lpNumOutstandingRequests [out]
-
The number of TransferSize chunks allowed to be outstanding with the operating system.
Return value
Returns nonzero if successful or zero otherwise.
To get extended error information, call GetLastError.
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 4/17/2012