Changeset 15


Ignore:
Timestamp:
Sep 13, 2011, 12:19:11 AM (10 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/SetLifeCamStudioResolutionSample
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/SetLifeCamStudioResolutionSample/SetLifeCamStudioResolutionSample.cpp

    r14 r15  
    9393                ATLENSURE_SUCCEEDED(pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnumMoniker, 0));
    9494                CComPtr<IMoniker> pMoniker;
    95                 for(LONG nSkipCount = 2; ; nSkipCount--) // Adjust to skip certain number of devices until you reach the one you need
     95                for(LONG nSkipCount = 0; ; nSkipCount--) // Adjust to skip certain number of devices until you reach the one you need
    9696                {
    9797                        ATLENSURE_THROW(pEnumMoniker->Next(1, &pMoniker, NULL) == S_OK, E_FAIL);
Note: See TracChangeset for help on using the changeset viewer.