[This is preliminary documentation and subject to change.]
The MsiViewGetColumnInfo function returns a record containing column names or definitions.
UINT MsiViewGetColumnInfo(
MSIHANDLE hView, // view handle
MSICOLINFO eColumnInfo, // type of information to return, names
// or definitions
MSIHANDLE *phRecord // handle for returned record
);
Value | Meaning |
---|---|
MSICOLINFO_NAMES | Column names are returned. |
MSICOLINFO_TYPES | Definitions are returned. |
The MsiViewGetColumnInfo function uses the following column definition format.
Column descriptor | Definition string |
---|---|
s? | String, variable length (?=1-255) |
s0 | String, variable length |
i2 | Short integer |
i4 | Long integer |
v0 | Binary Stream |
g? | Temporary string (?=0-255) |
j? | Temporary integer (?=0,1,2,4) |
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.
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.