Emulates a keystroke in a remote session .

C Language

int pcoip_key( const char* key, long int key_modifier );

Example Teradici PCoIP Protocol


Name Comments
key A character key or the name of a special key. See below: Special Keys.
key_modifier A key pressed together with the character or special key. Modifiers can be combined, for example, MODIF_SHIFT|MODIF_CONTROL. See below: Key Modifier Values


pcoip_key emulates a keystroke in a remote session.

Note: To set a delay after a keystroke event, select and configure the PCoIP runtime setting, Delay after keystroke and mouse click.

Return Values

E_ALREADY_CONNECTED Do not call this function after the connection is established.
E_NOT_CONNECTED Action cannot be performed. There is no connection to the remote server.
E_OUT_OF_TIME Function timed out.
E_ILLEGAL_PARAMETER Illegal parameter found.
E_INTERNAL Internal error found.


Standard parameterization is not available for this function.


These are examples of the use of pcoip_key.

	pcoip_key("NUM_LOCK_KEY", 0);

	pcoip_key("h", MODIF_SHIFT); // Capital H