📄 msado15.tlh
字号:
//
_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=GetDescription))
_bstr_t Description;
__declspec(property(get=GetNumber))
long Number;
__declspec(property(get=GetSource))
_bstr_t Source;
__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=GetParameters))
ParametersPtr Parameters;
__declspec(property(get=GetActiveConnection,put=PutRefActiveConnection))
_ConnectionPtr ActiveConnection;
__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,
ADO_LONGPTR 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,
ADO_LONGPTR 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;
};
struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4"))
Connection15 : _ADO
{
//
// Property data
//
__declspec(property(get=GetConnectionString,put=PutConnectionString))
_bstr_t ConnectionString;
__declspec(property(get=GetCommandTimeout,put=PutCommandTimeout))
long CommandTimeout;
__declspec(property(get=GetConnectionTimeout,put=PutConnectionTimeout))
long ConnectionTimeout;
__declspec(property(get=GetVersion))
_bstr_t Version;
__declspec(property(get=GetErrors))
ErrorsPtr Errors;
__declspec(property(get=GetDefaultDatabase,put=PutDefaultDatabase))
_bstr_t DefaultDatabase;
__declspec(property(get=GetIsolationLevel,put=PutIsolationLevel))
enum IsolationLevelEnum IsolationLevel;
__declspec(property(get=GetAttributes,put=PutAttributes))
long Attributes;
__declspec(property(get=GetCursorLocation,put=PutCursorLocation))
enum CursorLocationEnum CursorLocation;
__declspec(property(get=GetMode,put=PutMode))
enum ConnectModeEnum Mode;
__declspec(property(get=GetProvider,put=PutProvider))
_bstr_t Provider;
__declspec(property(get=GetState))
long State;
//
// Wrapper methods for error-handling
//
_bstr_t GetConnectionString ( );
void PutConnectionString (
_bstr_t pbstr );
long GetCommandTimeout ( );
void PutCommandTimeout (
long plTimeout );
long GetConnectionTimeout ( );
void PutConnectionTimeout (
long plTimeout );
_bstr_t GetVersion ( );
HRESULT Close ( );
_RecordsetPtr Execute (
_bstr_t CommandText,
VARIANT * RecordsAffected,
long Options );
long BeginTrans ( );
HRESULT CommitTrans ( );
HRESULT RollbackTrans ( );
HRESULT Open (
_bstr_t ConnectionString,
_bstr_t UserID,
_bstr_t Password,
long Options );
ErrorsPtr GetErrors ( );
_bstr_t GetDefaultDatabase ( );
void PutDefaultDatabase (
_bstr_t pbstr );
enum IsolationLevelEnum GetIsolationLevel ( );
void PutIsolationLevel (
enum IsolationLevelEnum Level );
long GetAttributes ( );
void PutAttributes (
long plAttr );
enum CursorLocationEnum GetCursorLocation ( );
void PutCursorLocation (
enum CursorLocationEnum plCursorLoc );
enum ConnectModeEnum GetMode ( );
void PutMode (
enum ConnectModeEnum plMode );
_bstr_t GetProvider ( );
void PutProvider (
_bstr_t pbstr );
long GetState ( );
_RecordsetPtr OpenSchema (
enum SchemaEnum Schema,
const _variant_t & Restrictions = vtMissing,
const _variant_t & SchemaID = vtMissing );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_ConnectionString (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_ConnectionString (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_CommandTimeout (
long * plTimeout ) = 0;
virtual HRESULT __stdcall put_CommandTimeout (
long plTimeout ) = 0;
virtual HRESULT __stdcall get_ConnectionTimeout (
long * plTimeout ) = 0;
virtual HRESULT __stdcall put_ConnectionTimeout (
long plTimeout ) = 0;
virtual HRESULT __stdcall get_Version (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall raw_Close ( ) = 0;
virtual HRESULT __stdcall raw_Execute (
BSTR CommandText,
VARIANT * RecordsAffected,
long Options,
struct _Recordset * * ppiRset ) = 0;
virtual HRESULT __stdcall raw_BeginTrans (
long * TransactionLevel ) = 0;
virtual HRESULT __stdcall raw_CommitTrans ( ) = 0;
virtual HRESULT __stdcall raw_RollbackTrans ( ) = 0;
virtual HRESULT __stdcall raw_Open (
BSTR ConnectionString,
BSTR UserID,
BSTR Password,
long Options ) = 0;
virtual HRESULT __stdcall get_Errors (
struct Errors * * ppvObject ) = 0;
virtual HRESULT __stdcall get_DefaultDatabase (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_DefaultDatabase (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_IsolationLevel (
enum IsolationLevelEnum * Level ) = 0;
virtual HRESULT __stdcall put_IsolationLevel (
enum IsolationLevelEnum Level ) = 0;
virtual HRESULT __stdcall get_Attributes (
long * plAttr ) = 0;
virtual HRESULT __stdcall put_Attributes (
long plAttr ) = 0;
virtual HRESULT __stdcall get_CursorLocation (
enum CursorLocationEnum * plCursorLoc ) = 0;
virtual HRESULT __stdcall put_CursorLocation (
enum CursorLocationEnum plCursorLoc ) = 0;
virtual HRESULT __stdcall get_Mode (
enum ConnectModeEnum * plMode ) = 0;
virtual HRESULT __stdcall put_Mode (
enum ConnectModeEnum plMode ) = 0;
virtual HRESULT __stdcall get_Provider (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_Provider (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_State (
long * plObjState ) = 0;
virtual HRESULT __stdcall raw_OpenSchema (
enum SchemaEnum Schema,
VARIANT Restrictions,
VARIANT SchemaID,
struct _Recordset * * pprset ) = 0;
};
struct __declspec(uuid("00000550-0000-0010-8000-00aa006d2ea4"))
_Connection : Connection15
{
//
// Wrapper methods for error-handling
//
HRESULT Cancel ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Cancel ( ) = 0;
};
struct __declspec(uuid("0000050e-0000-0010-8000-00aa006d2ea4"))
Recordset15 : _ADO
{
//
// Property data
//
__declspec(property(get=GetFields))
FieldsPtr Fields;
__declspec(property(get=GetPageSize,put=PutPageSize))
long PageSize;
__declspec(property(get=GetPageCount))
ADO_LONGPTR PageCount;
__declspec(property(get=GetCursorLocation,put=PutCursorLocation))
enum CursorLocationEnum CursorLocation;
__declspec(property(get=GetState))
long State;
__declspec(property(get=GetMarshalOptions,put=PutMarshalOptions))
enum MarshalOptionsEnum MarshalOptions;
__declspec(property(get=GetCollect,put=PutCollect))
_variant_t Collect[];
__declspec(property(get=GetEditMode))
enum EditModeEnum EditMode;
__declspec(property(get=GetStatus))
long Status;
__declspec(property(get=GetFilter,put=PutFilter))
_variant_t Filter;
__declspec(property(get=GetSort,put=PutSort))
_bstr_t Sort;
__declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition))
PositionEnum_Param AbsolutePosition;
__declspec(property(get=GetBOF))
VARIANT_BOOL BOF;
__declspec(property(get=GetBookmark,put=PutBookmark))
_variant_t Bookmark;
__declspec(property(get=GetCacheSize,put=PutCacheSize))
long CacheSize;
__declspec(property(get=GetCursorType,put=PutCursorType))
enum CursorTypeEnum CursorType;
__declspec(property(get=GetEndOfFile))
VARIANT_BOOL EndOfFile;
__declspec(property(get=GetAbsolutePage,put=PutAbsolutePage))
PositionEnum_Param AbsolutePage;
__declspec(property(get=GetLockType,put=PutLockType))
enum LockTypeEnum LockType;
__declspec(property(get=GetMaxRecords,put=PutMaxRecords))
ADO_LONGPTR MaxRecords;
__declspec(property(get=GetRecordCount))
ADO_LONGPTR RecordCount;
//
// Wrapper methods for error-handling
//
PositionEnum_Param GetAbsolutePosition ( );
void PutAbsolutePosition (
PositionEnum_Param pl );
void PutRefActiveConnection (
IDispatch * pvar );
void PutActiveConnection (
const _variant_t & pvar );
_variant_t GetActiveConnection ( );
VARIANT_BOOL GetBOF ( );
_variant_t GetBookmark ( );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -