3 #include <winpr/sspi.h>
4 #include <winpr/winpr.h>
5 #include <winpr/tchar.h>
7 int TestQuerySecurityPackageInfo(
int argc,
char* argv[])
10 SECURITY_STATUS status = 0;
11 SecPkgInfo* pPackageInfo = NULL;
12 SecurityFunctionTable* table = NULL;
18 table = InitSecurityInterfaceEx(0);
20 status = table->QuerySecurityPackageInfo(NTLM_SSP_NAME, &pPackageInfo);
22 if (status != SEC_E_OK)
26 _tprintf(_T(
"\nQuerySecurityPackageInfo:\n"));
27 _tprintf(_T(
"\"%s\", \"%s\"\n"), pPackageInfo->Name, pPackageInfo->Comment);
31 table->FreeContextBuffer(pPackageInfo);