Search code examples
windows-runtimec++-winrt

Is it possible to declare a function which takes Win32 event HANDLE as a parameter in idl 3.0 file?


I am trying to author a set of APIs for my customer.

They need a function which takes Win32 event HANDLE as a parameter for them to wait event via WaitForSingleObject().

However, I cannot find the correct data types for this HANDLE type.

Is it possible to use Win32 event HANDLE in idl 3.0 file?


Solution

  • According to Raymond's comment, the MIDL 3.0 doesn't support HANDLE type and he recommended to use Windows Runtime event instead.

    I developed Windows Runtime event following Microsoft's instruction.