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

📄 es.tlh

📁 中间件编写示例 COM与.NET组件服务
💻 TLH
📖 第 1 页 / 共 2 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (ad099fa0).
//
// es.tlh
//
// C++ source equivalent of Win32 type library D:\WINNT\system32\es.dll
// compiler-generated file created 07/16/00 at 16:55:57 - DO NOT EDIT!

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

//
// Forward references and typedefs
//

struct __declspec(uuid("f4a07d63-2e25-11d1-9964-00c04fbbb345"))
/* interface */ IEnumEventObject;
struct __declspec(uuid("f89ac270-d4eb-11d1-b682-00805fc79216"))
/* dual interface */ IEventObjectCollection;
struct __declspec(uuid("0343e2f4-86f6-11d1-b760-00c04fb926af"))
/* dual interface */ IEventControl;
struct __declspec(uuid("465e5cc0-7b26-11d1-88fb-0080c7d771bf"))
/* interface */ IPublisherFilter;
struct __declspec(uuid("e0498c93-4efe-11d1-9971-00c04fbbb345"))
/* dual interface */ IFiringControl;
struct __declspec(uuid("4a6b0e15-2e38-11d1-9965-00c04fbbb345"))
/* dual interface */ IEventSubscription;
struct __declspec(uuid("0343e2f5-86f6-11d1-b760-00c04fb926af"))
/* interface */ IMultiInterfaceEventControl;
struct __declspec(uuid("465e5cc1-7b26-11d1-88fb-0080c7d771bf"))
/* interface */ IMultiInterfacePublisherFilter;
struct __declspec(uuid("4e14fb9f-2e22-11d1-9964-00c04fbbb345"))
/* dual interface */ IEventSystem;
struct __declspec(uuid("e341516b-2e32-11d1-9964-00c04fbbb345"))
/* dual interface */ IEventPublisher;
struct __declspec(uuid("fb2b72a0-7a68-11d1-88f9-0080c7d771bf"))
/* dual interface */ IEventClass;
struct __declspec(uuid("f4a07d70-2e25-11d1-9964-00c04fbbb345"))
/* interface */ IEventObjectChange;
typedef enum __MIDL_IEventObjectChange_0001 EOC_ChangeType;
struct __declspec(uuid("da538ee2-f4de-11d1-b6bb-00805fc79216"))
/* dual interface */ IEventProperty;
struct __declspec(uuid("fb2b72a1-7a68-11d1-88f9-0080c7d771bf"))
/* dual interface */ IEventClass2;
struct __declspec(uuid("4a6b0e16-2e38-11d1-9965-00c04fbbb345"))
/* dual interface */ IEventSubscription2;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(IEnumEventObject, __uuidof(IEnumEventObject));
_COM_SMARTPTR_TYPEDEF(IEventObjectCollection, __uuidof(IEventObjectCollection));
_COM_SMARTPTR_TYPEDEF(IEventControl, __uuidof(IEventControl));
_COM_SMARTPTR_TYPEDEF(IPublisherFilter, __uuidof(IPublisherFilter));
_COM_SMARTPTR_TYPEDEF(IFiringControl, __uuidof(IFiringControl));
_COM_SMARTPTR_TYPEDEF(IEventSubscription, __uuidof(IEventSubscription));
_COM_SMARTPTR_TYPEDEF(IMultiInterfaceEventControl, __uuidof(IMultiInterfaceEventControl));
_COM_SMARTPTR_TYPEDEF(IMultiInterfacePublisherFilter, __uuidof(IMultiInterfacePublisherFilter));
_COM_SMARTPTR_TYPEDEF(IEventSystem, __uuidof(IEventSystem));
_COM_SMARTPTR_TYPEDEF(IEventPublisher, __uuidof(IEventPublisher));
_COM_SMARTPTR_TYPEDEF(IEventClass, __uuidof(IEventClass));
_COM_SMARTPTR_TYPEDEF(IEventObjectChange, __uuidof(IEventObjectChange));
_COM_SMARTPTR_TYPEDEF(IEventProperty, __uuidof(IEventProperty));
_COM_SMARTPTR_TYPEDEF(IEventClass2, __uuidof(IEventClass2));
_COM_SMARTPTR_TYPEDEF(IEventSubscription2, __uuidof(IEventSubscription2));

