IOleComponent2::GetWaitHandlesAndTimeout Method (array<IntPtr>^, UInt32, UInt32, IntPtr)
When overridden in a derived class, returns the time-out and the list of handles on which this component is waiting.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int GetWaitHandlesAndTimeout( array<IntPtr>^% aHandles, [OutAttribute] unsigned int% pnHandles, [OutAttribute] unsigned int% pdwTimeout, IntPtr pvLoopData )
Parameters
- aHandles
-
Type:
array<System::IntPtr>^
When this method returns, contains an array of object handles for which this component is waiting, passed by reference. Must return at least one and no more than 64 handles. Must not return duplicate handles.
- pnHandles
-
Type:
System::UInt32
When this method returns, contains the number of handles in aHandles.
- pdwTimeout
-
Type:
System::UInt32
When this method returns, contains the time-out in milliseconds, or 0xFFFFFFFF for an infinite time-out.
- pvLoopData
-
Type:
System::IntPtr
The object that was passed in pvLoopData when FPushMessageLoop was called for this component.
Return Value
Type: System::Int32An error code (HRESULT) value that indicates the status of the operation.
When one of the handles is signaled, the IOleComponentManager calls OnHandleSignaled. If the time-out expires before a handle is signaled, IOleComponentManager calls OnTimeout.
This method is called on the same thread as the FPushMessageLoop method was called on when this component was added to the message loop.