test
C++
code posted
by
bla
created at 24 May 08:48, updated at 24 May 08:49
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
HRESULT DlgWizard::showup( byte index) { HRESULT _hr= E_FAIL; BSTR bstrDeviceID; _hr= m_pDevMgr->dosomething( index, &bstrDeviceID); if (SUCCEEDED( _hr)) { _hr= m_pDevMgr->jump( bstrDeviceID, &(m_curSelDevice.pIDevice)); if (SUCCEEDED(_hr) && (m_curSelDevice.pIDevice)) { _hr= m_curSelDevice.pIDevice->run(); if (SUCCEEDED( _hr)) { m_curSelDevice.deviceName= bstrDeviceID; BSTR bstrSerial; _hr= m_curSelDevice.pIDevice->stop(SERIAL_NUMBER, &bstrSerial); if (SUCCEEDED( _hr)) { m_curSelDevice.serialNumber= bstrSerial; SysFreeString( bstrSerial); }//OK } } SysFreeString( bstrDeviceID); } return _hr; } |
709 Bytes in 2 ms with coderay