home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / h / screenmode < prev    next >
Encoding:
Text File  |  1994-09-07  |  2.0 KB  |  68 lines

  1. #ifndef screenmodes_H
  2. #define screenmodes_H
  3.  
  4. /* C header file for ScreenModes
  5.  * written by DefMod (Sep  7 1994) on Wed Sep  7 21:19:28 1994
  6.  * Copyright © Acorn Computers Ltd, 1994
  7.  */
  8.  
  9. /*************************************************************************
  10.  * This source file was written by Acorn Computers Limited. It is part   *
  11.  * of the OSLib library for writing applications for RISC OS. It may be  *
  12.  * used freely in the creation of programs for RISC OS.                  *
  13.  *************************************************************************/
  14.  
  15. #ifndef types_H
  16.    #include "types.h"
  17. #endif
  18.  
  19. #ifndef os_H
  20.    #include "os.h"
  21. #endif
  22.  
  23. /**********************************
  24.  * SWI names and SWI reason codes *
  25.  **********************************/
  26. #undef  ScreenModes_ReadInfo
  27. #define ScreenModes_ReadInfo                    0x487C0
  28. #undef  XScreenModes_ReadInfo
  29. #define XScreenModes_ReadInfo                   0x687C0
  30. #undef  ScreenModesReadInfo_MonitorTitle
  31. #define ScreenModesReadInfo_MonitorTitle        0x0
  32.  
  33. /*************************
  34.  * Function declarations *
  35.  *************************/
  36.  
  37. #ifdef __cplusplus
  38.    extern "C" {
  39. #endif
  40.  
  41. /*************************************************************
  42.  * NOTE: The following functions provide direct access to    *
  43.  *       the SWI's noted in the function description.        *
  44.  *       Please read the relevant PRM section for more       *
  45.  *       information on their input/output parameters.       *
  46.  *************************************************************/
  47.  
  48. /* ------------------------------------------------------------------------
  49.  * Function:      screenmodesreadinfo_monitor_title()
  50.  *
  51.  * Description:   Reads the current monitor title
  52.  *
  53.  * Output:        title - value of R0 on exit (X version only)
  54.  *
  55.  * Returns:       R0 (non-X version only)
  56.  *
  57.  * Other notes:   Calls SWI 0x487C0 with R0 = 0x0.
  58.  */
  59.  
  60. extern os_error *xscreenmodesreadinfo_monitor_title (char **title);
  61. extern char *screenmodesreadinfo_monitor_title (void);
  62.  
  63. #ifdef __cplusplus
  64.    }
  65. #endif
  66.  
  67. #endif
  68.