共用方式為


SdbDeclareIndex 函式

在指定的資料庫中宣告新的索引。

語法

BOOL WINAPI SdbDeclareIndex(
  _In_  PDB     pdb,
  _In_  TAG     tWhich,
  _In_  TAG     tKey,
  _In_  DWORD   dwEntries,
  _In_  BOOL    bUniqueKey,
  _Out_ INDEXID *piiIndex
);

參數

pdb [in]

填充碼資料庫的控制碼。

tWhich [in]

此參數必須 TAG_TYPE_LIST

tKey [in]

TAG,指定要當做索引鍵使用的型別。 此參數不能 TAG_TYPE_LIST

dwEntries [in]

要配置在索引中的專案數目。

bUniqueKey [in]

如果此參數為 TRUE,則索引是唯一索引鍵索引。

piiIndex [out]

新宣告索引的結果 INDEXID

傳回值

函式會在 成功或 失敗時傳回 FALSE

備註

將標記寫入新索引之前,請先呼叫此函式。

規格需求

需求
最低支援的用戶端
Windows Vista [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]
DLL
Apphelp.dll

另請參閱

INDEXID

SdbCommitIndexes

SdbStartIndexing

SdbStopIndexing