set VARAINT is not right?

mc 5,551 Reputation points
2025-07-04T12:40:55.1566667+00:00

I am using ms-media-foundation and want to set CODECAPI_AVLowLatencyMode

VARIANT var{};

var.boolVal = VARIANT_TRUE;

var.vt = VT_BOOL;

error:WinRT originate error - 0x80070057 : 'Invalid argument (VT_UI4 != pValue->vt)'

why?

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,666 Reputation points
    2025-07-04T13:23:28.0566667+00:00
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.