iacnewsystemverb.c

Go to the documentation of this file.
00001 
00002 /*  $Id: iacnewsystemverb.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include "frontier.h"
00008 #include "standard.h"
00009 
00010 #include "iacinternal.h"
00011 
00012 
00013 /*
00014 8/24/92 DW: This is the only system event verb that UCMDs need as of Frontier
00015 SDK 2.0. We included this in a separate file so that UCMDs don't have to have all
00016 the overhead of all the routines in iacsysevents.c.
00017 */
00018 
00019 
00020 Boolean IACnewsystemverb (OSType vclass, OSType vtoken, AppleEvent *event) {
00021 
00022     /*
00023     6/29/92 DW: special entry point for messages sent to system event handlers.
00024     
00025     implementation detail: this is accomplished by sending the message to ourself.
00026     */
00027     
00028     AEAddressDesc adr; 
00029     OSErr ec;
00030     
00031     ProcessSerialNumber psn;
00032 
00033     psn.highLongOfPSN = 0;
00034 
00035     psn.lowLongOfPSN = kCurrentProcess;
00036 
00037     AECreateDesc (typeProcessSerialNumber, (Ptr) &psn, sizeof (psn), &adr);
00038     
00039     ec = AECreateAppleEvent (
00040         
00041         vclass, vtoken, &adr, kAutoGenerateReturnID, kAnyTransactionID, event);
00042     
00043     AEDisposeDesc (&adr);
00044 
00045     IACglobals.errorcode = ec;
00046     
00047     return (ec == noErr);
00048     } /*IACnewsystemverb*/
00049     
00050     

Generated on Wed May 31 18:19:48 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6