How to use VideoDeviceController.GetDeviceProperty(string propertyId)
-
2012年6月14日 14:08
Hello:
I have implement Camera device app with C# and I want to implement extended camera properties.
I want to call VideoDeviceController.GetDeviceProperty(string propertyId);
However, I don't know how to find the definition below(C#).
PROPSETID_VIDCAP_CAMERACONTROL_FLASH
PROPSETID_VIDCAP_CAMERACONTROL_VIDEO_STABILIZATION
PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST
I have tried two ways.
1.
===============================================================================================
var CameraCLSID = new Guid("9D12D198-F86C-4fed-B023-5D87653DA793"); //PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GUID find in (ksmedia.h)
object ksGetStruct = videoDevController.GetDeviceProperty(CameraCLSID.ToString());
===============================================================================================
2.
===============================================================================================
object ksGetStruct = videoDevController.GetDeviceProperty("PROPSETID_VIDCAP_CAMERACONTROL_REGION_OF_INTEREST");
===============================================================================================
Both ways got exception
Additional information: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
Any solution?
Thanks,
Hardi
すべての返信
-
2012年6月14日 16:49モデレータ
Hardi,
I will look into this for you.
Best Wishes - Eric
- 編集済み Eric Hanson-MSFTMicrosoft Employee, Moderator 2012年6月14日 16:49
-
2012年8月10日 22:06
The exception means the GUID string is not properly formatted. The GUID string needs to be bracketed, e.g. videoDevController.GetDeviceProperty("{aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}");
Thanks,
Yuenfai
-
2012年8月15日 14:59
Yuenfai,
With this method I receive other exception: "The data area passed to a system call is too small.(Exception from HRESULT: 0x8007007A)".
Do you know any solutions?
Thanks,
Nikolay
-
2012年8月17日 21:22
Hi,
I am also having this problem.
I get the same "The data area passed to a system call is too small." Is there any way to retrieve device information from VideoDeviceController? It would be nice to know which device it is (in case of multiple attached devices).
Thank you,
Gary
-
2012年8月21日 17:14Since there appears to be no other way to get device information, I'm just going to assume this is a bug unless someone else can explain otherwise.
-
2012年9月13日 6:06I have the same problem in JavaScript
-
2012年10月3日 20:41
Same here, and still no update on this thread nor the current MSDN online help.
If MS wants us developers to write great apps for their new WinRT, why do we not get more info right from the word GO?
Before you didn't have to plough through tons of forum threads or header files or what not. When you wanted to know how to use a certain method. You just pressed F1 and there you got it or at least some hint how to find out. But not now! The best you get is an "I will look into this for you" that has not provided any help for almost four months now!
-
2012年12月9日 22:55
I'm having the same problems trying to enable Flash, have anyone figured out a way yet? :)
Thanks!

