WNetVerifyPassword

This function is used to verify that a given password is the Windows password. It is often used in conjunction with PwdGetPasswordStatus, which is described in Windows 95 Password Providers.


DWORD WNetVerifyPassword(
    LPCTSTR lpszPassword,
    BOOL FAR * pfMatch
    );

lpszPassword

Points to a password string that the caller wants verified as the Windows password.

pfMatch

Points to a flag that reports the results of the password verification. If the WNetVerifyPassword function returns WN_SUCCESS, this flag contains the results of the password verification. If the flag is set TRUE, then the password specified in lpszPassword is the Windows password. If the flag is set to FALSE, the specified password was not the Windows password.

WN_BAD_POINTER

lpszPassword or pfMatch is invalid.