In Windows Vista, the CopyImage function may fail when you use this function to copy a large bitmap.
Free Update Notification: