HBITMAP hbitmap; BITMAP bitmap; BITMAPINFO bmi; HDC hdcScreen = ::GetDC(NULL); HDC hdcMem = CreateCompatibleDC(hdcScreen); CURSORINFO cursorInfo = { 0 }; cursorInfo.cbSize = sizeof(cursorInfo); GetCursorInfo(&cursorInfo); ICONINFO ii = {0}; GetIconInfo(cursorInfo.hCursor, &ii); CBitmap* pBitmap = CBitmap::FromHandle(ii.hbmMask); BITMAP Bitmap; pBitmap->GetBitmap(&Bitmap); int len = Bitmap.bmHeig..