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

📄 mdserv_tlb.~h

📁 多层数据库
💻 ~H
📖 第 1 页 / 共 2 页
字号:
// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// C++ TLBWRTR : $Revision:   1.151.1.0.1.27  $
// File generated on 2007-1-17 下午 07:21:30 from Type Library described below.

// ************************************************************************  //
// Type Lib: E:\CB\OK\No7MidasAuthority\Mdserv.tlb (1)
// LIBID: {E6E36D95-9A4D-45EB-955E-DD94A6BC0A9D}
// LCID: 0
// Helpfile: 
// HelpString: Mdserv Library
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINDOWS\system32\midas.dll)
//   (2) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
#ifndef   Mdserv_TLBH
#define   Mdserv_TLBH

#pragma option push -b -w-inl

#include <utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0600)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary 
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an 
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
       "You need to apply an update/patch to your copy of C++Builder"
#endif
#include <olectl.h>
#include <ocidl.h>
#if defined(USING_ATLVCL) || defined(USING_ATL)
#if !defined(__TLB_NO_EVENT_WRAPPERS)
#include <atl/atlmod.h>
#endif
#endif

#include "databkr.hpp"

using Midas::IAppServer;

// *********************************************************************//
// Forward reference of some VCL types (to avoid including STDVCL.HPP)    
// *********************************************************************//
namespace Stdvcl {class IStrings; class IStringsDisp;}
using namespace Stdvcl;
typedef TComInterface<IStrings> IStringsPtr;
typedef TComInterface<IStringsDisp> IStringsDispPtr;

namespace Mdserv_tlb
{

// *********************************************************************//
// HelpString: Mdserv Library
// Version:    1.0
// *********************************************************************//


// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLSID_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
extern "C" const __declspec(selectany) GUID LIBID_Mdserv = {0xE6E36D95, 0x9A4D, 0x45EB,{ 0x95, 0x5E, 0xDD,0x94, 0xA6, 0xBC,0x0A, 0x9D} };
extern "C" const __declspec(selectany) GUID IID_Imidasserv = {0x1E08CE9D, 0x07D5, 0x4767,{ 0x83, 0x6A, 0xBB,0x74, 0xB1, 0x95,0xD2, 0x2B} };
extern "C" const __declspec(selectany) GUID CLSID_midasserv = {0x3351310E, 0x004C, 0x438F,{ 0x8D, 0xA8, 0x37,0x41, 0x60, 0xD1,0x60, 0x1C} };

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
interface DECLSPEC_UUID("{1E08CE9D-07D5-4767-836A-BB74B195D22B}") Imidasserv;
typedef TComInterface<Imidasserv, &IID_Imidasserv> ImidasservPtr;


// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
//                                                                        
// The LIBID_OF_ macro(s) map a LIBID_OF_CoClassName to the GUID of this  
// TypeLibrary. It simplifies the updating of macros when CoClass name    
// change.                                                                
// *********************************************************************//

#define LIBID_OF_midasserv (&LIBID_Mdserv)
// *********************************************************************//
// Interface: Imidasserv
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {1E08CE9D-07D5-4767-836A-BB74B195D22B}
// *********************************************************************//
interface Imidasserv  : public IAppServer
{
public:
  virtual HRESULT STDMETHODCALLTYPE UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                                       BSTR* Ret/*[out,retval]*/) = 0; // [1]
  virtual HRESULT STDMETHODCALLTYPE NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                            BSTR* Ret/*[out,retval]*/) = 0; // [2]

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)

  BSTR __fastcall UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/)
  {
    BSTR Ret = 0;
    OLECHECK(this->UserAuthentication(UserName, Password, (BSTR*)&Ret));
    return Ret;
  }

  BSTR __fastcall NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/)
  {
    BSTR Ret = 0;
    OLECHECK(this->NewUser(UserName, Password, (BSTR*)&Ret));
    return Ret;
  }



#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMImidasserv
// Interface: Imidasserv
// *********************************************************************//
template <class T /* Imidasserv */ >
class TCOMImidasservT : public TComInterface<Imidasserv>, public TComInterfaceBase<IUnknown>
{
public:
  TCOMImidasservT() {}
  TCOMImidasservT(Imidasserv *intf, bool addRef = false) : TComInterface<Imidasserv>(intf, addRef) {}
  TCOMImidasservT(const TCOMImidasservT& src) : TComInterface<Imidasserv>(src) {}
  TCOMImidasservT& operator=(const TCOMImidasservT& src) { Bind(src, true); return *this;}

  HRESULT         __fastcall UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                                BSTR* Ret/*[out,retval]*/);
  BSTR            __fastcall UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                     BSTR* Ret/*[out,retval]*/);
  BSTR            __fastcall NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);

};
typedef TCOMImidasservT<Imidasserv> TCOMImidasserv;

// *********************************************************************//
// DispIntf:  Imidasserv
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {1E08CE9D-07D5-4767-836A-BB74B195D22B}
// *********************************************************************//
template<class T>
class ImidasservDispT : public TAutoDriver<Imidasserv>
{
public:
  ImidasservDispT(){}

  ImidasservDispT(Imidasserv *pintf)
  {
    TAutoDriver<Imidasserv>::Bind(pintf, false);
  }

  ImidasservDispT(ImidasservPtr pintf)
  {
    TAutoDriver<Imidasserv>::Bind(pintf, true);
  }

  ImidasservDispT& operator=(Imidasserv *pintf)
  {
    TAutoDriver<Imidasserv>::Bind(pintf, false);
    return *this;
  }

  ImidasservDispT& operator=(ImidasservPtr pintf)
  {
    TAutoDriver<Imidasserv>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_midasserv));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_midasserv);
  }

  HRESULT         __fastcall UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                                BSTR* Ret/*[out,retval]*/);
  BSTR            __fastcall UserAuthentication(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                     BSTR* Ret/*[out,retval]*/);
  BSTR            __fastcall NewUser(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, VARIANT Delta/*[in]*/, 
                                             long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/, 
                                             VARIANT* OwnerData/*[in,out]*/, 
                                             VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, VARIANT Delta/*[in]*/, 
                                             long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/, 
                                             VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, VARIANT* Params/*[in,out]*/, 
                                           VARIANT* OwnerData/*[in,out]*/, 
                                           VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, VARIANT* Params/*[in,out]*/, 
                                           VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, VARIANT Data/*[in]*/, 
                                            VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, VARIANT Data/*[in]*/);
  HRESULT         __fastcall AS_GetProviderNames(VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_GetProviderNames(void);
  HRESULT         __fastcall AS_GetParams(BSTR ProviderName/*[in]*/, VARIANT* OwnerData/*[in,out]*/
                                          , VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_GetParams(BSTR ProviderName/*[in]*/, VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_RowRequest(BSTR ProviderName/*[in]*/, VARIANT Row/*[in]*/, 
                                           long RequestType/*[in]*/, VARIANT* OwnerData/*[in,out]*/
                                           , VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_RowRequest(BSTR ProviderName/*[in]*/, VARIANT Row/*[in]*/, 
                                           long RequestType/*[in]*/, VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_Execute(BSTR ProviderName/*[in]*/, BSTR CommandText/*[in]*/, 
                                        VARIANT* Params/*[in,out]*/, VARIANT* OwnerData/*[in,out]*/);


};
typedef ImidasservDispT<Imidasserv> ImidasservDisp;

// *********************************************************************//
// SmartIntf: TCOMImidasserv
// Interface: Imidasserv

⌨️ 快捷键说明

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