Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File13.3.1 D&D-listing_1 TOS /* The following program fragment signals the sender of the Drag&Drop protocol that the particular program does not support this protocol. */ #define AP_DRAGDROP 63 #define DD_NAK 1 /* We are now in the event-loop; message_buff is the message buffer. */ case AP_DRAGDROP: { static BYTE pipename[] = "U:\\PIPE\\DRAGDROP.AA"; LONG fd; pipename[18] = message_buff[7] & 0x00ff; pipename[17] = (message_buff[7] & 0xff00) >> 8; fd = Fopen (pipename, 2); if (fd >= 0) { BYTE c = DD_NAK; Fwrite ((WORD) fd, 1, &c); Fclose ((WORD) fd); } } break;