Sure, but for consistency since wchar is being passed in, seems like the appropriate function should be called.  If we were letting the type be figured out at compile time, shouldn't we use TCHARs?