Ejemplo n.º 1
0
/* Establish a connection up to the RDP layer */
RD_BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password,
		char *command, char *directory, RD_BOOL reconnect) {
	if (!sec_connect(server, g_username, reconnect))
		return False;

	rdp_send_logon_info(flags, domain, g_username, password, command, directory);
	return True;
}
Ejemplo n.º 2
0
/* Establish a reconnection up to the RDP layer */
BOOL
rdp_reconnect(RDPCLIENT * This, char *server, uint32 flags, wchar_t *username, wchar_t *domain, wchar_t *password,
	      wchar_t *command, wchar_t *directory, wchar_t *hostname, char *cookie)
{
	if (!sec_reconnect(This, server, hostname, cookie))
		return False;

	rdp_send_logon_info(This, flags, domain, username, password, command, directory);
	return True;
}
Ejemplo n.º 3
0
/* Establish a connection up to the RDP layer */
RD_BOOL
rdp_connect(char *server, uint32 flags, char *domain, char *password,
	    char *command, char *directory, RD_BOOL reconnect)
{
	RD_BOOL deactivated = False;
	uint32 ext_disc_reason = 0;

	if (!sec_connect(server, g_username, reconnect))
		return False;

	rdp_send_logon_info(flags, domain, g_username, password, command, directory);

	/* run RDP loop until first licence demand active PDU */
	while (!g_rdp_shareid)
	{
		if (!rdp_loop(&deactivated, &ext_disc_reason))
			return False;
	}
	return True;
}