Thanks Andy,
Your project is building successfully.
We have created a new project in visual studio and used your GetStdIoW source code, however it is not building successfully.
We have tried it with both Empty project and Pre-compiler headers option in new project creation.
Please find source in attachments for both.link text
Regards
Bipin