- Timestamp:
- Sep 13, 2011, 12:19:11 AM (12 years ago)
- Location:
- trunk/Utilities/SetLifeCamStudioResolutionSample
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/SetLifeCamStudioResolutionSample/SetLifeCamStudioResolutionSample.cpp
r14 r15 93 93 ATLENSURE_SUCCEEDED(pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnumMoniker, 0)); 94 94 CComPtr<IMoniker> pMoniker; 95 for(LONG nSkipCount = 2; ; nSkipCount--) // Adjust to skip certain number of devices until you reach the one you need95 for(LONG nSkipCount = 0; ; nSkipCount--) // Adjust to skip certain number of devices until you reach the one you need 96 96 { 97 97 ATLENSURE_THROW(pEnumMoniker->Next(1, &pMoniker, NULL) == S_OK, E_FAIL);
Note: See TracChangeset
for help on using the changeset viewer.