CloseFile function

关闭文件句柄


Function:

bool UAPI CloseFile(
        int hFile
);

Parameters:

  • hFile [in]:文件句柄

Return value:

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

Remarks:

使用 CreateFile function 所打开的文件、设备对象、内核对象应在不需要后使用 CloseFile function 将其关闭,否则会导致句柄泄漏

Requirements:

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

results matching ""

    No results matching ""