IChangeUnitException::GetItemId

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


HRESULT GetItemId(
  BYTE * pbItemId,
  DWORD * pcbIdSize);

pbItemId

[in, out, unique, size_is(*pcbIdSize)] Returns the item ID that contains the change unit that is associated with the exception.

pcbIdSize

[in, out] Specifies the number of bytes in pbItemId. Returns either the number of bytes required to retrieve the ID when pbItemId is too small, or the number of bytes written.

  • S_OK

  • E_INVALIDARG

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

Show: