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

📄 msadox.tlh

📁 VC++与ACCESS数据库操作例程。创建数据库
💻 TLH
📖 第 1 页 / 共 3 页
字号:
Procedure : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetName))
    _bstr_t Name;
    __declspec(property(get=GetDateCreated))
    _variant_t DateCreated;
    __declspec(property(get=GetDateModified))
    _variant_t DateModified;

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

    _variant_t GetCommand ( );
    void PutCommand (
        const _variant_t & pVar );
    void PutRefCommand (
        IDispatch * pVar );
    _bstr_t GetName ( );
    _variant_t GetDateCreated ( );
    _variant_t GetDateModified ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Command (
        VARIANT * pVar ) = 0;
    virtual HRESULT __stdcall put_Command (
        VARIANT pVar ) = 0;
    virtual HRESULT __stdcall putref_Command (
        IDispatch * pVar ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall get_DateCreated (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall get_DateModified (
        VARIANT * pVal ) = 0;
};

struct __declspec(uuid("00000614-0000-0010-8000-00aa006d2ea4"))
Views : _Collection
{
    //
    // Property data
    //

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

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

    ViewPtr GetItem (
        const _variant_t & Item );
    HRESULT Append (
        _bstr_t Name,
        IDispatch * Command );
    HRESULT Delete (
        const _variant_t & Item );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Item (
        VARIANT Item,
        struct View * * ppvObject ) = 0;
    virtual HRESULT __stdcall raw_Append (
        BSTR Name,
        IDispatch * Command ) = 0;
    virtual HRESULT __stdcall raw_Delete (
        VARIANT Item ) = 0;
};

struct __declspec(uuid("00000613-0000-0010-8000-00aa006d2ea4"))
View : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetName))
    _bstr_t Name;
    __declspec(property(get=GetDateCreated))
    _variant_t DateCreated;
    __declspec(property(get=GetDateModified))
    _variant_t DateModified;

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

    _variant_t GetCommand ( );
    void PutCommand (
        const _variant_t & pVal );
    void PutRefCommand (
        IDispatch * pVal );
    _bstr_t GetName ( );
    _variant_t GetDateCreated ( );
    _variant_t GetDateModified ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Command (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall put_Command (
        VARIANT pVal ) = 0;
    virtual HRESULT __stdcall putref_Command (
        IDispatch * pVal ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall get_DateCreated (
        VARIANT * pVal ) = 0;
    virtual HRESULT __stdcall get_DateModified (
        VARIANT * pVal ) = 0;
};

struct __declspec(uuid("00000617-0000-0010-8000-00aa006d2ea4"))
Groups : _Collection
{
    //
    // Property data
    //

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

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

    _GroupPtr GetItem (
        const _variant_t & Item );
    HRESULT Append (
        const _variant_t & Item );
    HRESULT Delete (
        const _variant_t & Item );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Item (
        VARIANT Item,
        struct _Group * * ppvObject ) = 0;
    virtual HRESULT __stdcall raw_Append (
        VARIANT Item ) = 0;
    virtual HRESULT __stdcall raw_Delete (
        VARIANT Item ) = 0;
};

struct __declspec(uuid("00000615-0000-0010-8000-00aa006d2ea4"))
Group;
    // [ default ] interface _Group

struct __declspec(uuid("00000616-0000-0010-8000-00aa006d2ea4"))
_Group25 : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetName,put=PutName))
    _bstr_t Name;
    __declspec(property(get=GetUsers))
    UsersPtr Users;

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

    _bstr_t GetName ( );
    void PutName (
        _bstr_t pVal );
    enum RightsEnum GetPermissions (
        const _variant_t & Name,
        enum ObjectTypeEnum ObjectType,
        const _variant_t & ObjectTypeId = vtMissing );
    HRESULT SetPermissions (
        const _variant_t & Name,
        enum ObjectTypeEnum ObjectType,
        enum ActionEnum Action,
        enum RightsEnum Rights,
        enum InheritTypeEnum Inherit,
        const _variant_t & ObjectTypeId = vtMissing );
    UsersPtr GetUsers ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Name (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall put_Name (
        BSTR pVal ) = 0;
    virtual HRESULT __stdcall raw_GetPermissions (
        VARIANT Name,
        enum ObjectTypeEnum ObjectType,
        VARIANT ObjectTypeId,
        enum RightsEnum * Rights ) = 0;
    virtual HRESULT __stdcall raw_SetPermissions (
        VARIANT Name,
        enum ObjectTypeEnum ObjectType,
        enum ActionEnum Action,
        enum RightsEnum Rights,
        enum InheritTypeEnum Inherit,
        VARIANT ObjectTypeId = vtMissing ) = 0;
    virtual HRESULT __stdcall get_Users (
        struct Users * * ppvObject ) = 0;
};

struct __declspec(uuid("00000628-0000-0010-8000-00aa006d2ea4"))
_Group : _Group25
{
    //
    // Property data
    //

    __declspec(property(get=GetProperties))
    PropertiesPtr Properties;
    __declspec(property(get=GetParentCatalog,put=PutRefParentCatalog))
    _CatalogPtr ParentCatalog;

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

    PropertiesPtr GetProperties ( );
    _CatalogPtr GetParentCatalog ( );
    void PutParentCatalog (
        struct _Catalog * ppvObject );
    void PutRefParentCatalog (
        struct _Catalog * ppvObject );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Properties (
        struct Properties * * ppvObject ) = 0;
    virtual HRESULT __stdcall get_ParentCatalog (
        struct _Catalog * * ppvObject ) = 0;
    virtual HRESULT __stdcall put_ParentCatalog (
        struct _Catalog * ppvObject ) = 0;
    virtual HRESULT __stdcall putref_ParentCatalog (
        struct _Catalog * ppvObject ) = 0;
};

