Share via


GetNewPasswordEx (Windows Embedded CE 6.0)

1/6/2010

This function is similar to GetNewPassword, but also returns a handle to a window that can be used to dismiss the dialog box programmatically through CloseUsernamePasswordDialog.

Syntax

BOOL WINAPI GetNewPasswordEx (
   HWND hParent, 
   OUT PNETUI_NEWPWD pNewPwd, 
   OUT OPTIONAL HWND* phDlg
);

Parameters

  • hParent
    [in] Handle to the parent window that requires the password.
  • pNewPwd
    [out] A pointer to the new password.
  • phDlg
    [out] If not NULL, while this function is prompting the user for a new password, this pointer is set to the handle of the new password dialog box

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

After this function is called and before it returns, the attempt to get a new password can be aborted by passing the value in phDlg to CloseUsernamePasswordDialog.

Requirements

Header netui.h
Library Netui.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

CloseUsernamePasswordDialog

Other Resources

Network User Interface Functions