SVC GET PANEL URL

From LIVECHAT Developer Zone Wiki

Jump to: navigation, search
SVC_GET_PANEL_URL
Get web panel's current url address.


Parameters
wParam
NULL
lParam
UrlPanelInfo* info


Return values

  • Returns API_ERROR if operation failed otherwise API_SUCCESS.


Remarks
This service may be used to check whether the web panel exists.


Sample code

	UrlPanelInfo info = {0};
	info.cbSize = sizeof(UrlPanelInfo);
	info.plugin_name = name();
	info.panel_id = 1000;	

	call(SVC_GET_PANEL_URL, 0, (LPARAM) &item);

	if (info.exists)
	{
		::MessageBox(NULL, info.url, _T("Messagebox"), MB_OK);
	}
	else
	{
		::MessageBox(NULL, _T("Web panel does not exists."), _T("Messagebox"), MB_OK);
	}
Personal tools