Macros for OLE DB Provider Templates

The OLE DB Templates Provider macros offer functionality in the following categories:

Property Set Map Macros

BEGIN_PROPERTY_SET

Marks the beginning of a property set.

BEGIN_PROPERTY_SET_EX

Marks the beginning of a property set.

BEGIN_PROPSET_MAP

Marks the beginning of a property set that can be hidden or defined outside the scope of the provider.

CHAIN_PROPERTY_SET

Chains property groups together.

END_PROPERTY_SET

Marks the end of a property set.

END_PROPSET_MAP

Marks the end of a property set map.

PROPERTY_INFO_ENTRY

Sets a specific property in a property set to a default value.

PROPERTY_INFO_ENTRY_EX

Sets a specific property in a property set to a value supplied by you. Also enables you to set flags and options.

PROPERTY_INFO_ENTRY_VALUE

Sets a specific property in a property set to a value supplied by you.

Column Map Macros

BEGIN_PROVIDER_COLUMN_MAP

Marks the beginning of the provider column map entries.

END_PROVIDER_COLUMN_MAP

Marks the end of the provider column map entries.

PROVIDER_COLUMN_ENTRY

Represents a specific column supported by the provider.

PROVIDER_COLUMN_ENTRY_GN

Represents a specific column supported by the provider. You can specify the column's size, data type, precision, scale, and schema rowset GUID.

PROVIDER_COLUMN_ENTRY_FIXED

Represents a specific column supported by the provider. You can specify the column data type.

PROVIDER_COLUMN_ENTRY_LENGTH

Represents a specific column supported by the provider. You can specify the column size.

PROVIDER_COLUMN_ENTRY_STR

Represents a specific column supported by the provider. It assumes the column type is a string.

PROVIDER_COLUMN_ENTRY_TYPE_LENGTH

Represents a specific column supported by the provider. Like PROVIDER_COLUMN_ENTRY_LENGTH, but also allows you to specify the column's data type as well as size.

PROVIDER_COLUMN_ENTRY_WSTR

Represents a specific column supported by the provider. It assumes the column type is a Unicode character string.

Schema Rowset Macros

BEGIN_SCHEMA_MAP

Marks the beginning of a schema map.

SCHEMA_ENTRY

Associates a GUID with a class.

END_SCHEMA_MAP

Marks the end of a schema map.

See Also

Concepts

OLE DB Provider Templates (C+)

The OLE DB Provider Template Architecture

OLE DB Provider Templates Reference

Reference

Creating an OLE DB Provider