it seems windows reserves a few kilobytes for system resource handles.
mouse cursors are consirdered system resources. this was why handle
address never changed after app or system restart.
still to be on the safe side i found this method better,
// there are OCR_ enumerations for every system cursor. list is in winuser.h
HCURSOR systemArrow = (HCURSOR)LoadImage(NULL,
MAKEINTRESOURCE(OCR_NORMAL), IMAGE_CURSOR, 0, 0, LR_SHARED);
void onCursorUpdated(Window* win, const Berkelium::Cursor& newCursor)
{
if(newCursor.GetCursor() == systemArrow )
std::cout << "cursor is arrow\n";
}
yeah, this id the way i did it
i dont like winapi :) , didnt code in it since 2005.