//
// Type library items
//

struct __declspec(uuid("f4a07d63-2e25-11d1-9964-00c04fbbb345"))
IEnumEventObject : IUnknown
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall Clone (
        struct IEnumEventObject * * ppInterface ) = 0;
    virtual HRESULT __stdcall Next (
        unsigned long cReqElem,
        IUnknown * * ppInterface,
        unsigned long * cRetElem ) = 0;
    virtual HRESULT __stdcall Reset ( ) = 0;
    virtual HRESULT __stdcall Skip (
        unsigned long cSkipElem ) = 0;
};

struct __declspec(uuid("f89ac270-d4eb-11d1-b682-00805fc79216"))
IEventObjectCollection : IDispatch
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get__NewEnum (
        IUnknown * * ppUnkEnum ) = 0;
    virtual HRESULT __stdcall get_Item (
        BSTR objectID,
        VARIANT * pItem ) = 0;
    virtual HRESULT __stdcall get_NewEnum (
        struct IEnumEventObject * * ppEnum ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * pCount ) = 0;
    virtual HRESULT __stdcall Add (
        VARIANT * Item,
        BSTR objectID ) = 0;
    virtual HRESULT __stdcall Remove (
        BSTR objectID ) = 0;
};

struct __declspec(uuid("0343e2f4-86f6-11d1-b760-00c04fb926af"))
IEventControl : IDispatch
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall SetPublisherFilter (
        BSTR methodName,
        struct IPublisherFilter * pPublisherFilter ) = 0;
    virtual HRESULT __stdcall get_AllowInprocActivation (
        long * pfAllowInprocActivation ) = 0;
    virtual HRESULT __stdcall put_AllowInprocActivation (
        long pfAllowInprocActivation ) = 0;
    virtual HRESULT __stdcall GetSubscriptions (
        BSTR methodName,
        BSTR optionalCriteria,
        int * optionalErrorIndex,
        struct IEventObjectCollection * * ppCollection ) = 0;
    virtual HRESULT __stdcall SetDefaultQuery (
        BSTR methodName,
        BSTR criteria,
        int * errorIndex ) = 0;
};

struct __declspec(uuid("465e5cc0-7b26-11d1-88fb-0080c7d771bf"))
IPublisherFilter : IUnknown
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall Initialize (
        BSTR methodName,
        IDispatch * dispUserDefined ) = 0;
    virtual HRESULT __stdcall PrepareToFire (
        BSTR methodName,
        struct IFiringControl * firingControl ) = 0;
};

struct __declspec(uuid("e0498c93-4efe-11d1-9971-00c04fbbb345"))
IFiringControl : IDispatch
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall FireSubscription (
        struct IEventSubscription * subscription ) = 0;
};

