CUT_RAS::GetEntryPassword
int GetEntryPassword(LPCSTR szEntryName,LPSTR szPassword, long nMaxLen)
Parameters
szEntryName |
A phonebook entry. |
szPassword |
Pointer to a string buffer that will store the password. |
nMaxLen |
Length of the szPassword buffer. |
Return Value
UTE_SUCCESS |
Operation completed successfully. |
UTE_ERROR |
The function failed (see GetLastRASError for more details). |
UTE_BUFFER_TOO_SHORT |
The password string is larger than the specified nMaxLen. |
UTE_NULL_PARAM |
The passed buffer is NULL. |
UTE_RAS_LOAD_ERROR |
Unable to load the RAS DLLs. |
Remarks
Returns the main phonebook's password for the specified phonebook entry. This function is more efficient than the GetEntryProperties function when it comes to retrieving a password.
See also: GetEntryProperties | GetEntryUserName | GetEntryPhoneNumber