ZeroScrap
ZeroScrap
Empty the desk scrap and bump scrapCount ZeroScrap initializes the desk scrap and purges any data currently in it. It changes the global variable ScrapInfo. scrapCount to let DAs and others know that the contents of the scrap has been changed.
storing two or more types of the data (e.g. a 'PICT' item and a 'TEXT' item),
call ZeroScrap only before storing the first type. This modifies the ScrapInfo. scrapCount variable in an arbitrary fashion. By watching for changes in this variable, you can see if DAs or other
applications have put new data into the scrap.
Early in the application, you should call InfoScrap, and if the scrapState field of the returned ScrapStuff structure is less than 0, then call