SVC GET BUDDY DISPNAME

From LIVECHAT Developer Zone Wiki

Jump to: navigation, search
SVC_GET_BUDDY_DISPNAME
Get contact's display name.


Parameters
wParam
LPCTSTR contact_id
lParam
CString* dispname


Return values

  • Returns API_ERROR if operation failed otherwise API_SUCCESS


Sample code

        CString contact_id = _T("contact_id");
	CString dispname;
	
	if (call(SVC_GET_BUDDY_PROP, 
		 (WPARAM)(LPCTSTR)&contact_id, 
		 (LPARAM) &dispname) == API_SUCCESS)

	{
		::MessageBox(NULL, _T("Contact's display name"), dispname, MB_OK);
	}
Personal tools