Partager via


GetNewPasswordEx (Compact 2013)

3/26/2014

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

See Also

Reference

Network User Interface Functions
CloseUsernamePasswordDialog