Site icon EfmSoft

What does HRESULT 0x800401D2 (CLIPBRD_E_CANT_SET) mean?

 
Previous Next
CLIPBRD_E_CANT_EMPTY CLIPBRD_E_BAD_DATA

CLIPBRD_E_CANT_SET

CLIPBRD_E_CANT_SET (0x800401D2) means that the clipboard operation failed while publishing data. The key evidence is the exact clipboard format, handle, and ownership state used by the failing SetClipboardData path.

What to inspect

  • The clipboard format ID and the handle type/size passed for that format.
  • Whether OpenClipboard and EmptyClipboard succeeded on the same transaction.
  • Whether the application opened the clipboard with a null owner and then emptied it; Windows documents that this leaves the owner null and causes SetClipboardData to fail.
  • Whether the application freed or reused a handle after Windows accepted ownership of it.

Recovery

Rebuild the format-specific data with the documented ownership rules, reopen the clipboard, and republish it. If some formats were already published before the failure, record that partial state rather than assuming the transaction changed nothing.

Technical references


Looking for a different code? Search another status or error code.

Exit mobile version