void cliprdr_send_data_request(uint32 format) { uint8 buffer[4]; buf_out_uint32(buffer, format); cliprdr_send_packet(CLIPRDR_DATA_REQUEST, CLIPRDR_REQUEST, buffer, sizeof(buffer)); }
void cliprdr_send_blah_format_announce(void) { uint8 buffer[36]; buf_out_uint32(buffer, CF_OEMTEXT); memset(buffer + 4, 0, sizeof(buffer) - 4); /* description */ cliprdr_send_packet(CLIPRDR_FORMAT_ANNOUNCE, CLIPRDR_REQUEST, buffer, sizeof(buffer)); }
/* Helper which announces our readiness to supply clipboard data in a single format (such as CF_TEXT) to the RDP side. To announce more than one format at a time, use cliprdr_send_native_format_announce. */ void cliprdr_send_simple_native_format_announce(uint32 format) { uint8 buffer[36]; DEBUG_CLIPBOARD(("cliprdr_send_simple_native_format_announce\n")); buf_out_uint32(buffer, format); memset(buffer + 4, 0, sizeof(buffer) - 4); /* description */ cliprdr_send_native_format_announce(buffer, sizeof(buffer)); }
static void licence_generate_hwid(uint8 *hwid) { buf_out_uint32(hwid, 2); strncpy(hwid + 4, hostname, LICENCE_HWID_SIZE - 4); }
static void licence_generate_hwid(RDPCLIENT * This, uint8 * hwid) { buf_out_uint32(hwid, 2); strncpy((char *) (hwid + 4), This->licence_hostname, LICENCE_HWID_SIZE - 4); }
static void licence_generate_hwid(rdpLicence * licence, uint8 * hwid) { buf_out_uint32(hwid, 2); strncpy((char *) (hwid + 4), licence->sec->rdp->settings->hostname, LICENCE_HWID_SIZE - 4); }
static void licence_generate_hwid(RDConnectionRef conn, uint8 * hwid) { buf_out_uint32(hwid, 2); strncpy((char *) (hwid + 4), conn->hostname, LICENCE_HWID_SIZE - 4); }