共用方式為


PROPERTY_INFO_ENTRY_EX

Represents a specific property in a property set.

PROPERTY_INFO_ENTRY_EX(dwPropID, vt, dwFlags, value, options )

Parameters

  • dwPropID
    [in] A DBPROPID value that can be used in conjunction with the property set GUID to identify a property.

  • vt
    [in] The VARTYPE Data Type of this property entry.

  • dwFlags
    [in] A DBPROPFLAGS value describing this property entry.

  • value
    [in] The property value of type DWORD.

  • options
    Either DBPROPOPTIONS_REQUIRED or DBPROPOPTIONS_SETIFCHEAP. Normally, a provider does not need to set options since it is set by the consumer.

Remarks

With this macro, you can directly specify the property value of type DWORD as well as options and flags. To merely set a property to a default value defined in ATLDB.H, use PROPERTY_INFO_ENTRY. To set a property to a value of your choice, without setting options or flags on it, use PROPERTY_INFO_ENTRY_VALUE.

Example

See BEGIN_PROPSET_MAP.

Requirements

Header: atldb.h

See Also

Reference

Creating an OLE DB Provider

Concepts

OLE DB Provider Templates (C++)

OLE DB Provider Template Architecture

Other Resources

Macros for OLE DB Provider Templates