判断Windows密码是否为空 先以账户,任意密码输入LogonUser函数,如果Windows密码为空,那么会返回错误号:1327
HANDLE token;
if ( !LogonUser (strUserName.GetBuffer(0) , _T(".") , strPWD.GetBuffer(0),
LOGON32_LOGON_INTERACTIVE , LOGON32_PROVIDER_DEFAULT , &token ) && GetLastError() == 1327)
{
AfxMessageBox("Windows密码为空!!");
}