prefer to use standard c types and not windows types if you can help it. I think in this case using an int would suffice?