; Copyright 2008 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
; This header file is autogenerated from the files maintained by the
; RISC OS allocations manager and should not be edited by anyone else.

        SUBT    > &.Hdr.Messages

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

;
; Global message actions
;
                        ^       0
Message_Quit            #       1       ; 0     go away please!
Message_DataSave        #       1       ; 1     )
Message_DataSaveAck     #       1       ; 2     ) data transfer protocol
Message_DataLoad        #       1       ; 3     )
Message_DataLoadAck     #       1       ; 4     )
Message_DataOpen        #       1       ; 5     ) double-click on datafile
Message_RAMFetch        #       1       ; 6     ) for direct data transfer
Message_RAMTransmit     #       1       ; 7     )
Message_PreQuit         #       1       ; 8     for quit confirmation
Message_PaletteChange   #       1       ; 9     issued by palette utility
Message_SaveDesktop     #       1       ; 10    put restart command into file
Message_DeviceClaim     #       1       ; 11    ) claim a device.
Message_DeviceInUse     #       1       ; 12    )
Message_DataSaved       #       1       ; 13    for marking files unmodified
Message_Shutdown        #       1       ; 14    shutdown started
Message_ClaimEntity     #       1       ; 15    call entity_release on receipt of one of these
Message_DataRequest     #       1       ; 16    call Message_DataSave on receipt of one of these
Message_Dragging        #       1       ; 17    sent by dragging task
Message_DragClaim       #       1       ; 18    sent by recipient of Message_Dragging
Message_ReleaseEntity   #       1       ; 19    broadcast when they quit but hold clipboard
Message_OfferInputFocus #       1       ; 20    (Steve Cormie)
Message_AppControl      #       1       ; 21    (Carl Elkins)

;
; Filer message actions
;
                        ^       &400
Message_FilerOpenDir            #       1       ; 1024
Message_FilerCloseDir           #       1       ; 1025
Message_FilerOpenDirAt          #       1       ; 1026
Message_FilerSelectionDirectory #       1       ; 1027
Message_FilerAddSelection       #       1       ; 1028
Message_FilerAction             #       1       ; 1029
Message_FilerControlAction      #       1       ; 1030
Message_FilerSelection          #       1       ; 1031  ; Data contains bounding box of drag.
Message_FilerDevicePath         #       1       ; 1032/&408

; PColmer message actions

                        ^       &500
Message_PColmer         #       0               ; &500 - DO NOT USE!
Message_AlarmSet        #       1               ; &500
Message_AlarmGoneOff    #       1               ; &501
Message_HelpRequest     #       1               ; &502
Message_HelpReply       #       1               ; &503
Message_HelpEnable      #       1               ; &504


;
;  Mail system message actions
;
                        ^       &800
Message_MailReceived    #       1       ; 2048

;
;  NetFiler message actions
;

        ^       Module_SWISystemBase + NetFSSWI * Module_SWIChunkSize
Message_Notify          #       1       ; &40040

;
; Message actions (received from the Wimp)
;
        ^       Module_SWISystemBase + WimpSWI * Module_SWIChunkSize

                                        ; &400C0 up
Message_MenuWarning     #       1       ; &400C0 special submenu opening message
Message_ModeChange      #       1       ; &400C1 issued by Wimp_SetMode
Message_TaskInitialise  #       1       ; &400C2 issued by Wimp_Initialise
Message_TaskCloseDown   #       1       ; &400C3 issued by Wimp_CloseDown
Message_SlotSize        #       1       ; &400C4 issued by Wimp_SlotSize
Message_SetSlot         #       1       ; &400C5 issued by the Switcher
Message_TaskNameRq      #       1       ; &400C6 issued to the Switcher
Message_TaskNameIs      #       1       ; &400C7 issued by the Switcher
Message_TaskStarted     #       1       ; &400C8 issued by the Task
Message_MenusDeleted    #       1       ; &400C9 issued by the Wimp when menus disappear
Message_Iconize         #       1       ; &400CA issued by the Wimp when Shift-quit clicked
Message_WindowClosed    #       1       ; &400CB issued by the Wimp when a window is closed
Message_WindowInfo      #       1       ; &400CC issued by the Iconizer application
Message_Swap            #       1       ; &400CD issued by the Wimp for Task Manager
Message_ToolsChanged    #       1       ; &400CE issued by Wimp when new tools installed
Message_FontChanged     #       1       ; &400CF issued by application on changing WIMP$Font
Message_IconizeAt       #       1       ; &400D0 issued by the Wimp when Shift-close clicked
Message_ToggleBackdrop  #       1       ; &400D1 issued by application to bring backdrop to front
Message_ScreenEdgeNotification # 1	; &400D2 issued by Wimp when pointer is at edge of screen

;
;  Printer driver application messages
;

        ^       Module_SWIApplicationBase + PrintSWI * Module_SWIChunkSize
                                        ; &80140 up
