winapi: LsaCallAuthenticationPackage returns STATUS_UNSUCCESSFUL

273 views Asked by At

I'm new with Lsa and came accross to this problem. Here is my code:

LsaConnectUntrusted(&Lsa)
LsaLookupAuthenticationPackage(Lsa, &PacketName, &PackId)
printf("Lsa return -> %x.\n", LsaCallAuthenticationPackage(Lsa, PackId, buf, Size, &resp, &respSize, &st));

The output I get is 0xc0000001 which means STATUS_UNSUCCESSFUL. On windows website It doesn't provide information what specifically this error means. I did a little research and it turns out it's RPC connection failure. I tried this but it didn't help. Hope you can help me. Thank you.

0

There are 0 answers