Rich,
What you have included here is not enough for me to know why you are getting the error. You have attached the relevant lines from rpcndr.h, which is fine, but this compile error suggests that wchar_t is being defined, differently, by another header file included earlier. Do you know what that header file is?
What is the exact set of header files that you are including in this source file?
Luis