Issue Activating Virtual Camera via Media Foundation Win32 API (HRESULT 0x80070057 - Invalid Parameter) after Windows Update Hello, I am trying to use a virtual camera with Windows Media Foundation API on Windows 11. The camera is correctly detected by

Zakaria ZOUHAIRI 0 Points de réputation
2025-02-19T14:19:17.43+00:00

Hello,

I am trying to use a virtual camera with Windows Media Foundation API on Windows 11. The camera is correctly detected by MFEnumDeviceSources, but when I try to call ActivateObject(IID_IMFMediaSource, …) on virtual camera, I get the following error:

Failed to activate device Virtual Webcam, error: -2147024809 (0x80070057) - Invalid parameter.

The camera was working fine until the update two months ago.

Problem Details:

  • Virtual camera is correctly detected by MFEnumDeviceSources and returns a valid symbolic link.

ActivateObject works on other cameras (such as my Logitech physical USB webcam).

Virtual camera works fine in other applications (e.g., Teams, Zoom).

The same configuration worked on an earlier version of Windows (before a recent update).

Questions:

Why can Virtual Camera not be activated with ActivateObject() while it works in other applications?

How can I debug this activation issue more deeply? Is there a way to check which validations are failing in ActivateObject()?

Could a Windows Media Foundation update be causing this issue?

How did a Windows update cause virtual cameras to no longer be detected using the Win32 API?

Thank you in advance for any help or suggestions!

Windows 11
Windows 11
Système d’exploitation Microsoft conçu pour la productivité, la créativité et la facilité d’utilisation.
18 questions
Microsoft Q&A
Microsoft Q&A
Utilisez cette étiquette pour partager des suggestions, des demandes de fonctionnalités et des bogues avec l'équipe Microsoft Q&A. L'équipe Microsoft Q&A évaluera régulièrement vos commentaires et fournira des mises à jour en cours de route.
213 questions
0 commentaires Aucun commentaire
{count} votes

Votre réponse

Les réponses peuvent être marquées comme réponses acceptées par l’auteur de la question, ce qui aide les utilisateurs à savoir que la réponse a résolu le problème de l’auteur.