Message_PrintFile       #       1       ; "Do you want to print this file?"
Message_WillPrint       #       1       ; "Yes, I will print it"
Message_PrintSave       #       1       ; Like DataSave, but printing
Message_PrintInit       #       1       ; "Printer driver wants to start up"
Message_PrintBusy       #       1       ; "Current printer driver is busy"
Message_PrintTypeOdd    #       1       ; "Anyone know how to print this
                                        ;   file type?"
Message_PrintTypeKnown  #       1       ; "Yes, I know how to print it."
Message_SetPrinter      #       1       ; "Printer settings changing"
Message_PrintInit2      #       1       ; A message needed during printer
                                        ;   driver initialisation for
                                        ;   synchronisation purposes
Message_JobAborted      #       1       ; PDriver_AbortJob called
; messages 8014C and up are PS messages, see PRM 3-263

;---------------------------------------------------------------------
; Layout of message blocks for specific message types
;---------------------------------------------------------------------

                        ^       0               ; message block format
ms_size                 #       4
ms_taskhandle           #       4
ms_myref                #       4
ms_yourref              #       4
ms_action               #       4
ms_data                 #       0

                                ^   ms_data
msDataRequest_windowhandle      #   4
msDataRequest_internalhandle    #   4  ; or icon handle
msDataRequest_x                 #   4
msDataRequest_y                 #   4
msDataRequest_flags             #   4
msDataRequest_filetypes         #   4  ; list terminated by -1
msDataRequest_filetypes_end     *   -1

                                ^   ms_data
msDragging_windowhandle         #   4
msDragging_iconhandle           #   4
msDragging_x                    #   4
msDragging_y                    #   4
msDragging_flags                #   4
msDragging_flags_fromselection  *   2_00010
msDragging_flags_fromclipboard  *   2_00100
msDragging_flags_deletesource   *   2_01000
msDragging_flags_dragaborting   *   2_10000
msDragging_bbox_x0              #   4
msDragging_bbox_y0              #   4
msDragging_bbox_x1              #   4
msDragging_bbox_y1              #   4
msDragging_filetypes            #   4 ; list terminated by -1
msDragging_filetypes_end        *   -1

                                ^   ms_data
msDragClaim_flags               #   4
msDragClaim_flags_otherptrshape *   2_0001
msDragClaim_flags_removedragbox *   2_0010
msDragClaim_flags_trashcan      *   2_1000
msDragClaim_filetypes           #   4 ; list terminated by -1
msDragClaim_filetypes_end       *   -1

                        ^   ms_data
msClaimEntity_flags     #   4

                        ^   ms_data
msRAMFetch_buffer       #   4
msRAMFetch_length       #   4

                        ^   ms_data
msRAMTransmit_buffer    #   4
msRAMTransmit_length    #   4

                        ^       ms_data
msSetSlot_newsize       #       4
msSetSlot_taskhandle    #       4

                        ^       ms_data
msTaskName_taskhandle   #       4
msTaskName_slotsize     #       4
msTaskName_taskname     #       0               ; 0-terminated

                            ^       ms_data
msDataTransfer_window       #       4
msDataTransfer_icon         #       4
msDataTransfer_x            #       4
msDataTransfer_y            #       4
msDataTransfer_filesize     #       4
msDataTransfer_filetype     #       4
msDataTransfer_filename     #       0           ; zero-terminated

; Normal datestamped files have types &000..&FFF
filetype_directory      *       &1000
filetype_application    *       &2000
filetype_undated        *       &3000

                        ^       ms_data
msNotify_station        #       1
msNotify_net            #       1
msNotify_timereceived   #       5
msNotify_message        #       0               ; zero-terminated

                        ^       ms_data
msSaveDesktop_handle    #       4               ; file handle to write to
msSaveDesktop_flags     #       4               ; flag word (reserved)
msSaveDesktop_size      #       0

                        ^       ms_data
msHelp_message          #       0               ; (to help system) help message (null terminated)
                                                ; (the following are from the help system)
msHelp_x                #       4               ;     pointer x position
msHelp_y                #       4               ;     pointer y position
msHelp_buttons          #       4               ;     buttons held down
msHelp_window           #       4               ;     window handle the pointer is in
msHelp_icon             #       4               ;     icon handle the pointer is over

                        ^       ms_data
msDeviceClaim_major     #       4               ; major device number
msDeviceClaim_minor     #       4               ; minor device number
msDeviceClaim_info      #       0               ; information string
                                                ; zero-terminated

                        ^       ms_data
msDeviceInUse_major     #       4               ; major device number
msDeviceInUse_minor     #       4               ; minor device number
msDeviceInUse_info      #       0               ; information string
                                                ; zero-terminated

        OPT     OldOpt
        END