struct __declspec(uuid("4a6b0e15-2e38-11d1-9965-00c04fbbb345"))
IEventSubscription : IDispatch
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_SubscriptionID (
        BSTR * pbstrSubscriptionID ) = 0;
    virtual HRESULT __stdcall put_SubscriptionID (
        BSTR pbstrSubscriptionID ) = 0;
    virtual HRESULT __stdcall get_SubscriptionName (
        BSTR * pbstrSubscriptionName ) = 0;
    virtual HRESULT __stdcall put_SubscriptionName (
        BSTR pbstrSubscriptionName ) = 0;
    virtual HRESULT __stdcall get_PublisherID (
        BSTR * pbstrPublisherID ) = 0;
    virtual HRESULT __stdcall put_PublisherID (
        BSTR pbstrPublisherID ) = 0;
    virtual HRESULT __stdcall get_EventClassID (
        BSTR * pbstrEventClassID ) = 0;
    virtual HRESULT __stdcall put_EventClassID (
        BSTR pbstrEventClassID ) = 0;
    virtual HRESULT __stdcall get_methodName (
        BSTR * pbstrMethodName ) = 0;
    virtual HRESULT __stdcall put_methodName (
        BSTR pbstrMethodName ) = 0;
    virtual HRESULT __stdcall get_SubscriberCLSID (
        BSTR * pbstrSubscriberCLSID ) = 0;
    virtual HRESULT __stdcall put_SubscriberCLSID (
        BSTR pbstrSubscriberCLSID ) = 0;
    virtual HRESULT __stdcall get_SubscriberInterface (
        IUnknown * * ppSubscriberInterface ) = 0;
    virtual HRESULT __stdcall put_SubscriberInterface (
        IUnknown * ppSubscriberInterface ) = 0;
    virtual HRESULT __stdcall get_PerUser (
        long * pfPerUser ) = 0;
    virtual HRESULT __stdcall put_PerUser (
        long pfPerUser ) = 0;
    virtual HRESULT __stdcall get_OwnerSID (
        BSTR * pbstrOwnerSID ) = 0;
    virtual HRESULT __stdcall put_OwnerSID (
        BSTR pbstrOwnerSID ) = 0;
    virtual HRESULT __stdcall get_Enabled (
        long * pfEnabled ) = 0;
    virtual HRESULT __stdcall put_Enabled (
        long pfEnabled ) = 0;
    virtual HRESULT __stdcall get_Description (
        BSTR * pbstrDescription ) = 0;
    virtual HRESULT __stdcall put_Description (
        BSTR pbstrDescription ) = 0;
    virtual HRESULT __stdcall get_MachineName (
        BSTR * pbstrMachineName ) = 0;
    virtual HRESULT __stdcall put_MachineName (
        BSTR pbstrMachineName ) = 0;
    virtual HRESULT __stdcall GetPublisherProperty (
        BSTR bstrPropertyName,
        VARIANT * propertyValue ) = 0;
    virtual HRESULT __stdcall PutPublisherProperty (
        BSTR bstrPropertyName,
        VARIANT * propertyValue ) = 0;
    virtual HRESULT __stdcall RemovePublisherProperty (
        BSTR bstrPropertyName ) = 0;
    virtual HRESULT __stdcall GetPublisherPropertyCollection (
        struct IEventObjectCollection * * collection ) = 0;
    virtual HRESULT __stdcall GetSubscriberProperty (
        BSTR bstrPropertyName,
        VARIANT * propertyValue ) = 0;
    virtual HRESULT __stdcall PutSubscriberProperty (
        BSTR bstrPropertyName,
        VARIANT * propertyValue ) = 0;
    virtual HRESULT __stdcall RemoveSubscriberProperty (
        BSTR bstrPropertyName ) = 0;
    virtual HRESULT __stdcall GetSubscriberPropertyCollection (
        struct IEventObjectCollection * * collection ) = 0;
    virtual HRESULT __stdcall get_InterfaceID (
        BSTR * pbstrInterfaceID ) = 0;
    virtual HRESULT __stdcall put_InterfaceID (
        BSTR pbstrInterfaceID ) = 0;
};

struct __declspec(uuid("0343e2f5-86f6-11d1-b760-00c04fb926af"))
IMultiInterfaceEventControl : IUnknown
{
    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall SetMultiInterfacePublisherFilter (
        struct IMultiInterfacePublisherFilter * classFilter ) = 0;
    virtual HRESULT __stdcall GetSubscriptions (
        GUID * eventIID,
        BSTR bstrMethodName,
        BSTR optionalCriteria,
        int * optionalErrorIndex,
        struct IEventObjectCollection * * ppCollection ) = 0;

⌨️ 快捷键说明

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