This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
TheMsiViewGetColumnInfo function returns a record containing column names or definitions. This function returns a handle that should be closed usingMsiCloseHandle.
UINT MsiViewGetColumnInfo( [in] MSIHANDLE hView, [in] MSICOLINFO eColumnInfo, [out] MSIHANDLE *phRecord);[in] hView
Handle to the view from which to obtain column information.
[in] eColumnInfo
Specifies a flag indicating what type of information is needed. This parameter must be one of the following values.
| Value | Meaning |
|---|---|
| Column names are returned. |
| Definitions are returned. |
[out] phRecord
Pointer to a handle to receive the column information data record.
Note that in low memory situations, this function can raise a STATUS_NO_MEMORY exception.
The column description returned byMsiViewGetColumnInfo is in the format described in the section:Column Definition Format. Each column is described by a string in the corresponding record field. The definition string consists of a single letter representing the data type followed by the width of the column (in characters when applicable, bytes otherwise). A width of zero designates an unbounded width (for example, long text fields and streams). An uppercase letter indicates that null values are allowed in the column.
Note that it is recommended to use variables of type PMSIHANDLE because the installer closes PMSIHANDLE objects as they go out of scope, whereas you must close MSIHANDLE objects by callingMsiCloseHandle. For more information seeUse PMSIHANDLE instead of HANDLE section in theWindows Installer Best Practices.
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP |
| Target Platform | Windows |
| Header | msiquery.h |
| Library | Msi.lib |
| DLL | Msi.dll |
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?