How to get current mouse cursor icon VS c++

Hi, I use this code to get mouse position on screen and it's working. I also get cursor width and height. What I need is cursor icon in the moment I call function GetIconInfo. In ii iI have ii.hbmColor and ii.hbmMask. Value of hbmColor is 0x0, hbmMask is 0x2f0517f1. Can I extract mouse cursor from that two pointer and how?

1
2
3
4
5
6
7
8
9
int width, height;
    BITMAP bitmap;
    ICONINFO ii;

    GetIconInfo((HICON)GetCursor(), &ii);
    GetObject(ii.hbmMask, sizeof(BITMAP), &bitmap);

    width = bitmap.bmWidth;
    height = bitmap.bmHeight;
Topic archived. No new replies allowed.