The [string] attribute is only valid on byte, char and wchar_t types, so replace "unsigned short" by "WCHAR".