⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adoce31.tlh

📁 windows mobile ado simple 开发环境:evc4.0
💻 TLH
📖 第 1 页 / 共 2 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (f0533e1e).
//
// adoce31.tlh
//
// C++ source equivalent of Win32 type library C:\Windows CE Tools\wce300\Pocket PC 2002\include\adoce31.tlb
// compiler-generated file created 08/06/03 at 23:50:49 - DO NOT EDIT!

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

namespace ADOCG {

//
// Forward references and typedefs
//

struct /* coclass */ Recordset;
struct __declspec(uuid("113033f6-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ _Recordset;
struct __declspec(uuid("113033f5-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Fields;
struct __declspec(uuid("113033f3-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ _Collection;
struct __declspec(uuid("113033f4-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Field;
struct __declspec(uuid("113033ed-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Properties;
struct __declspec(uuid("113033ee-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Property;
struct /* coclass */ Connection;
struct __declspec(uuid("113033de-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ _Connection;
struct __declspec(uuid("113033ef-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Errors;
struct __declspec(uuid("113033f0-f682-11d2-bb62-00c04f680acc"))
/* dual interface */ Error;
struct __declspec(uuid("e1bde5e5-887c-4b42-a94e-b6f74c9e24d2"))
/* dual interface */ ErrorParameters;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(_Recordset, __uuidof(_Recordset));
_COM_SMARTPTR_TYPEDEF(_Collection, __uuidof(_Collection));
_COM_SMARTPTR_TYPEDEF(Fields, __uuidof(Fields));
_COM_SMARTPTR_TYPEDEF(Field, __uuidof(Field));
_COM_SMARTPTR_TYPEDEF(Properties, __uuidof(Properties));
_COM_SMARTPTR_TYPEDEF(Property, __uuidof(Property));
_COM_SMARTPTR_TYPEDEF(_Connection, __uuidof(_Connection));
_COM_SMARTPTR_TYPEDEF(Errors, __uuidof(Errors));
_COM_SMARTPTR_TYPEDEF(Error, __uuidof(Error));
_COM_SMARTPTR_TYPEDEF(ErrorParameters, __uuidof(ErrorParameters));

//
// Type library items
//

struct __declspec(uuid("dc88c62e-7bf6-4cce-a00c-c27d3906d562"))
Recordset;
    // [ default ] interface _Recordset

struct __declspec(uuid("113033f6-f682-11d2-bb62-00c04f680acc"))
_Recordset : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetFields))
    FieldsPtr Fields;
    __declspec(property(get=Getindex,put=Putindex))
    _bstr_t index;
    __declspec(property(get=GetFilter,put=PutFilter))
    _variant_t Filter;
    __declspec(property(get=GetProperties))
    PropertiesPtr Properties;
    __declspec(property(get=GetState))
    long State;
    __declspec(property(get=GetCollect))
    _variant_t Collect[];
    __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage))
    long AbsolutePage;
    __declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition))
    long 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=GetEditMode))
    enum EditModeEnum EditMode;
    __declspec(property(get=GetEndOfFile))
    VARIANT_BOOL EndOfFile;
    __declspec(property(get=GetLockType,put=PutLockType))
    enum LockTypeEnum LockType;
    __declspec(property(get=GetPageCount))
    long PageCount;
    __declspec(property(get=GetPageSize,put=PutPageSize))
    long PageSize;
    __declspec(property(get=GetRecordCount))
    long RecordCount;
    __declspec(property(get=GetActiveConnection,put=PutRefActiveConnection))
    _variant_t ActiveConnection;

    //
    // Wrapper methods for error-handling
    //

    HRESULT AddNew (
        const _variant_t & FieldList = vtMissing,
        const _variant_t & Values = vtMissing );
    HRESULT CancelUpdate ( );
    _RecordsetPtr Clone (
        enum LockTypeEnum LockType );
    HRESULT Close ( );
    HRESULT Delete (
        long AffectRecords );
    _variant_t GetRows (
        long Rows,
        const _variant_t & Start = vtMissing,
        const _variant_t & Fields = vtMissing );
    HRESULT Move (
        long NumRecords,
        const _variant_t & Start = vtMissing );
    HRESULT MoveFirst ( );
    HRESULT MoveLast ( );
    HRESULT MoveNext ( );
    HRESULT MovePrevious ( );
    HRESULT Open (
        const _variant_t & Source,
        const _variant_t & ActiveConnection,
        enum CursorTypeEnum CursorType,
        enum LockTypeEnum LockType,
        long Options );
    HRESULT Requery ( );
    VARIANT_BOOL Supports (
        enum CursorOptionEnum CursorOptions );
    HRESULT Update (
        const _variant_t & Fields = vtMissing,
        const _variant_t & Values = vtMissing );
    long GetAbsolutePage ( );
    void PutAbsolutePage (
        long pVal );
    long GetAbsolutePosition ( );
    void PutAbsolutePosition (
        long pVal );
    VARIANT_BOOL GetBOF ( );
    _variant_t GetBookmark ( );
    void PutBookmark (
        const _variant_t & pVal );
    long GetCacheSize ( );
    void PutCacheSize (
        long pVal );
    enum CursorTypeEnum GetCursorType ( );
    void PutCursorType (
        enum CursorTypeEnum pVal );
    enum EditModeEnum GetEditMode ( );
    VARIANT_BOOL GetEndOfFile ( );
    FieldsPtr GetFields ( );
    enum LockTypeEnum GetLockType ( );
    void PutLockType (
        enum LockTypeEnum pVal );
    long GetPageCount ( );
    long GetPageSize ( );
    void PutPageSize (
        long pVal );
    long GetRecordCount ( );
    _bstr_t GetSource ( );
    void PutSource (
        _bstr_t pVal );
    void PutRefSource (
        IDispatch * pVal );
    void PutRefActiveConnection (
        const _variant_t & pConn );
    _variant_t GetActiveConnection ( );
    void PutActiveConnection (
        const _variant_t & pConn );
    HRESULT Find (
        _bstr_t Criteria,
        long SkipRecords,
        enum SearchDirectionEnum SearchDirection,
        const _variant_t & Start = vtMissing );
    HRESULT Seek (
        const _variant_t & KeyValues,
        enum SeekEnum SeekOption );
    _bstr_t Getindex ( );
    void Putindex (
        _bstr_t pbstrIndex );
    _variant_t GetFilter ( );
    void PutFilter (
        const _variant_t & Criteria );
    PropertiesPtr GetProperties ( );
    long GetState ( );
    _variant_t GetCollect (
        const _variant_t & index );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall raw_AddNew (
        VARIANT FieldList = vtMissing,
        VARIANT Values = vtMissing ) = 0;
    virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0;
    virtual HRESULT __stdcall raw_Clone (
        enum LockTypeEnum LockType,
        struct _Recordset * * ppvObject ) = 0;
    virtual HRESULT __stdcall raw_Close ( ) = 0;
    virtual HRESULT __stdcall raw_Delete (
        long AffectRecords ) = 0;
    virtual HRESULT __stdcall raw_GetRows (
        long Rows,
        VARIANT Start,
        VARIANT Fields,
        VARIANT * pvar ) = 0;
    virtual HRESULT __stdcall raw_Move (
        long NumRecords,
        VARIANT Start = vtMissing ) = 0;
    virtual HRESULT __stdcall raw_MoveFirst ( ) = 0;
    virtual HRESULT __stdcall raw_MoveLast ( ) = 0;
    virtual HRESULT __stdcall raw_MoveNext ( ) = 0;
    virtual HRESULT __stdcall raw_MovePrevious ( ) = 0;
    virtual HRESULT __stdcall raw_Open (
        VARIANT Source,
        VARIANT ActiveConnection,
        enum CursorTypeEnum CursorType,
        enum LockTypeEnum LockType,
        long Options ) = 0;
    virtual HRESULT __stdcall raw_Requery ( ) = 0;
    virtual HRESULT __stdcall raw_Supports (
        enum CursorOptionEnum CursorOptions,
        VARIANT_BOOL * pb ) = 0;
    virtual HRESULT __stdcall raw_Update (
        VARIANT Fields = vtMissing,
        VARIANT Values = vtMissing ) = 0;
    virtual HRESULT __stdcall get_AbsolutePage (
        long * pVal ) = 0;
    virtual HRESULT __stdcall put_AbsolutePage (
        long pVal ) = 0;
    virtual HRESULT __stdcall get_AbsolutePosition (
        long * pVal ) = 0;
    virtual HRESULT __stdcall put_AbsolutePosition (
        long pVal ) = 0;
    virtual HRESULT __stdcall get_BOF (
        VARIANT_BOOL * pVal ) = 0;
    virtual HRESULT __stdcall get_Bookmark (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall put_Bookmark (
        VARIANT pVal ) = 0;
    virtual HRESULT __stdcall get_CacheSize (
        long * pVal ) = 0;
    virtual HRESULT __stdcall put_CacheSize (
        long pVal ) = 0;
    virtual HRESULT __stdcall get_CursorType (
        enum CursorTypeEnum * pVal ) = 0;
    virtual HRESULT __stdcall put_CursorType (
        enum CursorTypeEnum pVal ) = 0;
    virtual HRESULT __stdcall get_EditMode (
        enum EditModeEnum * pVal ) = 0;
    virtual HRESULT __stdcall get_EndOfFile (
        VARIANT_BOOL * pVal ) = 0;
    virtual HRESULT __stdcall get_Fields (
        struct Fields * * pvObject ) = 0;
    virtual HRESULT __stdcall get_LockType (
        enum LockTypeEnum * pVal ) = 0;
    virtual HRESULT __stdcall put_LockType (
        enum LockTypeEnum pVal ) = 0;
    virtual HRESULT __stdcall get_PageCount (
        long * pVal ) = 0;
    virtual HRESULT __stdcall get_PageSize (
        long * pVal ) = 0;
    virtual HRESULT __stdcall put_PageSize (
        long pVal ) = 0;
    virtual HRESULT __stdcall get_RecordCount (
        long * pVal ) = 0;
    virtual HRESULT __stdcall get_Source (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall put_Source (
        BSTR pVal ) = 0;
    virtual HRESULT __stdcall putref_Source (
        IDispatch * pVal ) = 0;
    virtual HRESULT __stdcall putref_ActiveConnection (
        VARIANT pConn ) = 0;
    virtual HRESULT __stdcall get_ActiveConnection (
        VARIANT * pConn ) = 0;
    virtual HRESULT __stdcall put_ActiveConnection (
        VARIANT pConn ) = 0;
    virtual HRESULT __stdcall raw_Find (
        BSTR Criteria,
        long SkipRecords,
        enum SearchDirectionEnum SearchDirection,
        VARIANT Start = vtMissing ) = 0;
    virtual HRESULT __stdcall raw_Seek (
        VARIANT KeyValues,
        enum SeekEnum SeekOption ) = 0;
    virtual HRESULT __stdcall get_index (
        BSTR * pbstrIndex ) = 0;
    virtual HRESULT __stdcall put_index (
        BSTR pbstrIndex ) = 0;
    virtual HRESULT __stdcall get_Filter (
        VARIANT * Criteria ) = 0;
    virtual HRESULT __stdcall put_Filter (
        VARIANT Criteria ) = 0;
    virtual HRESULT __stdcall get_Properties (
        struct Properties * * ppProperties ) = 0;
    virtual HRESULT __stdcall get_State (
        long * plObjState ) = 0;
    virtual HRESULT __stdcall get_Collect (
        VARIANT index,
        VARIANT * pvar ) = 0;
};

enum LockTypeEnum
{
    adLockUnspecified = -1,
    adLockReadOnly = 1,
    adLockPessimistic = 2,
    adLockOptimistic = 3
};

enum CursorTypeEnum
{
    adOpenUnspecified = -1,
    adOpenForwardOnly = 0,
    adOpenKeyset = 1,
    adOpenDynamic = 2,
    adOpenStatic = 3
};

enum CursorOptionEnum
{
    adAddNew = 16778240,
    adApproxPosition = 16384,
    adBookmark = 8192,
    adDelete = 16779264,
    adHoldRecords = 256,
    adMovePrevious = 512,
    adResync = 131072,
    adUpdate = 16809984,
    adUpdateBatch = 65536,
    adFind = 524288,
    adSeek = 4194304,
    adIndex = 8388608
};

enum EditModeEnum
{
    adEditNone = 0,
    adEditInProgress = 1,
    adEditAdd = 2
};

struct __declspec(uuid("113033f3-f682-11d2-bb62-00c04f680acc"))
_Collection : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCount))
    long Count;

    //
    // Wrapper methods for error-handling
    //

    long GetCount ( );
    IUnknownPtr _NewEnum ( );
    HRESULT Refresh ( );
    void GetElement (
        VARIANT * pvar,
        int index );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Count (
        long * pVal ) = 0;
    virtual HRESULT __stdcall raw__NewEnum (
        IUnknown * * ppvObject ) = 0;
    virtual HRESULT __stdcall raw_Refresh ( ) = 0;
    virtual HRESULT __stdcall get_Element (
        VARIANT * pvar,
        int index ) = 0;
};

struct __declspec(uuid("113033f5-f682-11d2-bb62-00c04f680acc"))
Fields : _Collection
{
    //
    // Property data
    //

    __declspec(property(get=GetItem))
    FieldPtr Item[];

    //
    // Wrapper methods for error-handling
    //

    FieldPtr GetItem (
        const _variant_t & varIndex );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Item (
        VARIANT varIndex,
        struct Field * * pVal ) = 0;
};

struct __declspec(uuid("113033f4-f682-11d2-bb62-00c04f680acc"))
Field : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetValue,put=PutValue))
    _variant_t Value;
    __declspec(property(get=GetActualSize))
    long ActualSize;
    __declspec(property(get=GetAttributes))
    long Attributes;
    __declspec(property(get=GetDefinedSize))
    long DefinedSize;
    __declspec(property(get=GetName))
    _bstr_t Name;
    __declspec(property(get=GetType))
    enum DataTypeEnum Type;
    __declspec(property(get=GetUnderlyingValue))
    _variant_t UnderlyingValue;
    __declspec(property(get=GetPrecision))
    short Precision;
    __declspec(property(get=GetNumericScale))
    short NumericScale;

    //
    // Wrapper methods for error-handling
    //

    long GetActualSize ( );
    long GetAttributes ( );
    long GetDefinedSize ( );
    _bstr_t GetName ( );
    enum DataTypeEnum GetType ( );
    _variant_t GetUnderlyingValue ( );
    short GetPrecision ( );
    short GetNumericScale ( );
    HRESULT AppendChunk (
        const _variant_t & Data );
    _variant_t GetChunk (
        long Length );
    _variant_t GetValue ( );
    void PutValue (
        const _variant_t & pVal );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_ActualSize (
        long * pVal ) = 0;
    virtual HRESULT __stdcall get_Attributes (
        long * pVal ) = 0;
    virtual HRESULT __stdcall get_DefinedSize (
        long * pVal ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall get_Type (
        enum DataTypeEnum * pVal ) = 0;
    virtual HRESULT __stdcall get_UnderlyingValue (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall get_Precision (
        short * pVal ) = 0;
    virtual HRESULT __stdcall get_NumericScale (
        short * pVal ) = 0;
    virtual HRESULT __stdcall raw_AppendChunk (
        VARIANT Data ) = 0;
    virtual HRESULT __stdcall raw_GetChunk (
        long Length,
        VARIANT * pvar ) = 0;
    virtual HRESULT __stdcall get_Value (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall put_Value (
        VARIANT pVal ) = 0;
};

enum DataTypeEnum
{
    adBigInt = 20,
    adBinary = 128,
    adBoolean = 11,
    adBSTR = 8,
    adChar = 129,
    adCurrency = 6,
    adDate = 7,
    adDBDate = 133,
    adDBTime = 134,
    adDBTimeStamp = 135,
    adDecimal = 14,
    adDouble = 5,
    adEmpty = 0,
    adError = 10,
    adGUID = 72,
    adIDispatch = 9,
    adInteger = 3,
    adIUnknown = 13,
    adLongVarBinary = 205,
    adLongVarChar = 201,
    adLongVarWChar = 203,
    adNumeric = 131,
    adSingle = 4,
    adSmallInt = 2,
    adTinyInt = 16,
    adUnsignedBigInt = 21,
    adUnsignedInt = 19,
    adUnsignedSmallInt = 18,
    adUnsignedTinyInt = 17,
    adUserDefined = 132,
    adVarBinary = 204,
    adVarChar = 200,
    adVariant = 12,
    adVarWChar = 202,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -