o
    j                     @   s  d dl mZ d dl mZ d dlmZmZmZ d dlmZm	Z	m
Z
mZmZ d dlmZmZmZ d dlmZmZmZmZ d dlmZ d dlmZ d d	lmZ d d
lmZmZ G dd deZedZ edZ!edZ"edZ#edZ$edZ%edZ&edZ'edZ(edZ)edZ*edZ+edZ,edZ-edZ.edZ/eZ0G dd deZ1G dd  d eZ2G d!d" d"eZ3G d#d$ d$eZ4G d%d& d&e	Z5G d'd( d(eZ6G d)d* d*e	Z7G d+d, d,eZ8G d-d. d.e	Z9G d/d0 d0eZ:G d1d2 d2e	Z;G d3d4 d4eZ<G d5d6 d6e	Z=G d7d8 d8eZ>G d9d: d:e	Z?G d;d< d<eZ@G d=d> d>e	ZAG d?d@ d@eZBG dAdB dBe	ZCG dCdD dDeZDG dEdF dFe	ZEG dGdH dHeZFG dIdJ dJe	ZGG dKdL dLeZHG dMdN dNe	ZIG dOdP dPeZJG dQdR dRe	ZKG dSdT dTeZLG dUdV dVe	ZMG dWdX dXeZNG dYdZ dZe	ZOG d[d\ d\eZPG d]d^ d^e	ZQG d_d` d`eZRG dadb dbe	ZSG dcdd ddeZTG dedf dfe	ZUG dgdh dheZVG didj dje	ZWG dkdl dleZXG dmdn dne	ZYG dodp dpeZZG dqdr dre	Z[G dsdt dteZ\G dudv dve	Z]G dwdx dxeZ^G dydz dze	Z_G d{d| d|eZ`G d}d~ d~e	ZaG dd deZbG dd de	ZcG dd deZdG dd de	ZeG dd deZfG dd de	ZgG dd deZhG dd de	ZiG dd deZjG dd de	ZkG dd deZlG dd de	ZmG dd deZnG dd de	ZoG dd deZpG dd de	ZqG dd deZrG dd de	ZsG dd deZtG dd de	ZuG dd deZvG dd de	ZwG dd deZxG dd de	ZyG dd deZzG dd de	Z{G dd deZ|G dd de	Z}G dd deZ~G dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG ddĄ deZG ddƄ de	ZG ddȄ deZG ddʄ de	ZG dd̄ deZG dd΄ de	ZG ddЄ deZG dd҄ de	ZG ddԄ deZG ddք de	ZG dd؄ deZG ddڄ de	ZG dd܄ deZG ddބ de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd  d eZG dd de	ZG dd deZG dd de	ZG dd deZG d	d
 d
e	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd deZG dd de	ZG dd  d eZG d!d" d"e	ZG d#d$ d$eZG d%d& d&e	ZG d'd( d(eZG d)d* d*e	ZG d+d, d,eZG d-d. d.e	ZG d/d0 d0eZG d1d2 d2e	ZG d3d4 d4eZG d5d6 d6e	ZG d7d8 d8eZG d9d: d:e	ZG d;d< d<eZG d=d> d>e	ZG d?d@ d@eZG dAdB dBe	ZG dCdD dDeZG dEdF dFe	ZG dGdH dHeZG dIdJ dJe	ZG dKdL dLeZG dMdN dNe	ZG dOdP dPeZG dQdR dRe	ZG dSdT dTeZG dUdV dVe	ZG dWdX dXeZG dYdZ dZe	ZG d[d\ d\eZG d]d^ d^e	ZG d_d` d`eZG dadb dbe	ZG dcdd ddeZG dedf dfe	ZG dgdh dheZG didj dje	ZG dkdl dleZG dmdn dne	ZG dodp dpeZG dqdr dre	ZG dsdt dteZG dudv dve	ZG dwdx dxeZG dydz dze	ZG d{d| d|eZG d}d~ d~e	ZG dd deZG dd de	ZG dd deZG dd de	Zi ZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZdS (      )division)print_function)	NDRSTRUCTNDRENUMNDRUniConformantVaryingArray)DCOMCALL
DCOMANSWER	INTERFACEPMInterfacePointerIRemUnknown)	IDispatchBSTRVARIANT)INTULONGLONGBOOLEAN)DCERPCException)Enum)hresult_errors)string_to_binuuidtup_to_binc                   @   s   e Zd ZdddZdd ZdS )DCERPCSessionErrorNc                 C   s   t | ||| d S N)r   __init__)selferror_string
error_codepacket r   /root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/impacket/dcerpc/v5/dcom/comev.pyr   '   s   zDCERPCSessionError.__init__c                 C   sF   | j tjv rtj| j  d }tj| j  d }d| j ||f S d| j  S )Nr      z(COMEV SessionError: code: 0x%x - %s - %sz,COMEV SessionError: unknown error code: 0x%x)r   r   ERROR_MESSAGES)r   error_msg_shorterror_msg_verboser   r   r    __str__*   s
   
zDCERPCSessionError.__str__)NNN)__name__
__module____qualname__r   r%   r   r   r   r    r   &   s    
r   z$4E14FBA2-2E22-11D1-9964-00C04FBBB345$99CC098F-A48A-4e9c-8E58-965C0AFC19D5z$cdbec9c0-7a68-11d1-88f9-0080c7d771bfz$7542e960-79c7-11d1-88f9-0080c7d771bfz$41E90F3E-56C1-4633-81C3-6E8BAC8BDD70)z$4E14FB9F-2E22-11D1-9964-00C04FBBB3450.0)r)   r*   )z$a0e8f27a-888c-11d1-b763-00c04fb926afr*   )z$f89ac270-d4eb-11d1-b682-00805fc79216r*   )z$F4A07D63-2E25-11D1-9964-00C04FBBB345r*   )z$4A6B0E15-2E38-11D1-9965-00C04FBBB345r*   )z$4A6B0E16-2E38-11D1-9965-00C04FBBB345r*   )z$FBC1D17D-C498-43a0-81AF-423DDD530AF6r*   )z$fb2b72a0-7a68-11d1-88f9-0080c7d771bfr*   )z$fb2b72a1-7a68-11d1-88f9-0080c7d771bfr*   )z$7FB7EA43-2D76-4ea8-8CD9-3DECC270295Er*   c                   @   s   e Zd ZG dd deZdS )VARENUMc                   @   s   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%S )&zVARENUM.enumItemsr   r!                        	   
                                                               $   %   &   i    i @  N)'r&   r'   r(   VT_EMPTYVT_NULLVT_I2VT_I4VT_R4VT_R8VT_CYVT_DATEVT_BSTRVT_DISPATCHVT_ERRORVT_BOOL
VT_VARIANT
VT_UNKNOWN
VT_DECIMALVT_I1VT_UI1VT_UI2VT_UI4VT_I8VT_UI8VT_INTVT_UINTVT_VOID
VT_HRESULTVT_PTRVT_SAFEARRAY	VT_CARRAYVT_USERDEFINEDVT_LPSTR	VT_LPWSTR	VT_RECORD
VT_INT_PTRVT_UINT_PTRVT_ARRAYVT_BYREFr   r   r   r    	enumItemsK   sJ    rp   N)r&   r'   r(   r   rp   r   r   r   r    r+   J   s    r+   c                   @   s   e Zd ZdZdS )TYPEATTRr   N)r&   r'   r(   	structurer   r   r   r    rq   u       rq   c                   @   s   e Zd ZeZdS )OBJECT_ARRAYN)r&   r'   r(   r
   itemr   r   r   r    rt   y   rs   rt   c                   @       e Zd ZdZdefdeffZdS )IEventSystem_Queryr1   progIDqueryCriteriaNr&   r'   r(   opnumr   rr   r   r   r   r    rw      
    rw   c                   @   "   e Zd ZdefdefdeffZdS )IEventSystem_QueryResponse
errorIndexppInterface	ErrorCodeN)r&   r'   r(   r   r
   error_status_trr   r   r   r   r    r~      
    r~   c                   @       e Zd ZdZdefdeffZdS )IEventSystem_Storer2   rx   
pInterfaceN)r&   r'   r(   r{   r   r
   rr   r   r   r   r    r      r|   r   c                   @      e Zd ZdeffZdS )IEventSystem_StoreResponser   Nr&   r'   r(   r   rr   r   r   r   r    r          r   c                   @   rv   )IEventSystem_Remover3   rx   ry   Nrz   r   r   r   r    r      r|   r   c                   @      e Zd ZdefdeffZdS )IEventSystem_RemoveResponser   r   Nr&   r'   r(   r   r   rr   r   r   r   r    r          r   c                   @      e Zd ZdZdZdS ).IEventSystem_get_EventObjectChangeEventClassIDr4   r   Nr&   r'   r(   r{   rr   r   r   r   r    r          r   c                   @   r   )6IEventSystem_get_EventObjectChangeEventClassIDResponsepbstrEventClassIDr   Nr&   r'   r(   r   r   rr   r   r   r   r    r      r   r   c                   @   rv   )IEventSystem_QuerySr5   rx   ry   Nrz   r   r   r   r    r      r|   r   c                   @   r   )IEventSystem_QuerySResponser   r   Nr&   r'   r(   r
   r   rr   r   r   r   r    r      r   r   c                   @   rv   )IEventSystem_RemoveSr6   rx   ry   Nrz   r   r   r   r    r      r|   r   c                   @   r   )IEventSystem_RemoveSResponser   Nr   r   r   r   r    r      r   r   c                   @   r   )IEventClass_get_EventClassIDr1   r   Nr   r   r   r   r    r      r   r   c                   @   r   )$IEventClass_get_EventClassIDResponser   r   Nr   r   r   r   r    r      r   r   c                   @      e Zd ZdZdeffZdS )IEventClass_put_EventClassIDr2   bstrEventClassIDNrz   r   r   r   r    r          r   c                   @   r   )$IEventClass_put_EventClassIDResponser   Nr   r   r   r   r    r      r   r   c                   @   r   )IEventClass_get_EventClassNamer3   r   Nr   r   r   r   r    r      r   r   c                   @   r   )&IEventClass_get_EventClassNameResponsepbstrEventClassNamer   Nr   r   r   r   r    r      r   r   c                   @   r   )IEventClass_put_EventClassNamer4   bstrEventClassNameNrz   r   r   r   r    r      r   r   c                   @   r   )&IEventClass_put_EventClassNameResponser   Nr   r   r   r   r    r      r   r   c                   @   r   )IEventClass_get_OwnerSIDr5   r   Nr   r   r   r   r    r     r   r   c                   @   r   ) IEventClass_get_OwnerSIDResponsepbstrOwnerSIDr   Nr   r   r   r   r    r   	  r   r   c                   @   r   )IEventClass_put_OwnerSIDr6   bstrOwnerSIDNrz   r   r   r   r    r     r   r   c                   @   r   ) IEventClass_put_OwnerSIDResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )!IEventClass_get_FiringInterfaceIDr7   r   Nr   r   r   r   r    r     r   r   c                   @   r   ))IEventClass_get_FiringInterfaceIDResponsepbstrFiringInterfaceIDr   Nr   r   r   r   r    r   !  r   r   c                   @   r   )!IEventClass_put_FiringInterfaceIDr8   bstrFiringInterfaceIDNrz   r   r   r   r    r   (  r   r   c                   @   r   ))IEventClass_put_FiringInterfaceIDResponser   Nr   r   r   r   r    r   .  r   r   c                   @   r   )IEventClass_get_Description   r   Nr   r   r   r   r    r   4  r   r   c                   @   r   )#IEventClass_get_DescriptionResponsepbstrDescriptionr   Nr   r   r   r   r    r   9  r   r   c                   @   r   )IEventClass_put_Descriptionr9   bstrDescriptionNrz   r   r   r   r    r   @  r   r   c                   @   r   )#IEventClass_put_DescriptionResponser   Nr   r   r   r   r    r   F  r   r   c                   @   r   )IEventClass_get_TypeLibr<   r   Nr   r   r   r   r    r   L  r   r   c                   @   r   )IEventClass_get_TypeLibResponsepbstrTypeLibr   Nr   r   r   r   r    r   Q  r   r   c                   @   r   )IEventClass_put_TypeLibr=   bstrTypeLibNrz   r   r   r   r    r   X  r   r   c                   @   r   )IEventClass_put_TypeLibResponser   Nr   r   r   r   r    r   ^  r   r   c                   @   r   )IEventClass2_get_PublisherIDr>   r   Nr   r   r   r   r    r   f  r   r   c                   @   r   )$IEventClass2_get_PublisherIDResponsepbstrSubscriptionIDr   Nr   r   r   r   r    r   k  r   r   c                   @   r   )IEventClass2_put_PublisherIDr?   bstrPublisherIDNrz   r   r   r   r    r   r  r   r   c                   @   r   )$IEventClass2_put_PublisherIDResponser   Nr   r   r   r   r    r   x  r   r   c                   @   r   )3IEventClass2_get_MultiInterfacePublisherFilterCLSIDr@   r   Nr   r   r   r   r    r   ~  r   r   c                   @   r   );IEventClass2_get_MultiInterfacePublisherFilterCLSIDResponsepbstrPubFilCLSIDr   Nr   r   r   r   r    r     r   r   c                   @   r   )3IEventClass2_put_MultiInterfacePublisherFilterCLSIDrA   bstrPubFilCLSIDNrz   r   r   r   r    r     r   r   c                   @   r   );IEventClass2_put_MultiInterfacePublisherFilterCLSIDResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )&IEventClass2_get_AllowInprocActivationrB   r   Nr   r   r   r   r    r     r   r   c                   @   r   ).IEventClass2_get_AllowInprocActivationResponsepfAllowInprocActivationr   Nr&   r'   r(   r   r   rr   r   r   r   r    r     r   r   c                   @   r   )&IEventClass2_put_AllowInprocActivationrC   fAllowInprocActivationNr&   r'   r(   r{   r   rr   r   r   r   r    r     r   r   c                   @   r   ).IEventClass2_put_AllowInprocActivationResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )IEventClass2_get_FireInParallelrD   r   Nr   r   r   r   r    r     r   r   c                   @   r   )'IEventClass2_get_FireInParallelResponsepfFireInParallelr   Nr   r   r   r   r    r     r   r   c                   @   r   )IEventClass2_put_FireInParallelrE   r   Nr   r   r   r   r    r     r   r   c                   @   r   )'IEventClass2_put_FireInParallelResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )%IEventSubscription_get_SubscriptionIDr1   r   Nr   r   r   r   r    r     r   r   c                   @   r   )-IEventSubscription_get_SubscriptionIDResponser   r   Nr   r   r   r   r    r     r   r   c                   @   r   )%IEventSubscription_put_SubscriptionIDr2   bstrSubscriptionIDNrz   r   r   r   r    r     r   r   c                   @   r   )-IEventSubscription_put_SubscriptionIDResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )'IEventSubscription_get_SubscriptionNamer3   r   Nr   r   r   r   r    r     r   r   c                   @   r   )/IEventSubscription_get_SubscriptionNameResponsepbstrSubscriptionNamer   Nr   r   r   r   r    r     r   r   c                   @   r   )'IEventSubscription_put_SubscriptionNamer4   strSubscriptionIDNrz   r   r   r   r    r     r   r   c                   @   r   )/IEventSubscription_put_SubscriptionNameResponser   Nr   r   r   r   r    r     r   r   c                   @   r   )"IEventSubscription_get_PublisherIDr5   r   Nr   r   r   r   r    r     r   r   c                   @   r   )*IEventSubscription_get_PublisherIDResponsepbstrPublisherIDr   Nr   r   r   r   r    r     r   r   c                   @   r   )"IEventSubscription_put_PublisherIDr6   r   Nrz   r   r   r   r    r     r   r   c                   @   r   )*IEventSubscription_put_PublisherIDResponser   Nr   r   r   r   r    r   
  r   r   c                   @   r   )#IEventSubscription_get_EventClassIDr7   r   Nr   r   r   r   r    r     r   r   c                   @   r   )+IEventSubscription_get_EventClassIDResponser   r   Nr   r   r   r   r    r     r   r   c                   @   r   )#IEventSubscription_put_EventClassIDr8   r   Nrz   r   r   r   r    r     r   r   c                   @   r   )+IEventSubscription_put_EventClassIDResponser   Nr   r   r   r   r    r   "  r   r   c                   @   r   )!IEventSubscription_get_MethodNamer   r   Nr   r   r   r   r    r   (  r   r   c                   @   r   ))IEventSubscription_get_MethodNameResponsepbstrMethodNamer   Nr   r   r   r   r    r   -  r   r   c                   @   r   )!IEventSubscription_put_MethodNamer9   bstrMethodNameNrz   r   r   r   r    r   4  r   r   c                   @   r   ))IEventSubscription_put_MethodNameResponser   Nr   r   r   r   r    r   :  r   r   c                   @   r   )&IEventSubscription_get_SubscriberCLSIDr:   r   Nr   r   r   r   r    r   @  r   r   c                   @   r   ).IEventSubscription_get_SubscriberCLSIDResponsepbstrSubscriberCLSIDr   Nr   r   r   r   r    r   E  r   r   c                   @   r   )&IEventSubscription_put_SubscriberCLSIDr;   bstrSubscriberCLSIDNrz   r   r   r   r    r   L  r   r   c                   @   r   ).IEventSubscription_put_SubscriberCLSIDResponser   Nr   r   r   r   r    r   R  r   r   c                   @   r   )*IEventSubscription_get_SubscriberInterfacer<   r   Nr   r   r   r   r    r   X  r   r   c                   @   r   )2IEventSubscription_get_SubscriberInterfaceResponseppSubscriberInterfacer   Nr   r   r   r   r    r   ]  r   r   c                   @   r   )*IEventSubscription_put_SubscriberInterfacer=   pSubscriberInterfaceN)r&   r'   r(   r{   r
   rr   r   r   r   r    r   d  r   r   c                   @   r   )2IEventSubscription_put_SubscriberInterfaceResponser   Nr   r   r   r   r    r   j  r   r   c                   @   r   )IEventSubscription_get_PerUserr>   r   Nr   r   r   r   r    r  p  r   r  c                   @   r   )&IEventSubscription_get_PerUserResponse	pfPerUserr   Nr   r   r   r   r    r  u  r   r  c                   @   r   )IEventSubscription_put_PerUserr?   fPerUserNr   r   r   r   r    r  |  r   r  c                   @   r   )&IEventSubscription_put_PerUserResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )IEventSubscription_get_OwnerSIDr@   r   Nr   r   r   r   r    r    r   r  c                   @   r   )'IEventSubscription_get_OwnerSIDResponser   r   Nr   r   r   r   r    r    r   r  c                   @   r   )IEventSubscription_put_OwnerSIDrA   r   Nrz   r   r   r   r    r	    r   r	  c                   @   r   )'IEventSubscription_put_OwnerSIDResponser   Nr   r   r   r   r    r
    r   r
  c                   @   r   )IEventSubscription_get_EnabledrB   r   Nr   r   r   r   r    r    r   r  c                   @   r   )&IEventSubscription_get_EnabledResponse	pfEnabledr   Nr   r   r   r   r    r    r   r  c                   @   r   )IEventSubscription_put_EnabledrC   fEnabledNr   r   r   r   r    r    r   r  c                   @   r   )&IEventSubscription_put_EnabledResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )"IEventSubscription_get_DescriptionrD   r   Nr   r   r   r   r    r    r   r  c                   @   r   )*IEventSubscription_get_DescriptionResponser   r   Nr   r   r   r   r    r    r   r  c                   @   r   )"IEventSubscription_put_DescriptionrE   r   Nrz   r   r   r   r    r    r   r  c                   @   r   )*IEventSubscription_put_DescriptionResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )"IEventSubscription_get_MachineNamerF   r   Nr   r   r   r   r    r    r   r  c                   @   r   )*IEventSubscription_get_MachineNameResponsepbstrMachineNamer   Nr   r   r   r   r    r    r   r  c                   @   r   )"IEventSubscription_put_MachineNamerG   bstrMachineNameNrz   r   r   r   r    r    r   r  c                   @   r   )*IEventSubscription_put_MachineNameResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )'IEventSubscription_GetPublisherPropertyrH   bstrPropertyNameNrz   r   r   r   r    r    r   r  c                   @   r   )/IEventSubscription_GetPublisherPropertyResponsepropertyValuer   Nr&   r'   r(   r   r   rr   r   r   r   r    r    r   r  c                   @   r   )'IEventSubscription_PutPublisherProperty    r  r  Nr&   r'   r(   r{   r   r   rr   r   r   r   r    r     r|   r   c                   @   r   )/IEventSubscription_PutPublisherPropertyResponser   Nr   r   r   r   r    r#    r   r#  c                   @   r   )*IEventSubscription_RemovePublisherProperty!   r  Nrz   r   r   r   r    r$    r   r$  c                   @   r   )2IEventSubscription_RemovePublisherPropertyResponser   Nr   r   r   r   r    r&    r   r&  c                   @   r   )1IEventSubscription_GetPublisherPropertyCollection"   r   Nr   r   r   r   r    r'    r   r'  c                   @   r   )9IEventSubscription_GetPublisherPropertyCollectionResponse
collectionr   Nr   r   r   r   r    r)    r   r)  c                   @   r   )(IEventSubscription_GetSubscriberProperty#   r  Nrz   r   r   r   r    r+    r   r+  c                   @   r   )0IEventSubscription_GetSubscriberPropertyResponser  r   Nr  r   r   r   r    r-     r   r-  c                   @   r   )(IEventSubscription_PutSubscriberPropertyrI   r  r  Nr"  r   r   r   r    r.  '  r|   r.  c                   @   r   )0IEventSubscription_PutSubscriberPropertyResponser   Nr   r   r   r   r    r/  .  r   r/  c                   @   r   )+IEventSubscription_RemoveSubscriberPropertyrJ   r  Nrz   r   r   r   r    r0  4  r   r0  c                   @   r   )3IEventSubscription_RemoveSubscriberPropertyResponser   Nr   r   r   r   r    r1  :  r   r1  c                   @   r   )2IEventSubscription_GetSubscriberPropertyCollectionrK   r   Nr   r   r   r   r    r2  @  r   r2  c                   @   r   ):IEventSubscription_GetSubscriberPropertyCollectionResponser*  r   Nr   r   r   r   r    r3  E  r   r3  c                   @   r   )"IEventSubscription_get_InterfaceID'   r   Nr   r   r   r   r    r4  L  r   r4  c                   @   r   )*IEventSubscription_get_InterfaceIDResponsepbstrInterfaceIDr   Nr   r   r   r   r    r6  Q  r   r6  c                   @   r   )"IEventSubscription_put_InterfaceID(   bstrInterfaceIDNrz   r   r   r   r    r8  X  r   r8  c                   @   r   )*IEventSubscription_put_InterfaceIDResponser   Nr   r   r   r   r    r;  ^  r   r;  c                   @   r   )IEnumEventObject_Cloner-   r   Nr   r   r   r   r    r<  f  r   r<  c                   @   r   )IEnumEventObject_CloneResponser   r   Nr   r   r   r   r    r=  k  r   r=  c                   @   r   )IEnumEventObject_Nextr.   cReqElemNr&   r'   r(   r{   r   rr   r   r   r   r    r>  r  r   r>  c                   @   r}   )IEnumEventObject_NextResponser   cRetElemr   N)r&   r'   r(   rt   r   r   rr   r   r   r   r    rA  x  r   rA  c                   @   r   )IEnumEventObject_Resetr/   r   Nr   r   r   r   r    rC    r   rC  c                   @   r   )IEnumEventObject_ResetResponser   Nr   r   r   r   r    rD    r   rD  c                   @   r   )IEnumEventObject_Skipr0   	cSkipElemNr@  r   r   r   r    rE    r   rE  c                   @   r   )IEnumEventObject_SkipResponser   Nr   r   r   r   r    rG    r   rG  c                   @   r   )#IEventObjectCollection_get__NewEnumr1   r   Nr   r   r   r   r    rH    r   rH  c                   @   r   )+IEventObjectCollection_get__NewEnumResponse	ppUnkEnumr   Nr   r   r   r   r    rI    r   rI  c                   @   r   )IEventObjectCollection_get_Itemr2   objectIDNrz   r   r   r   r    rK    r   rK  c                   @   r   )'IEventObjectCollection_get_ItemResponsepItemr   Nr  r   r   r   r    rM    r   rM  c                   @   r   )"IEventObjectCollection_get_NewEnumr3   r   Nr   r   r   r   r    rO    r   rO  c                   @   r   )*IEventObjectCollection_get_NewEnumResponseppEnumr   Nr   r   r   r   r    rP    r   rP  c                   @   r   ) IEventObjectCollection_get_Countr4   r   Nr   r   r   r   r    rR    r   rR  c                   @   r   )(IEventObjectCollection_get_CountResponsepCountr   N)r&   r'   r(   r   r   rr   r   r   r   r    rS    r   rS  c                   @   r   )IEventObjectCollection_Addr5   ru   rL  N)r&   r'   r(   r{   r   r   rr   r   r   r   r    rU    r|   rU  c                   @   r   )"IEventObjectCollection_AddResponser   Nr   r   r   r   r    rV    r   rV  c                   @   r   )IEventObjectCollection_Remover6   rL  Nrz   r   r   r   r    rW    r   rW  c                   @   r   )%IEventObjectCollection_RemoveResponser   Nr   r   r   r   r    rX    r   rX  c                   @   r   )&IEventClass3_get_EventClassPartitionIDrF   r   Nr   r   r   r   r    rY    r   rY  c                   @   r   ).IEventClass3_get_EventClassPartitionIDResponsepbstrEventClassPartitionIDr   Nr   r   r   r   r    rZ    r   rZ  c                   @   r   )&IEventClass3_put_EventClassPartitionIDrG   bstrEventClassPartitionIDNrz   r   r   r   r    r\    r   r\  c                   @   r   ).IEventClass3_put_EventClassPartitionIDResponser   Nr   r   r   r   r    r^    r   r^  c                   @   r   )(IEventClass3_get_EventClassApplicationIDrH   r   Nr   r   r   r   r    r_    r   r_  c                   @   r   )0IEventClass3_get_EventClassApplicationIDResponsepbstrEventClassApplicationIDr   Nr   r   r   r   r    r`    r   r`  c                   @   r   )(IEventClass3_put_EventClassApplicationIDr!  bstrEventClassApplicationIDNrz   r   r   r   r    rb  	  r   rb  c                   @   r   )0IEventClass3_put_EventClassApplicationIDResponser   Nr   r   r   r   r    rd    r   rd  c                   @   r   )&IEventSubscription2_get_FilterCriteria)   r   Nr   r   r   r   r    re    r   re  c                   @   r   ).IEventSubscription2_get_FilterCriteriaResponsepbstrFilterCriteriar   Nr   r   r   r   r    rg    r   rg  c                   @   r   )&IEventSubscription2_put_FilterCriteria*   bstrFilterCriteriaNrz   r   r   r   r    ri  #  r   ri  c                   @   r   ).IEventSubscription2_put_FilterCriteriaResponser   Nr   r   r   r   r    rl  )  r   rl  c                   @   r   ))IEventSubscription2_get_SubscriberMoniker+   r   Nr   r   r   r   r    rm  /  r   rm  c                   @   r   )1IEventSubscription2_get_SubscriberMonikerResponsepbstrMonikerr   Nr   r   r   r   r    ro  4  r   ro  c                   @   r   ))IEventSubscription2_put_SubscriberMoniker,   bstrMonikerNrz   r   r   r   r    rq  ;  r   rq  c                   @   r   )1IEventSubscription2_put_SubscriberMonikerResponser   Nr   r   r   r   r    rt  A  r   rt  c                   @   r   )-IEventSubscription3_get_EventClassPartitionID-   r   Nr   r   r   r   r    ru  I  r   ru  c                   @   r   )5IEventSubscription3_get_EventClassPartitionIDResponser[  r   Nr   r   r   r   r    rw  N  r   rw  c                   @   r   )-IEventSubscription3_put_EventClassPartitionID.   r]  Nrz   r   r   r   r    rx  U  r   rx  c                   @   r   )5IEventSubscription3_put_EventClassPartitionIDResponser   Nr   r   r   r   r    rz  [  r   rz  c                   @   r   )/IEventSubscription3_get_EventClassApplicationID/   r   Nr   r   r   r   r    r{  a  r   r{  c                   @   r   )7IEventSubscription3_get_EventClassApplicationIDResponsera  r   Nr   r   r   r   r    r}  f  r   r}  c                   @   r   )/IEventSubscription3_put_EventClassApplicationID0   r]  Nrz   r   r   r   r    r~  m  r   r~  c                   @   r   )7IEventSubscription3_put_EventClassApplicationIDResponser   Nr   r   r   r   r    r  s  r   r  c                   @   r   )-IEventSubscription3_get_SubscriberPartitionID1   r   Nr   r   r   r   r    r  y  r   r  c                   @   r   )5IEventSubscription3_get_SubscriberPartitionIDResponsepbstrSubscriberPartitionIDr   Nr   r   r   r   r    r  ~  r   r  c                   @   r   )-IEventSubscription3_put_SubscriberPartitionID2   bstrSubscriberPartitionIDNrz   r   r   r   r    r    r   r  c                   @   r   )5IEventSubscription3_put_SubscriberPartitionIDResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )/IEventSubscription3_get_SubscriberApplicationID3   r   Nr   r   r   r   r    r    r   r  c                   @   r   )7IEventSubscription3_get_SubscriberApplicationIDResponsepbstrSubscriberApplicationIDr   Nr   r   r   r   r    r    r   r  c                   @   r   )/IEventSubscription3_put_SubscriberApplicationID4   bstrSubscriberApplicationIDNrz   r   r   r   r    r    r   r  c                   @   r   )7IEventSubscription3_put_SubscriberApplicationIDResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )IEventSystem2_GetVersionr7   r   Nr   r   r   r   r    r    r   r  c                   @   r   ) IEventSystem2_GetVersionResponse	pnVersionr   Nr   r   r   r   r    r    r   r  c                   @   r   )(IEventSystem2_VerifyTransientSubscribersr8   r   Nr   r   r   r   r    r    r   r  c                   @   r   )0IEventSystem2_VerifyTransientSubscribersResponser   Nr   r   r   r   r    r    r   r  c                   @   r   )-IEventSystemInitialize_SetCOMCatalogBehaviourr-   bRetainSubKeysNr   r   r   r   r    r    r   r  c                   @   r   )5IEventSystemInitialize_SetCOMCatalogBehaviourResponser   Nr   r   r   r   r    r    r   r  c                   @   st   e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd ZdS )IEventClassc                 C      t | | t| _d S r   )r   r   IID_IEventClass_iidr   	interfacer   r   r    r        
zIEventClass.__init__c                 C   (   t  }| j|| j|  d}|  |S Niiduuid)r   requestr  get_iPiddumpr   r  respr   r   r    get_EventClassID     zIEventClass.get_EventClassIDc                 C   0   t  }||d< | j|| j|  d}|  |S )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_EventClassID  
   zIEventClass.put_EventClassIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_EventClassName  r  zIEventClass.get_EventClassNamec                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_EventClassName  r  zIEventClass.put_EventClassNamec                 C   r  r  )r   r  r  r  r  r  r   r   r    get_OwnerSID  r  zIEventClass.get_OwnerSIDc                 C   r  Nr   r  )r   r  r  r  r  r   r   r  r  r   r   r    put_OwnerSID  r  zIEventClass.put_OwnerSIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_FiringInterfaceID  r  z!IEventClass.get_FiringInterfaceIDc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_FiringInterfaceID  r  z!IEventClass.put_FiringInterfaceIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_Description  r  zIEventClass.get_Descriptionc                 C   r  Nr   r  )r   r  r  r  r  r   r   r  r  r   r   r    put_Description  r  zIEventClass.put_Descriptionc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_TypeLib  r  zIEventClass.get_TypeLibc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_TypeLib%  r  zIEventClass.put_TypeLibN)r&   r'   r(   r   r  r  r  r  r  r  r  r  r  r  r  r  r   r   r   r    r    s    r  c                   @   T   e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dd Z
dd ZdS )IEventClass2c                 C   r  r   )r  r   IID_IEventClass2r  r  r   r   r    r   -  r  zIEventClass2.__init__c                 C   r  r  )r   r  r  r  r  r  r   r   r    get_PublisherID1  r  zIEventClass2.get_PublisherIDc                 C   r  Nr   r  )r   r  r  r  r  r   r   r  r  r   r   r    put_PublisherID7  r  zIEventClass2.put_PublisherIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    &get_MultiInterfacePublisherFilterCLSID>  r  z3IEventClass2.get_MultiInterfacePublisherFilterCLSIDc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    &put_MultiInterfacePublisherFilterCLSIDD  r  z3IEventClass2.put_MultiInterfacePublisherFilterCLSIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_AllowInprocActivationK  r  z&IEventClass2.get_AllowInprocActivationc                 C   r  )NzfAllowInprocActivation r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_AllowInprocActivationQ  r  z&IEventClass2.put_AllowInprocActivationc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_FireInParallelX  r  zIEventClass2.get_FireInParallelc                 C   r  )NzfFireInParallel r  )r   r  r  r  r  )r   fFireInParallelr  r  r   r   r    put_FireInParallel^  r  zIEventClass2.put_FireInParallelN)r&   r'   r(   r   r  r  r  r  r  r  r  r  r   r   r   r    r  ,      r  c                   @   4   e Zd Zdd Zdd Zdd Zdd Zd	d
 ZdS )IEventClass3c                 C   r  r   )r  r   IID_IEventClass3r  r  r   r   r    r   f  r  zIEventClass3.__init__c                 C   r  r  )rY  r  r  r  r  r  r   r   r    get_EventClassPartitionIDj  r  z&IEventClass3.get_EventClassPartitionIDc                 C   r  )NzbstrEventClassPartitionID r  )r\  r  r  r  r  r   r]  r  r  r   r   r    put_EventClassPartitionIDp  r  z&IEventClass3.put_EventClassPartitionIDc                 C   r  r  )r_  r  r  r  r  r  r   r   r    get_EventClassApplicationIDw  r  z(IEventClass3.get_EventClassApplicationIDc                 C   r  )NzbstrEventClassApplicationID r  )rb  r  r  r  r  r   rc  r  r  r   r   r    put_EventClassApplicationID}  r  z(IEventClass3.put_EventClassApplicationIDN)r&   r'   r(   r   r  r  r  r  r   r   r   r    r  e      r  c                   @   s$  e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd  Zd!d" Zd#d$ Zd%d& Zd'd( Zd)d* Zd+d, Zd-d. Zd/d0 Zd1d2 Zd3d4 Zd5d6 Zd7d8 Zd9d: Zd;d< Z d=d> Z!d?d@ Z"dAdB Z#dCdD Z$dEdF Z%dGS )HIEventSubscriptionc                 C   r  r   )r   r   IID_IEventSubscriptionr  r  r   r   r    r     r  zIEventSubscription.__init__c                 C   r  r  )r   r  r  r  r  r  r   r   r    get_SubscriptionID  r  z%IEventSubscription.get_SubscriptionIDc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_SubscriptionID  r  z%IEventSubscription.put_SubscriptionIDc                 C       t  }| j|| j|  d}|S r  )r   r  r  r  r  r   r   r    get_SubscriptionName     z'IEventSubscription.get_SubscriptionNamec                 C   r  )NbstrSubscriptionNamer  )r   r  r  r  r  )r   r  r  r  r   r   r    put_SubscriptionName  r  z'IEventSubscription.put_SubscriptionNamec                 C   r  r  )r   r  r  r  r  r  r   r   r    r    r  z"IEventSubscription.get_PublisherIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    r    r  z"IEventSubscription.put_PublisherIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    r    r  z#IEventSubscription.get_EventClassIDc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    r    r  z#IEventSubscription.put_EventClassIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_MethodName  r  z!IEventSubscription.get_MethodNamec                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_MethodName  r  z!IEventSubscription.put_MethodNamec                 C   r  r  )r   r  r  r  r  r  r   r   r    get_SubscriberCLSID  r  z&IEventSubscription.get_SubscriberCLSIDc                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_SubscriberCLSID  r  z&IEventSubscription.put_SubscriberCLSIDc                 C   r  r  )r   r  r  r  r  r  r   r   r    get_SubscriberInterface  r  z*IEventSubscription.get_SubscriberInterfacec                 C   r  )Nr   r  )r   r  r  r  r  )r   r   r  r  r   r   r    put_SubscriberInterface  r  z*IEventSubscription.put_SubscriberInterfacec                 C   r  r  )r  r  r  r  r  r  r   r   r    get_PerUser  r  zIEventSubscription.get_PerUserc                 C   r  )Nr  r  )r  r  r  r  r  )r   r  r  r  r   r   r    put_PerUser  r  zIEventSubscription.put_PerUserc                 C   r  r  )r  r  r  r  r  r  r   r   r    r    r  zIEventSubscription.get_OwnerSIDc                 C   r  r  )r	  r  r  r  r  r  r   r   r    r    r  zIEventSubscription.put_OwnerSIDc                 C   r  r  )r  r  r  r  r  r  r   r   r    get_Enabled  r  zIEventSubscription.get_Enabledc                 C   r  )Nr  r  )r  r  r  r  r  )r   r  r  r  r   r   r    put_Enabled  r  zIEventSubscription.put_Enabledc                 C   r  r  )r  r  r  r  r  r  r   r   r    r  
  r  z"IEventSubscription.get_Descriptionc                 C   r  r  )r  r  r  r  r  r  r   r   r    r    r  z"IEventSubscription.put_Descriptionc                 C   r  r  )r  r  r  r  r  r  r   r   r    get_MachineName  r  z"IEventSubscription.get_MachineNamec                 C   r  )Nr  r  )r  r  r  r  r  )r   r  r  r  r   r   r    put_MachineName  r  z"IEventSubscription.put_MachineNamec                 C   r  r  )r  r  r  r  r  r  r   r   r    GetPublisherProperty$  r  z'IEventSubscription.GetPublisherPropertyc                 C   8   t  }||d< ||d< | j|| j|  d}|  |S Nr  r  r  )r   r  r  r  r  r   r  r  r  r  r   r   r    PutPublisherProperty*     z'IEventSubscription.PutPublisherPropertyc                 C   r  Nr  r  )r$  r  r  r  r  r   r  r  r  r   r   r    RemovePublisherProperty2  r  z*IEventSubscription.RemovePublisherPropertyc                 C   r  r  )r'  r  r  r  r  r  r   r   r    GetPublisherPropertyCollection9  r  z1IEventSubscription.GetPublisherPropertyCollectionc                 C   r  r  )r+  r  r  r  r  r  r   r   r    GetSubscriberProperty?  r  z(IEventSubscription.GetSubscriberPropertyc                 C   r  r  )r.  r  r  r  r  r  r   r   r    PutSubscriberPropertyE  r  z(IEventSubscription.PutSubscriberPropertyc                 C   r  r  )r0  r  r  r  r  r  r   r   r    RemoveSubscriberPropertyM  r  z+IEventSubscription.RemoveSubscriberPropertyc                 C   r  r  )r2  r  r  r  r  r  r   r   r    GetSubscriberPropertyCollectionT  r  z2IEventSubscription.GetSubscriberPropertyCollectionc                 C   r  r  )r4  r  r  r  r  r  r   r   r    get_InterfaceIDZ  r  z"IEventSubscription.get_InterfaceIDc                 C   r  )Nr:  r  )r8  r  r  r  r  )r   r:  r  r  r   r   r    put_InterfaceID`  r  z"IEventSubscription.put_InterfaceIDN)&r&   r'   r(   r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r   r    r    sH    r  c                   @   r  )IEventSubscription2c                 C   r  r   )r  r   IID_IEventSubscription2r  r  r   r   r    r   h  r  zIEventSubscription2.__init__c                 C   r  r  )re  r  r  r  r  r  r   r   r    get_FilterCriterial  r  z&IEventSubscription2.get_FilterCriteriac                 C   r  )Nrk  r  )ri  r  r  r  r  )r   rk  r  r  r   r   r    put_FilterCriteriar  r  z&IEventSubscription2.put_FilterCriteriac                 C   r  r  )rm  r  r  r  r  r  r   r   r    get_SubscriberMonikery  r  z)IEventSubscription2.get_SubscriberMonikerc                 C   r  )Nrs  r  )rq  r  r  r  r  )r   rs  r  r  r   r   r    put_SubscriberMoniker  r  z)IEventSubscription2.put_SubscriberMonikerN)r&   r'   r(   r   r  r  r  r   r   r   r   r    r  g  r  r  c                   @   r  )IEventSubscription3c                 C   r  r   )r  r   IID_IEventSubscription3r  r  r   r   r    r     r  zIEventSubscription3.__init__c                 C   r  r  )ru  r  r  r  r  r  r   r   r    r    r  z-IEventSubscription3.get_EventClassPartitionIDc                 C   r  )Nr]  r  )rx  r  r  r  r  r  r   r   r    r    r  z-IEventSubscription3.put_EventClassPartitionIDc                 C   r  r  )r{  r  r  r  r  r  r   r   r    r    r  z/IEventSubscription3.get_EventClassApplicationIDc                 C   r  )Nrc  r  )r~  r  r  r  r  r  r   r   r    r    r  z/IEventSubscription3.put_EventClassApplicationIDc                 C   r  r  )r  r  r  r  r  r  r   r   r    get_SubscriberPartitionID  r  z-IEventSubscription3.get_SubscriberPartitionIDc                 C   r  )Nr  r  )r  r  r  r  r  )r   r  r  r  r   r   r    put_SubscriberPartitionID  r  z-IEventSubscription3.put_SubscriberPartitionIDc                 C   r  r  )r  r  r  r  r  r  r   r   r    get_SubscriberApplicationID  r  z/IEventSubscription3.get_SubscriberApplicationIDc                 C   r  )Nr  r  )r  r  r  r  r  )r   r  r  r  r   r   r    put_SubscriberApplicationID  r  z/IEventSubscription3.put_SubscriberApplicationIDN)r&   r'   r(   r   r  r  r  r  r  r  r  r  r   r   r   r    r    r  r  c                   @   r  )IEnumEventObjectc                 C   r  r   )r   r   IID_IEnumEventObjectr  r  r   r   r    r     r  zIEnumEventObject.__init__c                 C   J   t  }| j|| j|  d}tt|  d|d d |  | 	 dS )Nr      r   abDatatarget)
r<  r  r  r  r  r	   get_cinstancejoinget_ipidRemUnknown
get_targetr  r   r   r    Clone     .zIEnumEventObject.Clonec              
   C   sl   t  }||d< | j|| j|  d}t }|d D ]}|tt|  d	|d | 
 |  d q|S )Nr?  r  r   r
  r  r  )r>  r  r  r  listappendr  r	   r  r  r  r  )r   r?  r  r  
interfacesr  r   r   r    Next  s   2zIEnumEventObject.Nextc                 C   r  r  )rC  r  r  r  r  r   r   r    Reset  r  zIEnumEventObject.Resetc                 C   (   t  }||d< | j|| j|  d}|S )NrF  r  )rE  r  r  r  )r   rF  r  r  r   r   r    Skip     zIEnumEventObject.SkipN)r&   r'   r(   r   r  r  r  r  r   r   r   r    r    s    	r  c                   @   D   e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dS )IEventObjectCollectionc                 C   r  r   )r   r   IID_IEventObjectCollectionr  r  r   r   r    r     r  zIEventObjectCollection.__init__c                 C   r	  Nr  r
  rQ  r  r  )
rH  r  r  r  r  r	   r  r  r  _get_targetr  r   r   r    get__NewEnum  r  z#IEventObjectCollection.get__NewEnumc                 C   ,   t  }||d d< | j|| j|  d}|S NrL  asDatar  )rK  r  r  r  r   rL  r  r  r   r   r    get_Item     zIEventObjectCollection.get_Itemc                 C   r	  r  )
rO  r  r  r  r  r	   r  r  r  r  r  r   r   r    get_NewEnum  r  z"IEventObjectCollection.get_NewEnumc                 C   r  r  )rR  r  r  r  r  r   r   r    	get_Count  r  z IEventObjectCollection.get_Countc                 C   s4   t  }||d< ||d d< | j|| j|  d}|S )Nru   rL  r$  r  )rU  r  r  r  )r   ru   rL  r  r  r   r   r    Add  s
   zIEventObjectCollection.Addc                 C   r"  r#  )rW  r  r  r  r%  r   r   r    Remove  r'  zIEventObjectCollection.RemoveN)
r&   r'   r(   r   r!  r&  r(  r)  r*  r+  r   r   r   r    r    s    r  c                   @   r  )IEventSystemc                 C   r  r   )r   r   IID_IEventSystemr  r  r   r   r    r     r  zIEventSystem.__init__c                 C   st   t  }||d d< ||d d< | j|| j|  d}tt|  d|d d |  | 	 d}t
|d	tfS )
Nrx   r$  ry   r  r
  r   r  r  r!   )rw   r  r  r  r   r	   r  r  r  r  r  RemQueryInterfacer  r   rx   ry   r  r  
iInterfacer   r   r    Query
  s   .zIEventSystem.Queryc                 C   s4   t  }||d d< ||d< | j|| j|  d}|S )Nrx   r$  r   r  )r   r  r  r  )r   rx   r   r  r  r   r   r    Store  s
   zIEventSystem.Storec                 C   s0   t  }||d d< ||d< | j||  d}|S Nrx   r$  ry   r  )r   r  r  r   rx   ry   r  r  r   r   r    r+    s
   zIEventSystem.Removec                 C   s   t  }| j||  d}|S )Nr4  )r   r  r  r  r   r   r    !get_EventObjectChangeEventClassID   s   z.IEventSystem.get_EventObjectChangeEventClassIDc                 C   sp   t  }||d d< ||d d< | j||  d}tt|  d|d d |  |  d}t	|
d	tfS )
Nrx   r$  ry   r4  r
  r   r  r  r!   )r   r  r  r   r	   r  r  r  r  r  r.  r  r/  r   r   r    QueryS%  s   .zIEventSystem.QuerySc                 C   s4   t  }||d d< ||d d< | j||  d}|S r3  )r   r  r  r5  r   r   r    RemoveS-  s
   zIEventSystem.RemoveSN)
r&   r'   r(   r   r1  r2  r+  r6  r7  r8  r   r   r   r    r,    s    r,  c                   @   s$   e Zd Zdd Zdd Zdd ZdS )IEventSystem2c                 C   r  r   )r,  r   IID_IEventSystem2r  r  r   r   r    r   5  r  zIEventSystem2.__init__c                 C   r  r  r  r  r  r  r  r   r   r    
GetVersion9  r  zIEventSystem2.GetVersionc                 C   r  r  r;  r  r   r   r    VerifyTransientSubscribers>  r  z(IEventSystem2.VerifyTransientSubscribersN)r&   r'   r(   r   r<  r=  r   r   r   r    r9  4  s    r9  c                   @   s   e Zd Zdd Zdd ZdS )IEventSystemInitializec                 C   r  r   )r   r   IID_IEventSystemInitializer  r  r   r   r    r   D  r  zIEventSystemInitialize.__init__c                 C   r  )Nr  r  r;  )r   r  r  r  r   r   r    SetCOMCatalogBehaviourH  r  z-IEventSystemInitialize.SetCOMCatalogBehaviourN)r&   r'   r(   r   r@  r   r   r   r    r>  C  s    r>  N)
__future__r   r   impacket.dcerpc.v5.ndrr   r   r   impacket.dcerpc.v5.dcomrtr   r   r	   r
   r   impacket.dcerpc.v5.dcom.oautr   r   r   impacket.dcerpc.v5.dtypesr   r   r   r   impacket.dcerpc.v5.rpcrtr   impacket.dcerpc.v5.enumr   impacketr   impacket.uuidr   r   r   CLSID_EventSystemCLSID_EventSystem2CLSID_EventClassCLSID_EventSubscriptionGUID_DefaultAppPartitionr-  r:  r?  r  r  r  r  r  r  r  r  r   r+   rq   rt   rw   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r#  r$  r&  r'  r)  r+  r-  r.  r/  r0  r1  r2  r3  r4  r6  r8  r;  r<  r=  r>  rA  rC  rD  rE  rG  rH  rI  rK  rM  rO  rP  rR  rS  rU  rV  rW  rX  rY  rZ  r\  r^  r_  r`  rb  rd  re  rg  ri  rl  rm  ro  rq  rt  ru  rw  rx  rz  r{  r}  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  OPNUMSr  r  r  r  r  r  r  r  r,  r9  r>  r   r   r   r    <module>   s  +	S9 d:'/