Delen via


IChangeUnitException::GetChangeUnitId

Gets the change unit ID for the change unit that is associated with the exception.

HRESULT GetChangeUnitId(
  BYTE * pbChangeUnitId,
  DWORD * pcbIdSize);

Parameters

  • pbChangeUnitId
    [in, out, unique, size_is(*pcbIdSize)] Returns the change unit ID that is associated with the exception.
  • pcbIdSize
    [in, out] Specifies the number of bytes in pbChangeUnitId. Returns either the number of bytes required to retrieve the ID when pbChangeUnitId is too small, or the number of bytes written.

Return Value

  • S_OK

  • E_INVALIDARG

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbChangeUnitId is too small. In this case, the required number of bytes is returned in pcbIdSize.

See Also

Reference

IChangeUnitException Interface