Share via


GetUsernamePasswordEx (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

BOOL GetUsernamePasswordEx (
  HWND hParent, 
  PNETUI_USERPWD pUserPwd, 
  OPTIONAL HWND* phDlg
);

Parameters

  • hParent
    [in] Handle to the parent window requiring a user password.
  • pUserPwd
    [out] A pointer to the user 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.

Remarks

This function is exported from netui.def.

You can abort the attempt to get the new password after calling this function — but before it returns — by passing the value in phDlg to CloseUsernamePasswordDialog.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

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

See Also

Reference

GetUsernamePassword
CloseUsernamePasswordDialog

Other Resources

Network User Interface Functions