I wrote the following code snippet in VS2010:
#pragma once
#include "stdafx.h"
#ifndef SECURITY_WIN32
#define SECURITY_WIN32
#endif
#include "windows.h"
#include "sspi.h"
int main( void )
{
    ULONG cPackages = 0;
    PSecPkgInfo pInfo = NULL;
    SECURITY_STATUS stat = EnumerateSecurityPackages(&cPackages, &pInfo);
    if (stat == SEC_E_OK) 
    { 
        for (ULONG i = 0; i < cPackages; i++) 
        { 
            wprintf(L"%s\t%s\n",pInfo[i].Name, pInfo[i].Comment); 
        } 
        FreeContextBuffer(pInfo); 
    } 
    return 0; 
}
but, at the compile time I got the following errors:
error LNK2019: unresolved external symbol _imp_EnumerateSecurityPackagesW@8 referenced in function _main
and
error LNK2019: unresolved external symbol _FreeContextBuffer@4 referenced in function _main
can anyone please help me?
 
     
     
    