home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 August: Tool Chest / Apple_Developer_Group_August_1996_Tool_Chest.iso / Sample Code / Snippets / Toolbox / SignatureToApp / SignatureToApp.h < prev   
Encoding:
Text File  |  1991-06-07  |  861 b   |  36 lines  |  [TEXT/MPS ]

  1. ////
  2. ////    SignatureToApp.h        Interface for SignatureToApp
  3. ////
  4. ////    By Jens Alfke            ©1991 Apple Computer, Inc. All rights reserved.
  5. ////
  6.  
  7. #ifndef __SIGNATURETOAPP__
  8.     #define __SIGNATURETOAPP__
  9.  
  10. #ifndef __PROCESSES__
  11.     #include <Processes.h>
  12. #endif
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. typedef enum{
  19.     Sig2App_FindProcess        =0,
  20.     Sig2App_FindApplication,
  21.     Sig2App_LaunchApplication
  22. } Sig2App_Mode;
  23.  
  24. OSErr
  25. SignatureToApp(    OSType sig,                        // Signature of app
  26.                 ProcessSerialNumber *psn,        // Returns PSN of app (ignored if NULL)
  27.                 FSSpec *fileSpec,                // Returns location of app (ignored if NULL)
  28.                 Boolean *launched,                // Set to TRUE if I had to launch (ignored if NULL)
  29.                 Sig2App_Mode mode,                // Mode -- find proc/find app/launch app
  30.                 LaunchFlags launchControlFlags    // Launch control flags; see Process Mgr
  31.               );
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35.  
  36. #endif