📄 usercomsvr_tlb.pas
字号:
unit UserComSvr_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 : 1.2
// File generated on 03-6-7 14:23:39 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:\Delphi面向对象编程思想\笔记本电脑\示例程序\第8章 实现界面和业务的分离\界面和业务分离的演化\空间\UserComSvr.tlb (1)
// LIBID: {A0912B97-6E3A-4A4E-9E51-6F41CAB3420F}
// LCID: 0
// Helpfile:
// HelpString: UserComSvr Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\SYSTEM\StdOle2.Tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
// *********************************************************************//
// 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
UserComSvrMajorVersion = 1;
UserComSvrMinorVersion = 0;
LIBID_UserComSvr: TGUID = '{A0912B97-6E3A-4A4E-9E51-6F41CAB3420F}';
IID_IUser: TGUID = '{0DD8DE94-ACCA-4B82-9710-94734A8CBD39}';
CLASS_User: TGUID = '{96893809-B47F-4BC3-B2D0-FA2B734433E4}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IUser = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
User = IUser;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
POleVariant1 = ^OleVariant; {*}
// *********************************************************************//
// Interface: IUser
// Flags: (256) OleAutomation
// GUID: {0DD8DE94-ACCA-4B82-9710-94734A8CBD39}
// *********************************************************************//
IUser = interface(IUnknown)
['{0DD8DE94-ACCA-4B82-9710-94734A8CBD39}']
procedure getDepList(out Deps: OleVariant); stdcall;
procedure getUserList(const strName: WideString; out vData: OleVariant); stdcall;
procedure UpdateUserData(var vData: OleVariant; out nErr: SYSINT); stdcall;
end;
// *********************************************************************//
// The Class CoUser provides a Create and CreateRemote method to
// create instances of the default interface IUser exposed by
// the CoClass User. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoUser = class
class function Create: IUser;
class function CreateRemote(const MachineName: string): IUser;
end;
implementation
uses ComObj;
class function CoUser.Create: IUser;
begin
Result := CreateComObject(CLASS_User) as IUser;
end;
class function CoUser.CreateRemote(const MachineName: string): IUser;
begin
Result := CreateRemoteComObject(MachineName, CLASS_User) as IUser;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -