+
    Ri                        ^ RI Ht ^ RIt]P                  R8X  g   Q h^ RIHt ^RIHt ]'       g   ^ RIHt ^ RI	H
t
HtHt ^ RIHt R	R
.tRtRt]3R R lltR R ltR# )    )annotationsNwin32)pointer)SPHINX_AUTODOC_RUNNING)windll)BOOLDWORDHANDLE)SECURITY_ATTRIBUTESwait_for_handlescreate_win32_eventi  c               $    V ^8  d   QhRRRRRR/# )   handleszlist[HANDLE]timeoutintreturnzHANDLE | None )formats   "]/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/prompt_toolkit/eventloop/win32.py__annotate__r      s!      l S      c                    \         \        V 4      ,          pV! V !  p\        P                  P	                  \        V4      V\        R4      \        V4      4      pV\        8X  d   R# W,          # )a`  
Waits for multiple handles. (Similar to 'select') Returns the handle which is ready.
Returns `None` on timeout.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms687025(v=vs.85).aspx

Note that handles should be a list of `HANDLE` objects, not integers. See
this comment in the patch by @quark-zju for the reason why:

    ''' Make sure HANDLE on Windows has a correct size

    Previously, the type of various HANDLEs are native Python integer
    types. The ctypes library will treat them as 4-byte integer when used
    in function arguments. On 64-bit Windows, HANDLE is 8-byte and usually
    a small integer. Depending on whether the extra 4 bytes are zero-ed out
    or not, things can happen to work, or break. '''

This function returns either `None` or one of the given `HANDLE` objects.
(The return value can be tested with the `is` operator.)
FN)r
   lenr   kernel32WaitForMultipleObjectsr   r	   WAIT_TIMEOUT)r   r   arrtypehandle_arrayrets   &&   r   r   r      s[    ( s7|#GG$L55L<eeGnC l|r   c                   V ^8  d   QhRR/# )r   r   r
   r   )r   s   "r   r   r   <   s      F r   c            	         \        \        P                  P                  \	        \        4       4      \        R4      \        R4      R4      4      # )zp
Creates a Win32 unnamed Event .
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682396(v=vs.85).aspx
TFN)r
   r   r   CreateEventAr   r   r   r   r   r   r   r   <   s@    
 $$')*JK		
 r   )
__future__r   sysplatformctypesr   utilsr   r   ctypes.wintypesr   r	   r
   prompt_toolkit.win32_typesr   __all__r   INFINITEr   r   r   r   r   <module>r.      s\    " 

||w   *  / / :3
4  <D Br   