Share via


GetUsernamePasswordEx (Compact 2013)

3/26/2014

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

See Also

Reference

Network User Interface Functions
GetUsernamePassword
CloseUsernamePasswordDialog