Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
817 B

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft WMIOLE DB Provider
  4. //
  5. // (C) Copyright 1999 Microsoft Corporation. All Rights Reserved.
  6. //
  7. // IROWChng.CPP IRowChange interface implementation
  8. //
  9. ///////////////////////////////////////////////////////////////////////////
  10. #include "headers.h"
  11. STDMETHODIMP CImpIRowChange::SetColumns(DBORDINAL cColumns,DBCOLUMNACCESS rgColumns[ ])
  12. {
  13. HRESULT hr = E_FAIL;
  14. CSetStructuredExceptionHandler seh;
  15. TRY_BLOCK;
  16. // Seriliaze the object
  17. CAutoBlock cab(ROWSET->GetCriticalSection());
  18. // Clear Error information
  19. g_pCError->ClearErrorInfo();
  20. hr = m_pObj->UpdateRow(cColumns,rgColumns);
  21. hr = hr == S_OK ? hr :g_pCError->PostHResult(hr,&IID_IRowChange);
  22. CATCH_BLOCK_HRESULT(hr,L"IRowChange::SetColumns");
  23. return hr;
  24. }