?? msado20.tlh
字號:
};
enum ParameterAttributesEnum
{
adParamSigned = 16,
adParamNullable = 64,
adParamLong = 128
};
enum ParameterDirectionEnum
{
adParamUnknown = 0,
adParamInput = 1,
adParamOutput = 2,
adParamInputOutput = 3,
adParamReturnValue = 4
};
enum CommandTypeEnum
{
adCmdUnspecified = -1,
adCmdUnknown = 8,
adCmdText = 1,
adCmdTable = 2,
adCmdStoredProc = 4,
adCmdFile = 256,
adCmdTableDirect = 512
};
enum EventStatusEnum
{
adStatusOK = 1,
adStatusErrorsOccurred = 2,
adStatusCantDeny = 3,
adStatusCancel = 4,
adStatusUnwantedEvent = 5
};
enum EventReasonEnum
{
adRsnAddNew = 1,
adRsnDelete = 2,
adRsnUpdate = 3,
adRsnUndoUpdate = 4,
adRsnUndoAddNew = 5,
adRsnUndoDelete = 6,
adRsnRequery = 7,
adRsnResynch = 8,
adRsnClose = 9,
adRsnMove = 10,
adRsnFirstChange = 11,
adRsnMoveFirst = 12,
adRsnMoveNext = 13,
adRsnMovePrevious = 14,
adRsnMoveLast = 15
};
enum SchemaEnum
{
adSchemaProviderSpecific = -1,
adSchemaAsserts = 0,
adSchemaCatalogs = 1,
adSchemaCharacterSets = 2,
adSchemaCollations = 3,
adSchemaColumns = 4,
adSchemaCheckConstraints = 5,
adSchemaConstraintColumnUsage = 6,
adSchemaConstraintTableUsage = 7,
adSchemaKeyColumnUsage = 8,
adSchemaReferentialContraints = 9,
adSchemaTableConstraints = 10,
adSchemaColumnsDomainUsage = 11,
adSchemaIndexes = 12,
adSchemaColumnPrivileges = 13,
adSchemaTablePrivileges = 14,
adSchemaUsagePrivileges = 15,
adSchemaProcedures = 16,
adSchemaSchemata = 17,
adSchemaSQLLanguages = 18,
adSchemaStatistics = 19,
adSchemaTables = 20,
adSchemaTranslations = 21,
adSchemaProviderTypes = 22,
adSchemaViews = 23,
adSchemaViewColumnUsage = 24,
adSchemaViewTableUsage = 25,
adSchemaProcedureParameters = 26,
adSchemaForeignKeys = 27,
adSchemaPrimaryKeys = 28,
adSchemaProcedureColumns = 29,
adSchemaDBInfoKeywords = 30,
adSchemaDBInfoLiterals = 31,
adSchemaCubes = 32,
adSchemaDimensions = 33,
adSchemaHierarchies = 34,
adSchemaLevels = 35,
adSchemaMeasures = 36,
adSchemaProperties = 37,
adSchemaMembers = 38
};
struct __declspec(uuid("00000512-0000-0010-8000-00aa006d2ea4"))
_Collection : IDispatch
{
//
// Property data
//
__declspec(property(get=GetCount))
long Count;
//
// Wrapper methods for error-handling
//
long GetCount ( );
IUnknownPtr _NewEnum ( );
HRESULT Refresh ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Count (
long * c ) = 0;
virtual HRESULT __stdcall raw__NewEnum (
IUnknown * * ppvObject ) = 0;
virtual HRESULT __stdcall raw_Refresh ( ) = 0;
};
struct __declspec(uuid("00000513-0000-0010-8000-00aa006d2ea4"))
_DynaCollection : _Collection
{
//
// Wrapper methods for error-handling
//
HRESULT Append (
IDispatch * Object );
HRESULT Delete (
const _variant_t & Index );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Append (
IDispatch * Object ) = 0;
virtual HRESULT __stdcall raw_Delete (
VARIANT Index ) = 0;
};
struct __declspec(uuid("00000534-0000-0010-8000-00aa006d2ea4"))
_ADO : IDispatch
{
//
// Property data
//
__declspec(property(get=GetProperties))
PropertiesPtr Properties;
//
// Wrapper methods for error-handling
//
PropertiesPtr GetProperties ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Properties (
struct Properties * * ppvObject ) = 0;
};
struct __declspec(uuid("00000504-0000-0010-8000-00aa006d2ea4"))
Properties : _Collection
{
//
// Property data
//
__declspec(property(get=GetItem))
PropertyPtr Item[];
//
// Wrapper methods for error-handling
//
PropertyPtr GetItem (
const _variant_t & Index );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Item (
VARIANT Index,
struct Property * * ppvObject ) = 0;
};
struct __declspec(uuid("00000503-0000-0010-8000-00aa006d2ea4"))
Property : IDispatch
{
//
// Property data
//
__declspec(property(get=GetValue,put=PutValue))
_variant_t Value;
__declspec(property(get=GetName))
_bstr_t Name;
__declspec(property(get=GetType))
enum DataTypeEnum Type;
__declspec(property(get=GetAttributes,put=PutAttributes))
long Attributes;
//
// Wrapper methods for error-handling
//
_variant_t GetValue ( );
void PutValue (
const _variant_t & pval );
_bstr_t GetName ( );
enum DataTypeEnum GetType ( );
long GetAttributes ( );
void PutAttributes (
long plAttributes );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Value (
VARIANT * pval ) = 0;
virtual HRESULT __stdcall put_Value (
VARIANT pval ) = 0;
virtual HRESULT __stdcall get_Name (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_Type (
enum DataTypeEnum * ptype ) = 0;
virtual HRESULT __stdcall get_Attributes (
long * plAttributes ) = 0;
virtual HRESULT __stdcall put_Attributes (
long plAttributes ) = 0;
};
struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4"))
Error : IDispatch
{
//
// Property data
//
__declspec(property(get=GetNumber))
long Number;
__declspec(property(get=GetSource))
_bstr_t Source;
__declspec(property(get=GetDescription))
_bstr_t Description;
__declspec(property(get=GetHelpFile))
_bstr_t HelpFile;
__declspec(property(get=GetHelpContext))
long HelpContext;
__declspec(property(get=GetSQLState))
_bstr_t SQLState;
__declspec(property(get=GetNativeError))
long NativeError;
//
// Wrapper methods for error-handling
//
long GetNumber ( );
_bstr_t GetSource ( );
_bstr_t GetDescription ( );
_bstr_t GetHelpFile ( );
long GetHelpContext ( );
_bstr_t GetSQLState ( );
long GetNativeError ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Number (
long * pl ) = 0;
virtual HRESULT __stdcall get_Source (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_Description (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_HelpFile (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_HelpContext (
long * pl ) = 0;
virtual HRESULT __stdcall get_SQLState (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_NativeError (
long * pl ) = 0;
};
struct __declspec(uuid("00000501-0000-0010-8000-00aa006d2ea4"))
Errors : _Collection
{
//
// Property data
//
__declspec(property(get=GetItem))
ErrorPtr Item[];
//
// Wrapper methods for error-handling
//
ErrorPtr GetItem (
const _variant_t & Index );
HRESULT Clear ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Item (
VARIANT Index,
struct Error * * ppvObject ) = 0;
virtual HRESULT __stdcall raw_Clear ( ) = 0;
};
struct __declspec(uuid("00000508-0000-0010-8000-00aa006d2ea4"))
_Command15 : _ADO
{
//
// Property data
//
__declspec(property(get=GetActiveConnection,put=PutRefActiveConnection))
_ConnectionPtr ActiveConnection;
__declspec(property(get=GetParameters))
ParametersPtr Parameters;
__declspec(property(get=GetCommandText,put=PutCommandText))
_bstr_t CommandText;
__declspec(property(get=GetCommandTimeout,put=PutCommandTimeout))
long CommandTimeout;
__declspec(property(get=GetPrepared,put=PutPrepared))
VARIANT_BOOL Prepared;
__declspec(property(get=GetCommandType,put=PutCommandType))
enum CommandTypeEnum CommandType;
__declspec(property(get=GetName,put=PutName))
_bstr_t Name;
//
// Wrapper methods for error-handling
//
_ConnectionPtr GetActiveConnection ( );
void PutRefActiveConnection (
struct _Connection * ppvObject );
void PutActiveConnection (
const _variant_t & ppvObject );
_bstr_t GetCommandText ( );
void PutCommandText (
_bstr_t pbstr );
long GetCommandTimeout ( );
void PutCommandTimeout (
long pl );
VARIANT_BOOL GetPrepared ( );
void PutPrepared (
VARIANT_BOOL pfPrepared );
_RecordsetPtr Execute (
VARIANT * RecordsAffected,
VARIANT * Parameters,
long Options );
_ParameterPtr CreateParameter (
_bstr_t Name,
enum DataTypeEnum Type,
enum ParameterDirectionEnum Direction,
long Size,
const _variant_t & Value = vtMissing );
ParametersPtr GetParameters ( );
void PutCommandType (
enum CommandTypeEnum plCmdType );
enum CommandTypeEnum GetCommandType ( );
_bstr_t GetName ( );
void PutName (
_bstr_t pbstrName );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_ActiveConnection (
struct _Connection * * ppvObject ) = 0;
virtual HRESULT __stdcall putref_ActiveConnection (
struct _Connection * ppvObject ) = 0;
virtual HRESULT __stdcall put_ActiveConnection (
VARIANT ppvObject ) = 0;
virtual HRESULT __stdcall get_CommandText (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_CommandText (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_CommandTimeout (
long * pl ) = 0;
virtual HRESULT __stdcall put_CommandTimeout (
long pl ) = 0;
virtual HRESULT __stdcall get_Prepared (
VARIANT_BOOL * pfPrepared ) = 0;
virtual HRESULT __stdcall put_Prepared (
VARIANT_BOOL pfPrepared ) = 0;
virtual HRESULT __stdcall raw_Execute (
VARIANT * RecordsAffected,
VARIANT * Parameters,
long Options,
struct _Recordset * * ppiRs ) = 0;
virtual HRESULT __stdcall raw_CreateParameter (
BSTR Name,
enum DataTypeEnum Type,
enum ParameterDirectionEnum Direction,
long Size,
VARIANT Value,
struct _Parameter * * ppiprm ) = 0;
virtual HRESULT __stdcall get_Parameters (
struct Parameters * * ppvObject ) = 0;
virtual HRESULT __stdcall put_CommandType (
enum CommandTypeEnum plCmdType ) = 0;
virtual HRESULT __stdcall get_CommandType (
enum CommandTypeEnum * plCmdType ) = 0;
virtual HRESULT __stdcall get_Name (
BSTR * pbstrName ) = 0;
virtual HRESULT __stdcall put_Name (
BSTR pbstrName ) = 0;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -