You must implement the annonced
ThumbnailCallback function in your code.
Image::GetThumbnailImageAbort^ callback = gcnew Image::GetThumbnailImageAbort(ThumbnailCallback);
Look
here for the details. The functions must return a bool. False means not to abort.