CloseIndex function

关闭索引器句柄(由 CreateIndex function 或 OpenIndex function 所返回)


Function:

int UAPI CloseIndex(
        int hIndex
);

Parameters:

  • hIndex [in]:索引器句柄

Notes:索引器句柄是由 CreateIndex function 或 OpenIndex function 所返回

Return value:

  • Type:BOOL
  • Text:成功返回 TRUE,失败返回 FALSE

Remarks:

  1. CloseIndex function 会减少其索引器内核对象的引用计数,当其索引器内核对象的引用计数为 NULL 时,该内核对象将被关闭,其索引器将被销毁
  2. 开发者无需担心使用 CloseIndex function 关闭索引器句柄后导致索引器被销毁进而影响其正在使用该索引器的进程。因为 OpenIndex function 会增加其索引器内核对象的引用计数,当其索引器内核对象的引用计数为 NULL 时,索引器才会被销毁

Requirements:

Keyword Value
Minimum Agine Version 171012.1
Minimum SDK Version 171012.1
Header File h.index
Library Server kext

results matching ""

    No results matching ""