|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| kernel32.lib
| Header File
| winbase.h
| Unicode
| No
| Platform Notes
| None
|
|
|
SetHandleCount
The SetHandleCount function sets the number of file handles available to a process. This
function has no effect under Windows NT and Windows 95, because there is no explicit
file handle limit for applications on these platforms. Under Win32s, there are
only 20 file handles available to a process by default; however you could use SetHandleCount to allow a process to use up to 255 file handles.
UINT SetHandleCount(
UINT uNumber
| // number of file handles needed
| );
|
|
Parameters
uNumber
Specifies the number of file handles needed by the application.
Return Values
Under Windows NT and Windows 95, this function simply returns the value
specified in the uNumber parameter.
Under Win32s, the return value specifies the number of file handles actually
available to the application. It may be fewer than the number specified by the uNumber parameter.
Remarks
Under Windows NT and Windows 95, the maximum number of files that an
application can open is determined by the amount of available non-paged memory pool,
because each open file handle requires non-paged memory.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|