📄 mdsrvr_tlb.h
字号:
// ************************************************************************ //
// 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.0.1.2 $
// File generated on 12/17/1999 2:40:47 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: MDSrvr.tlb (1)
// IID\LCID: {91E2BFC0-46EF-4A46-A2A5-11C6628F909B}\0
// Helpfile:
// DepndLst:
// (1) v1.0 Midas, (C:\WIN2K\System32\midas.dll)
// (2) v2.0 stdole, (C:\WIN2K\System32\STDOLE2.TLB)
// (3) v4.0 StdVCL, (C:\WIN2K\System32\STDVCL40.DLL)
// ************************************************************************ //
#ifndef __MDSrvr_TLB_h__
#define __MDSrvr_TLB_h__
#pragma option push -b -w-inl
#include <utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0200)
//
// 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 Mdsrvr_tlb
{
// *********************************************************************//
// HelpString: MDSrvr 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 const GUID LIBID_MDSrvr;
extern const GUID IID_IMDAppServer;
extern const GUID CLSID_MDAppServer;
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
interface DECLSPEC_UUID("{B91196B7-F46B-4FBF-82C6-CCBC8675FBAC}") IMDAppServer;
typedef TComInterface<IMDAppServer, &IID_IMDAppServer> IMDAppServerPtr;
// *********************************************************************//
// 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_MDAppServer (&LIBID_MDSrvr)
// *********************************************************************//
// Interface: IMDAppServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {B91196B7-F46B-4FBF-82C6-CCBC8675FBAC}
// *********************************************************************//
interface IMDAppServer : public IAppServer
{
public:
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
#endif // __TLB_NO_INTERFACE_WRAPPERS
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIMDAppServer
// Interface: IMDAppServer
// *********************************************************************//
template <class T /* IMDAppServer */ >
class TCOMIMDAppServerT : public TComInterface<IMDAppServer>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIMDAppServerT() {}
TCOMIMDAppServerT(IMDAppServer *intf, bool addRef = false) : TComInterface<IMDAppServer>(intf, addRef) {}
TCOMIMDAppServerT(const TCOMIMDAppServerT& src) : TComInterface<IMDAppServer>(src) {}
TCOMIMDAppServerT& operator=(const TCOMIMDAppServerT& src) { Bind(src, true); return *this;}
};
typedef TCOMIMDAppServerT<IMDAppServer> TCOMIMDAppServer;
// *********************************************************************//
// DispIntf: IMDAppServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {B91196B7-F46B-4FBF-82C6-CCBC8675FBAC}
// *********************************************************************//
template<class T>
class IMDAppServerDispT : public TAutoDriver<IMDAppServer>
{
public:
IMDAppServerDispT(){}
IMDAppServerDispT(IMDAppServer *pintf)
{
TAutoDriver<IMDAppServer>::Bind(pintf, false);
}
IMDAppServerDispT(IMDAppServerPtr pintf)
{
TAutoDriver<IMDAppServer>::Bind(pintf, true);
}
IMDAppServerDispT& operator=(IMDAppServer *pintf)
{
TAutoDriver<IMDAppServer>::Bind(pintf, false);
return *this;
}
IMDAppServerDispT& operator=(IMDAppServerPtr pintf)
{
TAutoDriver<IMDAppServer>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_MDAppServer));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_MDAppServer);
}
HRESULT __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, TVariant Delta/*[in]*/,
long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/,
TVariant* OwnerData/*[in,out]*/,
TVariant* Value/*[out,retval]*/);
TVariant __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, TVariant Delta/*[in]*/,
long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/,
TVariant* OwnerData/*[in,out]*/);
HRESULT __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/,
long* RecsOut/*[out]*/, long Options/*[in]*/,
BSTR CommandText/*[in]*/, TVariant* Params/*[in,out]*/,
TVariant* OwnerData/*[in,out]*/,
TVariant* Value/*[out,retval]*/);
TVariant __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/,
long* RecsOut/*[out]*/, long Options/*[in]*/,
BSTR CommandText/*[in]*/, TVariant* Params/*[in,out]*/,
TVariant* OwnerData/*[in,out]*/);
HRESULT __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, TVariant Data/*[in]*/,
TVariant* Value/*[out,retval]*/);
TVariant __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, TVariant Data/*[in]*/);
HRESULT __fastcall AS_GetProviderNames(TVariant* Value/*[out,retval]*/);
TVariant __fastcall AS_GetProviderNames(void);
HRESULT __fastcall AS_GetParams(BSTR ProviderName/*[in]*/, TVariant* OwnerData/*[in,out]*/
, TVariant* Value/*[out,retval]*/);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -