The FORMATETC structure of print screen clipboard

On windows, when you press the print-screen key, the screenshot is saved into system clipboard in 3 formats:CF_BITMAP, CF_DIB, and CF_DIBV5. The FORMATETC structure for these formats are:

{2,1,-1,0,16}, {8,1,-1,0,5}, and {17,1,-1,0,5}

typedef struct tagFORMATETC {
CLIPFORMAT     cfFormat;
DVTARGETDEVICE *ptd;
DWORD          dwAspect;
LONG           lindex;
DWORD          tymed;
} FORMATETC, *LPFORMATETC;

The ptd, dwAspect, lindex fields are the same for the 3 formats:0,1, -1. The tymed is 16 for CF_BITMAP and 5(undocumented) for CF_DIB, and CF_DIBV5.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:

Leave a Reply