I found what I was doing wrong. Yes, I was sure your code was perfectly fine and that I had done something wrong, but I didn't imagine my mistake was so, so stupid. I was using "#ifdef __FB_WINDOWS__" instead of "#ifdef __FB_WIN32__", so of course, nothing would happen.
In the case of my program, I'm only copying text and it works well now. Thanks!