In the MSDN page describing ICImageCompress I see this mentioned:
To obtain the format information from the BITMAPINFOHEADER structure, use the GlobalLock function to lock the data. Use the GlobalFree function to free the DIB when you are finished.
Nowhere does it mention the use of GlobalUnlock. Is it required to use GlobalUnlock before using GlobalFree? Or is this not required?
Quote:
To obtain the format information from the BITMAPINFOHEADER structure, use the GlobalLock function to lock the data. Use the GlobalFree function to free the DIB when you are finished.