Re: check camera availability
- From: Tomasz Maciąg <niezla@xxxxxxxxx>
- Date: Thu, 13 Dec 2007 11:22:41 +0100
Dnia 13-12-2007 o 05:45:05 kudva <prabhakarkudva@xxxxxxxxx> napisał:
Hi
i need to figure out if a windows mobile 2005 device has a camera or
not? is there a direct api to check for camera availability? Although
i know u can always find it out from the registry but an api would
always be better.
Try this:
GUID guidCamera = {0xCB998A05, 0x122C, 0x4166, 0x84, 0x6A, 0x93, 0x3E, 0x4D, 0x7E, 0x3C, 0x86};
DEVMGR_DEVICE_INFORMATION devInfo;
devInfo.dwSize = sizeof(devInfo);
HANDLE deviceHandle = FindFirstDevice(DeviceSearchByGuid, &guidCamera, &devInfo);
if (deviceHandle == INVALID_HANDLE_VALUE)
{
// no success
}
If no success, you can also use FindNextDevice, to make sure, that device has no built-in camera.
--
T.M.
.
- References:
- check camera availability
- From: kudva
- check camera availability
- Prev by Date: Re: Open a Local File
- Next by Date: Re: check camera availability
- Previous by thread: check camera availability
- Next by thread: Re: check camera availability
- Index(es):
Relevant Pages
|