rem: port_id server=find_port(SERVER_PORT_NAME); if(server >= 0) { BPortLink link(server); link.StartMessage(AS_SET_CURSOR_SYSTEM); link.Flush(); }
add: port_id server = find_port(SERVER_PORT_NAME); if (server < B_OK) return;  BPortLink link(server); link.StartMessage(AS_SET_CURSOR_SYSTEM); link.Flush();
context: void setcursor(cursor_which which){	port_id server=find_port(SERVER_PORT_NAME);	if(server >= 0)	{		BPortLink link(server);		link.StartMessage(AS_SET_CURSOR_SYSTEM);		link.Flush();	}}