I\'ve been struggling with this for a day now and I can\'t figure out what is wrong with my code. I\'m coding in Rust but this is more of a Windows\' api related problem.