Skip to content

Latest commit

 

History

History
119 lines (76 loc) · 3.56 KB

nf-winbase-initatomtable.md

File metadata and controls

119 lines (76 loc) · 3.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winbase.InitAtomTable
InitAtomTable function (winbase.h)
Initializes the local atom table and sets the number of hash buckets to the specified size.
InitAtomTable
InitAtomTable function [Data Exchange]
_win32_InitAtomTable
_win32_initatomtable_cpp
dataxchg.initatomtable
winbase/InitAtomTable
winui._win32_initatomtable
dataxchg\initatomtable.htm
dataxchg
VS|winui|~\winui\windowsuserinterface\dataexchange\atoms\atomreference\atomfunctions\initatomtable.htm
12/05/2018
InitAtomTable, InitAtomTable function [Data Exchange], _win32_InitAtomTable, _win32_initatomtable_cpp, dataxchg.initatomtable, winbase/InitAtomTable, winui._win32_initatomtable
winbase.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Kernel32.lib
Kernel32.dll
Windows
19H1
InitAtomTable
winbase/InitAtomTable
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-atoms-l1-1-0.dll
kernel32legacy.dll
API-MS-Win-DownLevel-Kernel32-l2-1-0.dll
InitAtomTable

InitAtomTable function

-description

Initializes the local atom table and sets the number of hash buckets to the specified size.

-parameters

-param nSize [in]

Type: DWORD

The number of hash buckets to use for the atom table. If this parameter is zero, the default number of hash buckets are created.

To achieve better performance, specify a prime number in nSize.

-returns

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

-remarks

An application need not use this function to use a local atom table. The default number of hash buckets used is 37. If an application does use InitAtomTable, however, it should call the function before any other atom-management function.

If an application uses a large number of local atoms, it can reduce the time required to add an atom to the local atom table or to find an atom in the table by increasing the size of the table. However, this increases the amount of memory required to maintain the table.

The number of buckets in the global atom table cannot be changed. If the atom table has already been initialized, either explicitly by a prior call to InitAtomTable, or implicitly by the use of any atom-management function, InitAtomTable returns success without changing the number of hash buckets.

-see-also

AddAtom

DeleteAtom

FindAtom

GetAtomName

GlobalAddAtom

GlobalDeleteAtom

GlobalFindAtom

GlobalGetAtomName

Reference