MsiCreateRecord

[This is preliminary documentation and subject to change.]

The MsiCreateRecord function creates a new record object with the specified number of fields.

MSIHANDLE MsiCreateRecord(
  unsigned int cParams  // the number of data fields
);
 

Parameters

cParams
Specifies the number of fields the record will have. This value is limited by memory.

Return Values

If the function succeeds, the return value is handle to a new record object.

If the function fails, the return value is NULL.

Remarks

Field 0 of the record object created by the MsiCreateRecord function is used for format strings and operation codes and is not included in the count specified by cParams. All fields are initialized to NULL.

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, Record Processing Functions