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,
);
PS_SYNCMASTERPWD
PS_SYNCMASTERPWD_ON, PS_SYNCMASTERPWD_OFF