网站首页  词典首页

请输入您要查询的函数:

 

术语 getfilebandwidthreservation
释义 GetFileBandwidthReservation
语法:
C++
BOOL WINAPI GetFileBandwidthReservation(
__in HANDLE hFile,
__out LPDWORD lpPeriodMilliseconds,
__out LPDWORD lpBytesPerPeriod,
__out LPBOOL pDiscardable,
__out LPDWORD lpTransferSize,
__out LPDWORD lpNumOutstandingRequests
);
GetFileBandwidthReservation功能
检索数量上的指定文件所在的带宽预留的属性。
参数
hFile [in]
阿处理该文件。
lpPeriodMilliseconds [out]
对变量的接收以毫秒为单位的保留期,指针。这一时期是从其中的I / O发出的时间,直到内核的I / O应该完成的时间。如果没有带宽已为此处理,然后返回值是最低保留保留期此卷的支持。
lpBytesPerPeriod [out]
一个变量,它接收的每期,可在该卷上保留的最大字节数的指针。如果没有带宽已为此处理,然后返回的值是保留的,每卷的支持期间的最大字节数。
pDiscardable [out]
TRUE,如果的I / O应该是完成了一个错误,如果司机无法满足之前,期间的I / O操作结束。假如果基础子系统不支持以这种方式失败。
lpTransferSize [out]
任何人本人的最小尺寸/ O请求可能由应用程序发出的。所有的I / O请求应TransferSize倍数。如果没有带宽已为此处理,然后返回值保留的最低传输大小此卷的支持。
lpNumOutstandingRequests [out]
在允许的操作系统是优秀TransferSize块数。
返回值
如果成功则返回非零或否则为0。
为了获得更多错误信息,调用GetLastError。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinBase.h
LibraryKernel32.lib
DLLKernel32.dll
参见
文件管理函数
SetFileBandwidthReservation
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==GetFileBandwidthReservation Function
Retrieves the bandwidth reservation properties of the volume on which the specified file resides.
Syntax
C++
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 clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinBase.h
LibraryKernel32.lib
DLLKernel32.dll
See Also
File Management Functions
SetFileBandwidthReservation
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364951(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:31:46