summaryrefslogtreecommitdiffstats
path: root/Whisper/API/MfStructs.h
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-18 19:55:25 +0100
committerKonstantin <const@const.me>2023-01-18 19:55:25 +0100
commitad097a744759c6a78e1b33ea9d2b4b2af01c529d (patch)
treeda738750a40790a2f2553b3ebce29b08027ea8df /Whisper/API/MfStructs.h
parent72b03a0d899e0de6a39be278b0efc31570cd7d59 (diff)
Consistent cancellation API across the library: S_OK = continue, S_FALSE = stop
Diffstat (limited to 'Whisper/API/MfStructs.h')
-rw-r--r--Whisper/API/MfStructs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Whisper/API/MfStructs.h b/Whisper/API/MfStructs.h
index cd27659..39255de 100644
--- a/Whisper/API/MfStructs.h
+++ b/Whisper/API/MfStructs.h
@@ -40,8 +40,11 @@ namespace Whisper
Stalled = 0x80,
};
+ // Return S_OK to continue, or S_FALSE to stop the capture session
using pfnShouldCancel = HRESULT( __stdcall* )( void* pv ) noexcept;
+
using pfnCaptureStatus = HRESULT( __stdcall* )( void* pv, eCaptureStatus status ) noexcept;
+
struct sCaptureCallbacks
{
pfnShouldCancel shouldCancel;