If I add the code in the link you posted to my dll (and the necessary cursor files as resources) can I make the cursor change its color depending on the menu color?
Yes, you can do that. That's how the hidden code in CryGame works after all. The only difference is that cursors are always stored in the main executable. You can actually just use them, so no cursors need to be added.