ITextHost::TxGetPasswordChar method

Requests the text host's password character.

Syntax


HRESULT TxGetPasswordChar(
  [out] TCHAR *pch
);

Parameters

pch [out]

Type: TCHAR*

The password character.

Return value

Type: HRESULT

Return S_OK if the password character is enabled.

Return S_FALSE if the password character is not enabled. For more information on COM error codes, see Error Handling in COM.

Remarks

The password character is only shown if the TXTBIT_USEPASSWORD bit is enabled in the text services object. If the password character changes, re-enable the TXTBIT_USEPASSWORD bit through OnTxPropertyBitsChange.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Reference
OnTxPropertyBitsChange
Conceptual
Windowless Rich Edit Controls

 

 

Show: