Article ID: 198489
Article Last Modified on 3/14/2005
119591 How to Obtain Microsoft Support Files from Online Services
FileName Description
---------------------------------------------------------
Adodemo.mdb The sample Microsoft Access database
Oledbpp.cpp The main module for the OLEDBPP Application
Oledbpp.h Header for the OLEDBPP Application
Oledbppdlg.cpp The module containing the OLE DB code
Oledbppdlg.h Header for the COLEDBPPDlg class
Pperror.cpp Edited version of error.cpP from RowsetViewer sample
Pperror.h Header for the Pperror.cpp file
Stdafx.cpp Build generated
Stdafx.h Build generated
// Dump connection properties
DBPROPSET* rgPropSets = NULL;
ULONG cPropSets = 0;
ULONG cPropertyIDSets = 0L;
ULONG cPropertyInfoSets;
DBPROPINFOSET* rgPropertyInfoSets; // Returned by provider
OLECHAR* pDescBuffer; // Returned by provider
/////////////////////////////////////////////////////////////////////
// typedef struct tagDBPROPINFOSET
// {
// /* [size_is] */ PDBPROPINFO rgPropertyInfos;
// ULONG cPropertyInfos;
// GUID guidPropertySet;
// } DBPROPINFOSET;
//
// The DBPROPINFOSET structure's guidPropertySet, if set, will be
// one of the following:
// DBPROPSET_DATASOURCEALL
// DBPROPSET_DATASOURCEINFOALL
// DBPROPSET_DBINITALL
// DBPROPSET_ROWSETALL
// DBPROPSET_SESSIONALL
//
// typedef struct tagDBPROPINFO
// {
// LPOLESTR pwszDescription; // A text description of the property
// DBPROPID dwPropertyID; // The ID of the property
// DBPROPFLAGS dwFlags; // A bitmask that describes the property
// VARTYPE vtType; // The type indicator of the property
// VARIANT vValues; // Alist of the supported values for the
// // property*
// } DBPROPINFO;
//
// * Normally this list is returned only if the property can be
// set and either:
// (a) The property type is an integer and the possible values of
// the property are an enumerated type.
// (b) The property type is an integer whose bits are to be read
// as a bitmask and all supported bits are set.
// (c) The property type is a string and the possible values form
// a small, well-defined set. The definition of a small, well-
// defined set is provider-specific. (If this list is
// returned the vt element in vValues is VT_ARRAY combined with
// the type indicator returned in vtType. If this list is not
// returned,the vt element is VT_EMPTY. The consumer must free
// any memory pointed to by elements of vValues by calling the
// COM function VariantClear.
//////////////////////////////////////////////////////////////////////
hr = pDataSourceIDBProperties->GetPropertyInfo(cPropertyIDSets,
NULL, // Since above is 0L, this is ignored by provider
&cPropertyInfoSets, // # DBPROPINFOSET structures returned
&rgPropertyInfoSets, // The DBPROPINFOSET structures themselves
&pDescBuffer); // Memory location with pointer to string data
// Each individual string value is null-terminated.
Additional query words: Oledbpp
Keywords: kbinfo kbdownload kbdatabase kbfile KB198489