This function is used to set information about a network provider's password. Currently, the only status information that can be set is whether or not the password should remain in sync with the logon password.
DWORD PwdSetPasswordStatus( LPCTSTR lpProvider, DWORD dwIndex, DWORD dwStatus, );
lpProvider
Specifies the network provider who owns the password.
dwIndex
Type of information to retrieve. Can be one of the following:
PS_SYNCMASTERPWD
dwStatus
Status bits to set. Can be one of the following:
PS_SYNCMASTERPWD_ON, PS_SYNCMASTERPWD_OFF