enum ObjectTypeEnum
{
    adPermObjProviderSpecific = -1,
    adPermObjTable = 1,
    adPermObjColumn = 2,
    adPermObjDatabase = 3,
    adPermObjProcedure = 4,
    adPermObjView = 5
};

enum RightsEnum
{
    adRightNone = 0,
    adRightDrop = 256,
    adRightExclusive = 512,
    adRightReadDesign = 1024,
    adRightWriteDesign = 2048,
    adRightWithGrant = 4096,
    adRightReference = 8192,
    adRightCreate = 16384,
    adRightInsert = 32768,
    adRightDelete = 65536,
    adRightReadPermissions = 131072,
    adRightWritePermissions = 262144,
    adRightWriteOwner = 524288,
    adRightMaximumAllowed = 33554432,
    adRightFull = 268435456,
    adRightExecute = 536870912,
    adRightUpdate = 1073741824,
    adRightRead = -2147483648
};

enum ActionEnum
{
    adAccessGrant = 1,
    adAccessSet = 2,
    adAccessDeny = 3,
    adAccessRevoke = 4
};

enum InheritTypeEnum
{
    adInheritNone = 0,
    adInheritObjects = 1,
    adInheritContainers = 2,
    adInheritBoth = 3,
    adInheritNoPropogate = 4
};

struct __declspec(uuid("0000061a-0000-0010-8000-00aa006d2ea4"))
Users : _Collection
{
    //
    // Property data
    //

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

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

    _UserPtr GetItem (
        const _variant_t & Item );
    HRESULT Append (
        const _variant_t & Item,
        _bstr_t Password );
    HRESULT Delete (
        const _variant_t & Item );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Item (
        VARIANT Item,
        struct _User * * ppvObject ) = 0;
    virtual HRESULT __stdcall raw_Append (
        VARIANT Item,
        BSTR Password ) = 0;
    virtual HRESULT __stdcall raw_Delete (
        VARIANT Item ) = 0;
};

struct __declspec(uuid("00000618-0000-0010-8000-00aa006d2ea4"))
User;
    // [ default ] interface _User

struct __declspec(uuid("00000619-0000-0010-8000-00aa006d2ea4"))
_User25 : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetName,put=PutName))
    _bstr_t Name;
    __declspec(property(get=GetGroups))
    GroupsPtr Groups;

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

    _bstr_t GetName ( );
    void PutName (
        _bstr_t pVal );
    enum RightsEnum GetPermissions (
        const _variant_t & Name,
        enum ObjectTypeEnum ObjectType,
        const _variant_t & ObjectTypeId = vtMissing );
    HRESULT SetPermissions (
        const _variant_t & Name,
        enum ObjectTypeEnum ObjectType,
        enum ActionEnum Action,
        enum RightsEnum Rights,
        enum InheritTypeEnum Inherit,
        const _variant_t & ObjectTypeId = vtMissing );
    HRESULT ChangePassword (
        _bstr_t OldPassword,
        _bstr_t NewPassword );
    GroupsPtr GetGroups ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Name (
        BSTR * pVal ) = 0;
    virtual HRESULT __stdcall put_Name (
        BSTR pVal ) = 0;
    virtual HRESULT __stdcall raw_GetPermissions (
        VARIANT Name,
        enum ObjectTypeEnum ObjectType,
        VARIANT ObjectTypeId,
        enum RightsEnum * Rights ) = 0;
    virtual HRESULT __stdcall raw_SetPermissions (
        VARIANT Name,
        enum ObjectTypeEnum ObjectType,
        enum ActionEnum Action,
        enum RightsEnum Rights,
        enum InheritTypeEnum Inherit,
        VARIANT ObjectTypeId = vtMissing ) = 0;
    virtual HRESULT __stdcall raw_ChangePassword (
        BSTR OldPassword,
        BSTR NewPassword ) = 0;
    virtual HRESULT __stdcall get_Groups (
        struct Groups * * ppvObject ) = 0;
};

struct __declspec(uuid("00000627-0000-0010-8000-00aa006d2ea4"))
_User : _User25
{
    //
    // Property data
    //

    __declspec(property(get=GetProperties))
    PropertiesPtr Properties;
    __declspec(property(get=GetParentCatalog,put=PutRefParentCatalog))
    _CatalogPtr ParentCatalog;

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

    PropertiesPtr GetProperties ( );
    _CatalogPtr GetParentCatalog ( );
    void PutParentCatalog (
        struct _Catalog * ppvObject );
    void PutRefParentCatalog (
        struct _Catalog * ppvObject );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Properties (
        struct Properties * * ppvObject ) = 0;
    virtual HRESULT __stdcall get_ParentCatalog (
        struct _Catalog * * ppvObject ) = 0;
    virtual HRESULT __stdcall put_ParentCatalog (
        struct _Catalog * ppvObject ) = 0;
    virtual HRESULT __stdcall putref_ParentCatalog (
        struct _Catalog * ppvObject ) = 0;
};

struct __declspec(uuid("00000602-0000-0010-8000-00aa006d2ea4"))
Catalog;
    // [ default ] interface _Catalog

//
// Wrapper method implementations
//

#include "c:\documents and settings\chenzhigang\桌面\dbdemo\debug\msadox.tli"

} // namespace ADOX

#pragma pack(pop)

⌨️ 快捷键说明

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