TranslateName() function doesn’t work on win10

my working computer is win10, and I am using vs2015, now I’ve met a weird issue. I can get the NameSamCompatible name by the following source code: the Username would be “PROD\wwu2”, but I would get failed if I run: then I get the error code by GetLastError(); it is 1317(user doesn’t exist). but the … Read more