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

📄 bdeprov_tlb.~pas

📁 delphi Adsi Memo delphi Adsi Memo delphi Adsi Memo
💻 ~PAS
字号:
unit BDEProv_TLB;

// ************************************************************************ //
// 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.                                         
// ************************************************************************ //

// PASTLWTR : $Revision:   1.88.1.0.1.0  $
// File generated on 05/16/2000 15:08:26 from Type Library described below.

// ************************************************************************ //
// Type Lib: C:\Work\ADSI\Provider\BDEProvider.tlb (1)
// IID\LCID: {D28B3020-21C8-11D4-AFDF-0080C8C04D15}\0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 ActiveDs, (C:\WINDOWS\SYSTEM\activeds.tlb)
//   (2) v2.0 stdole, (C:\WINDOWS\SYSTEM\STDOLE2.TLB)
//   (3) v4.0 StdVCL, (C:\WINDOWS\SYSTEM\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
interface

uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL, 
  ActiveDs_TLB;

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLASS_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
const
  // TypeLibrary Major and minor versions
  BDEProvMajorVersion = 1;
  BDEProvMinorVersion = 0;

  LIBID_BDEProv: TGUID = '{D28B3020-21C8-11D4-AFDF-0080C8C04D15}';

  IID_IBDENameSpace: TGUID = '{D28B3021-21C8-11D4-AFDF-0080C8C04D15}';
  CLASS_BDENameSpace: TGUID = '{D28B3023-21C8-11D4-AFDF-0080C8C04D15}';
  IID_IBDEGenObject: TGUID = '{1C3D7ED3-2B2A-11D4-AFDF-0080C8C04D15}';
  CLASS_BDEGenObject: TGUID = '{1C3D7ED5-2B2A-11D4-AFDF-0080C8C04D15}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IBDENameSpace = interface;
  IBDENameSpaceDisp = dispinterface;
  IBDEGenObject = interface;
  IBDEGenObjectDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  BDENameSpace = IBDENameSpace;
  BDEGenObject = IBDEGenObject;


// *********************************************************************//
// Interface: IBDENameSpace
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D28B3021-21C8-11D4-AFDF-0080C8C04D15}
// *********************************************************************//
  IBDENameSpace = interface(IADs)
    ['{D28B3021-21C8-11D4-AFDF-0080C8C04D15}']
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); safecall;
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
    function  Get_Filter: OleVariant; safecall;
    procedure Set_Filter(Value: OleVariant); safecall;
    function  Get__NewEnum: IUnknown; safecall;
    function  Get_Count: Integer; safecall;
    function  Get_Hints: OleVariant; safecall;
    procedure Set_Hints(Value: OleVariant); safecall;
    property Filter: OleVariant read Get_Filter write Set_Filter;
    property _NewEnum: IUnknown read Get__NewEnum;
    property Count: Integer read Get_Count;
    property Hints: OleVariant read Get_Hints write Set_Hints;
  end;

// *********************************************************************//
// DispIntf:  IBDENameSpaceDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D28B3021-21C8-11D4-AFDF-0080C8C04D15}
// *********************************************************************//
  IBDENameSpaceDisp = dispinterface
    ['{D28B3021-21C8-11D4-AFDF-0080C8C04D15}']
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 15;
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 16;
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); dispid 17;
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 18;
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 19;
    property Filter: OleVariant dispid 21;
    property _NewEnum: IUnknown readonly dispid -4;
    property Count: Integer readonly dispid 23;
    property Hints: OleVariant dispid 24;
    property Name: WideString readonly dispid 2;
    property Class_: WideString readonly dispid 3;
    property GUID: WideString readonly dispid 4;
    property ADsPath: WideString readonly dispid 5;
    property Parent: WideString readonly dispid 6;
    property Schema: WideString readonly dispid 7;
    procedure GetInfo; dispid 8;
    procedure SetInfo; dispid 9;
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  end;

// *********************************************************************//
// Interface: IBDEGenObject
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {1C3D7ED3-2B2A-11D4-AFDF-0080C8C04D15}
// *********************************************************************//
  IBDEGenObject = interface(IADs)
    ['{1C3D7ED3-2B2A-11D4-AFDF-0080C8C04D15}']
  end;

// *********************************************************************//
// DispIntf:  IBDEGenObjectDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {1C3D7ED3-2B2A-11D4-AFDF-0080C8C04D15}
// *********************************************************************//
  IBDEGenObjectDisp = dispinterface
    ['{1C3D7ED3-2B2A-11D4-AFDF-0080C8C04D15}']
    property Name: WideString readonly dispid 2;
    property Class_: WideString readonly dispid 3;
    property GUID: WideString readonly dispid 4;
    property ADsPath: WideString readonly dispid 5;
    property Parent: WideString readonly dispid 6;
    property Schema: WideString readonly dispid 7;
    procedure GetInfo; dispid 8;
    procedure SetInfo; dispid 9;
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  end;

// *********************************************************************//
// The Class CoBDENameSpace provides a Create and CreateRemote method to          
// create instances of the default interface IBDENameSpace exposed by              
// the CoClass BDENameSpace. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoBDENameSpace = class
    class function Create: IBDENameSpace;
    class function CreateRemote(const MachineName: string): IBDENameSpace;
  end;

// *********************************************************************//
// The Class CoBDEGenObject provides a Create and CreateRemote method to          
// create instances of the default interface IBDEGenObject exposed by              
// the CoClass BDEGenObject. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoBDEGenObject = class
    class function Create: IBDEGenObject;
    class function CreateRemote(const MachineName: string): IBDEGenObject;
  end;

implementation

uses ComObj;

class function CoBDENameSpace.Create: IBDENameSpace;
begin
  Result := CreateComObject(CLASS_BDENameSpace) as IBDENameSpace;
end;

class function CoBDENameSpace.CreateRemote(const MachineName: string): IBDENameSpace;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_BDENameSpace) as IBDENameSpace;
end;

class function CoBDEGenObject.Create: IBDEGenObject;
begin
  Result := CreateComObject(CLASS_BDEGenObject) as IBDEGenObject;
end;

class function CoBDEGenObject.CreateRemote(const MachineName: string): IBDEGenObject;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_BDEGenObject) as IBDEGenObject;
end;

end.

⌨️ 快捷键说明

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