Skip to content

Instantly share code, notes, and snippets.

@DJm00n
Created June 19, 2023 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DJm00n/dca42010ea24b4d03ebcad6b38999a47 to your computer and use it in GitHub Desktop.
Save DJm00n/dca42010ea24b4d03ebcad6b38999a47 to your computer and use it in GitHub Desktop.
Undocumented ANI cursor Win32 API
// user32.dll
// provide either hcur or lpName and iFrame.
// outputs pjifRate (frame time in jiffles - 1/60 sec) and pccur (count of steps in animation sequence)
// returns cursor frame for iFrame
HCURSOR GetCursorFrameInfo(HCURSOR hcur, LPWSTR lpName, int iFrame, OUT LPDWORD pjifRate, OUT LPINT pccur);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment