Example #1
0
static void xf_rail_CreateWindow(rdpRail* rail, rdpWindow* window)
{
	xfContext* xfc;
	xfWindow* xfw;
	xfc = (xfContext*) rail->extra;
	xf_rail_enable_remoteapp_mode(xfc);
	xfw = xf_CreateWindow(xfc, window,
						  window->windowOffsetX, window->windowOffsetY,
						  window->windowWidth, window->windowHeight, window->windowId);
	xf_SetWindowStyle(xfc, xfw, window->style, window->extendedStyle);
	xf_SetWindowText(xfc, xfw, window->title);
	window->extra = (void*) xfw;
	window->extraId = (void*) xfw->handle;
}
Example #2
0
void xf_process_rail_exec_result_event(xfContext* xfc, rdpChannels* channels, wMessage* event)
{
	RAIL_EXEC_RESULT_ORDER* exec_result;
	exec_result = (RAIL_EXEC_RESULT_ORDER*) event->wParam;

	if (exec_result->execResult != RAIL_EXEC_S_OK)
	{
		DEBUG_WARN("RAIL exec error: execResult=%s NtError=0x%X\n",
				   error_code_names[exec_result->execResult], exec_result->rawResult);
		xfc->disconnect = True;
	}
	else
	{
		xf_rail_enable_remoteapp_mode(xfc);
	}
}
Example #3
0
/**
 * Function description
 *
 * @return 0 on success, otherwise a Win32 error code
 */
static UINT xf_rail_server_execute_result(RailClientContext* context, RAIL_EXEC_RESULT_ORDER* execResult)
{
	xfContext* xfc = (xfContext*) context->custom;

	if (execResult->execResult != RAIL_EXEC_S_OK)
	{
		WLog_ERR(TAG, "RAIL exec error: execResult=%s NtError=0x%X\n",
				 error_code_names[execResult->execResult], execResult->rawResult);
		xfc->disconnect = TRUE;
	}
	else
	{
		xf_rail_enable_remoteapp_mode(xfc);
	}

	return CHANNEL_RC_OK;
}
Example #4
0
void xf_process_rail_exec_result_event(xfInfo* xfi, rdpChannels* channels, RDP_EVENT* event)
{
	RAIL_EXEC_RESULT_ORDER* exec_result;

	exec_result = (RAIL_EXEC_RESULT_ORDER*) event->user_data;

	if (exec_result->execResult != RAIL_EXEC_S_OK)
	{
		printf("RAIL exec error: execResult=%s NtError=0x%X\n",
			error_code_names[exec_result->execResult], exec_result->rawResult);
		xfi->disconnect = True;
	}
	else
	{
		xf_rail_enable_remoteapp_mode(xfi);
	}
}
Example #5
0
void xf_rail_CreateWindow(rdpRail* rail, rdpWindow* window)
{
	xfInfo* xfi;
	xfWindow* xfw;

	xfi = (xfInfo*) rail->extra;

	xf_rail_enable_remoteapp_mode(xfi);

	xfw = xf_CreateWindow((xfInfo*) rail->extra, window,
			window->windowOffsetX, window->windowOffsetY,
			window->windowWidth, window->windowHeight,
			window->windowId);

	xf_SetWindowStyle(xfi, xfw, window->style, window->extendedStyle);

	XStoreName(xfi->display, xfw->handle, window->title);

	window->extra = (void*) xfw;
	window->extraId = (void*) xfw->handle;
}