MsiViewClose

[This is preliminary documentation and subject to change.]

The MsiViewClose function releases the result set for an executed view.

UINT MsiViewClose(
  MSIHANDLE hView    // view handle
);
 

Parameters

hView
Handle to a view that is set to release.

Return Values

ERROR_FUNCTION_FAILED
The function failed.
ERROR_INVALID_HANDLE
An invalid or inactive handle was supplied.
ERROR_INVALID_HANDLE_STATE
The handle is in an invalid state.
ERROR_SUCCESS
The function succeeded.

Remarks

The MsiViewClose function must be called before the MsiViewExecute function is called again on the view, unless all rows of the result set have been obtained with the MsiViewFetch function.

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 msiquery.h.
  Import Library: Use msi.lib.

See Also

Database Access Reference, General Database Access Functions