Freigeben über


GetUsernamePasswordEx (Windows CE 5.0)

Send Feedback

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.

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 Values

TRUE indicates success. FALSE indicates failure.

Requirements

OS Versions: Windows CE 5.0.
Header: Netui.h.
Link Library: Netui.lib.

See Also

Network User Interface Functions | GetUsernamePassword | CloseUsernamePasswordDialog

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.