MsiCloseHandle

[This is preliminary documentation and subject to change.]

The MsiCloseHandle function closes an open installation handle.

UINT MsiCloseHandle(
  MSIHANDLE hAny    // Installer handle
);
 

Parameters

hAny
Specifies any open installation handle.

Return Values

ERROR_INVALID_HANDLE
An invalid handle was passed to the function.
ERROR_SUCCESS
The function succeeded.

Remarks

MsiCloseHandle must be called from the same thread that requested the creation of the handle.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msi.h.
  Import Library: Use msi.lib.

See Also

Handle Management Functions