亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tsr.h

?? 多任務操作系統控制的DOS環境下的實現的C語言源程序。 利用時間片的方式
?? H
字號:
//--------------------------------------------------------------------------
//
//      TSR.H: header file for DOS TSR class.
//      Copyright (c) J.English 1993.
//      Author's address: je@unix.brighton.ac.uk
//
//      Permission is granted to use copy and distribute the
//      information contained in this file provided that this
//      copyright notice is retained intact and that any software
//      or other document incorporating this file or parts thereof
//      makes the source code for the TSR class of which this file
//      is a part freely available.
//
//--------------------------------------------------------------------------
//
//      Note: this class is highly DOS specific and hence non-portable.
//      It also involves the use of assembly language and interrupt
//      functions, so it is also very compiler-specific and will need
//      modification for use with compilers other than Borland C++ 3.0
//      or later.
//
//      Revision history:
//      1.0     March 1993      Initial coding
//
//--------------------------------------------------------------------------

#ifndef __TSR_H
#define __TSR_H

//--------------------------------------------------------------------------
//
//      Class TSR: abstract base class for DOS resident programs.
//      ---------------------------------------------------------
//
//      TSRs written using this class will require a PC/AT compatible
//      machine running DOS version 3 or higher.  See the file TSR.DOC
//      for detailed documentation.
//
//      Public interface:
//      -----------------
//      TSR (const char* name,
//           unsigned stacksize = 1024);
//                      -- Class constructor.  "Name" is a unique name
//                         for the TSR instance, and "stacksize" is the
//                         number of bytes of stack space to allocate.
//      virtual ~TSR ();
//                      -- Class destructor.  This is only invoked when
//                         the TSR is NOT made resident.
//      void run (int hotkey,
//                unsigned timeslice = 0);
//                      -- Make the TSR resident.  "Hotkey" is the hotkey
//                         to be used to wake up the TSR and "timeslice"
//                         is the number of timer ticks between timed
//                         activations.  Use value from the enumeration
//                         TSR::hotkey_code to specify the hotkey value.
//                         A timeslice of 0 means that timeslicing is not
//                         required.  This function only returns if there
//                         is an error preventing the TSR from loading.
//      int unload ();
//                      -- Unload a previously-loaded copy of the TSR from
//                         memory.  Returns zero if the TSR is successfully
//                         unloaded, or a non-zero error code if it could
//                         not be unloaded.
//      int loaded ();
//                      -- Returns non-zero if a copy of the TSR has already
//                         been loaded.
//      int request (int& fn, int& p1, int& p2);
//                      -- This function allows a foreground copy of the
//                         program to communicate with a resident copy.
//                         "Fn" is an application-specific function code
//                         (00 - 7F) and "p1" and "p2" are function-specific
//                         parameters.  Returns zero if there is no resident
//                         copy of the TSR; otherwise the virtual function
//                         "respond" will be called in the resident copy to
//                         process the function.  "Respond" can update the
//                         values of the three parameters to return a result
//                         to the foreground program.
//      const char* name ();
//                      -- Returns the TSR's identifying string.
//      int status ();
//                      -- Returns a status code showing if any errors have
//                         occurred during TSR construction or loading (as
//                         defined by the enumeration type TSR::status_code).
//
//      Protected interface:
//      --------------------
//      virtual void main (int hotkey) = 0;
//                      -- The main body of the TSR, executed whenever it
//                         is woken up.  "Hotkey" will be non-zero if the
//                         TSR was woken up by the hotkey, and zero if it
//                         was woken up by a timeslice interrupt.  This is
//                         a pure virtual function and must be defined by
//                         all derived TSR classes.
//
//      Functions for use by "main".
//      ----------------------------
//      void pause ();
//                      -- allow other TSRs to run if lengthy processing
//                         is being performed by "main".
//      void sync ();
//                      -- resynchronise the timer.  Timeslice interrupts
//                         occur every N timer ticks after "run" is executed.
//                         This function resets the clock so that the next
//                         interrupt will occur N timer ticks from the time
//                         it is called.
//      int userbreak ();
//                      -- returns non-zero if Ctrl-Break has been pressed
//                         since the last time this function was called.
//
//      Virtual functions:
//      ------------------
//      (Note: these functions should not be called directly; they will be
//       called automatically when necessary.)
//
//      virtual int startup ();
//                      -- Performs initialisation (like a constructor) when
//                         the TSR is being made resident.  Returns non-zero
//                         if an error occurs.
//      virtual int shutdown ();
//                      -- Performs finalisation (like a destructor) when
//                         the TSR is being unloaded from memory.  Returns
//                         non-zero if an error occurs.
//      virtual int respond (int fn, int& p1, int& p2);
//                      -- Respond to a call to "request" in a foreground
//                         copy of the program.  "Fn" is a function code
//                         between 00 and 7F, and "p1" and "p2" are function
//                         specific parameters.  The return value will be
//                         stored in the caller's function code (the first
//                         parameter to "request") and any changes to "p1"
//                         or "p2" will be reflected in the corresponding
//                         parameters of the foreground program's call to
//                         "request".
//      virtual critical_code critical_error (int n);
//                      -- Called when a critical errors occurs during
//                         execution of "main".  "N" is the critical error
//                         code; the result is a value from the enumeration
//                         TSR::critical_code (indicating how DOS should
//                         proceed).
//      virtual void dos_error (int fn, int ce, int cs, int ip);
//                      -- Called if an invalid DOS function is called by
//                         "main" or "critical_error".  The default action
//                         is to clear the screen and print an error message.
//                         Parameter "fn" is the function code from register
//                         AH; "ce" is non-zero if the error occurred while
//                         handling a critical error; "cs" and "ip" are the
//                         segment and offset of the return address from the
//                         offending interrupt.  Do not attempt to use any
//                         DOS services from within this function!
//
//--------------------------------------------------------------------------



class TSR
{
    friend void activate ();

  public:
    enum hotkey_code {
        NONE   = 0x0000,
        ALT    = 0x0800,  CTRL   = 0x0400,  LSHIFT = 0x0200,  RSHIFT = 0x0100,
        KEY_A  = 0x001E,  KEY_B  = 0x0030,  KEY_C  = 0x002E,  KEY_D  = 0x0020,
        KEY_E  = 0x0012,  KEY_F  = 0x0021,  KEY_G  = 0x0022,  KEY_H  = 0x0023,
        KEY_I  = 0x0017,  KEY_J  = 0x0024,  KEY_K  = 0x0025,  KEY_L  = 0x0026,
        KEY_M  = 0x0032,  KEY_N  = 0x0031,  KEY_O  = 0x0018,  KEY_P  = 0x0019,
        KEY_Q  = 0x0010,  KEY_R  = 0x0013,  KEY_S  = 0x001F,  KEY_T  = 0x0014,
        KEY_U  = 0x0016,  KEY_V  = 0x002F,  KEY_W  = 0x0011,  KEY_X  = 0x002D,
        KEY_Y  = 0x0015,  KEY_Z  = 0x002C,  KEY_0  = 0x0078,  KEY_1  = 0x0079,
        KEY_2  = 0x007A,  KEY_3  = 0x007B,  KEY_4  = 0x007C,  KEY_5  = 0x007D,
        KEY_6  = 0x007E,  KEY_7  = 0x007F,  KEY_8  = 0x0080,  KEY_9  = 0x0081,
        F1     = 0x003B,  F2     = 0x003C,  F3     = 0x003D,  F4     = 0x003E,
        F5     = 0x003F,  F6     = 0x0040,  F7     = 0x0041,  F8     = 0x0042,
        F9     = 0x0043,  F10    = 0x0044,  SPACE  = 0x0039,  ENTER  = 0x001C
    };
    enum status_code {
        SUCCESS     = 0,                                        // general
        DOS_VERSION = 1,  MULTI_COPIES = 2,  STACK_FAIL = 3,    // run/c'tor
        NO_MUX_FUNC = 4,  RELOAD_FAIL  = 5,  LOAD_FAIL  = 6,
        STARTUP_ERR = 7,
        NOT_LOADED  = 1,  UNHOOK_FAIL  = 2,  MEM_FROZEN = 3,    // unload
        ENV_FROZEN  = 4
    };
    enum critical_code { IGNORE = 0, RETRY = 1, FAIL = 3 };

    TSR (const char* name,                  // TSR identifier
         unsigned stacksize = 1024);        // stack size in bytes
    virtual ~TSR ();

    void run (int hotkey,                   // hotkey used to wake up TSR
              unsigned timeslice = 0);      // length of timeslice in ticks
    int unload ();                          // unload TSR from memory
    int loaded ();                          // is TSR already loaded?
    const char* name ();                    // get TSR identifier
    int status ();                          // current TSR status

    virtual int startup ();                 // TSR startup code
    virtual int shutdown ();                // TSR shutdown code
    int request (int&, int&, int&);         // request to TSR resident copy
    virtual int respond (int, int far&, int far&);
                                            // response from TSR resident copy
    virtual critical_code critical_error (int n);
                                            // critical error handler
    virtual void dos_error (int fn, int ce, int cs, int ip);
                                            // DOS error handler

  protected:
    void pause ();                          // let other TSRs run
    void sync ();                           // resychronise timer
    int userbreak ();                       // has ctrl-break been pressed?
    virtual void main (int hotkey) = 0;     // main body of TSR, called when
                                            // hotkey pressed or timesliced
  private:
    int stat;
};



//--------------------------------------------------------------------------
//
//      Inline functions
//
inline TSR::~TSR ()                                     { }
inline int TSR::startup  ()                             { return 0; }
inline int TSR::shutdown ()                             { return 0; }
inline int TSR::status   ()                             { return stat; }
inline int TSR::respond (int, int far&, int far&)       { return 0; }
inline TSR::critical_code TSR::critical_error (int n)   { return TSR::FAIL; }

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀va亚洲va欧美va天堂| 亚洲国产精品t66y| 99久久99久久综合| 成人丝袜18视频在线观看| 国产精一品亚洲二区在线视频| 日本麻豆一区二区三区视频| 丝袜国产日韩另类美女| 亚洲图片欧美综合| 香蕉成人啪国产精品视频综合网| 日韩亚洲欧美在线| 成人免费一区二区三区视频 | 国产人成一区二区三区影院| 7777精品伊人久久久大香线蕉| 欧美日韩精品一区二区| 欧美另类久久久品| 精品久久久久久亚洲综合网 | 欧美极品少妇xxxxⅹ高跟鞋 | 日本在线不卡一区| 久久国产福利国产秒拍| 国产一区二区三区最好精华液| 韩国成人在线视频| 99久久国产综合精品色伊| 色吧成人激情小说| 欧美久久久久久久久久| 精品久久久久久最新网址| 国产欧美一区二区精品性色超碰| 自拍偷自拍亚洲精品播放| 亚洲尤物在线视频观看| 精品中文字幕一区二区小辣椒| 国产成人午夜片在线观看高清观看| 成人午夜精品在线| 国产午夜精品福利| 中文字幕日韩av资源站| 午夜不卡av免费| 国产成人精品一区二| 欧美亚洲国产一区二区三区| 26uuu亚洲综合色| 亚洲精选在线视频| 国产一区二区视频在线播放| 色哟哟在线观看一区二区三区| 制服丝袜亚洲网站| 亚洲视频资源在线| 国产一区视频导航| 欧美色网一区二区| 自拍偷拍亚洲激情| 黄色精品一二区| 欧美美女网站色| 国产精品短视频| 国内外成人在线视频| 欧美午夜一区二区三区 | 国产高清亚洲一区| 欧美一区二区在线视频| 中文字幕亚洲一区二区av在线| 蜜桃视频一区二区三区在线观看| 99久久国产免费看| 欧美国产精品一区| 久久se这里有精品| 91精品国产综合久久久久久久久久| 国产精品国产三级国产a| 久久电影网站中文字幕| 7799精品视频| 香港成人在线视频| 欧美亚洲国产一区二区三区va | 2021中文字幕一区亚洲| 成人综合日日夜夜| 精品日韩在线观看| 日本中文字幕一区| 在线不卡欧美精品一区二区三区| 亚洲特黄一级片| www.激情成人| 国产精品久久99| 国产成人8x视频一区二区| 久久青草欧美一区二区三区| 免费成人美女在线观看.| 欧美精品丝袜中出| 亚洲成av人影院在线观看网| 日本韩国一区二区| 亚洲综合精品自拍| 精品视频一区三区九区| 亚洲综合在线电影| 欧美伦理影视网| 香蕉久久夜色精品国产使用方法 | 久久综合一区二区| 国产自产v一区二区三区c| 26uuu国产一区二区三区| 黄色精品一二区| 国产精品天天看| 99久久99久久精品免费看蜜桃| 1000精品久久久久久久久| 91麻豆免费观看| 亚洲成人第一页| 日韩精品一区二区三区视频| 狠狠色狠狠色综合系列| 中文字幕精品综合| 一本久久精品一区二区| 午夜亚洲国产au精品一区二区| 欧美精品日日鲁夜夜添| 卡一卡二国产精品 | 26uuu亚洲综合色| 韩国精品主播一区二区在线观看| 国产日本亚洲高清| 在线看日本不卡| 美女性感视频久久| 一区在线观看视频| 欧美电影一区二区| 国产999精品久久| 亚洲国产va精品久久久不卡综合| 91精品国产一区二区三区蜜臀| 国产一区二区三区免费看 | 欧美日韩高清在线播放| 极品销魂美女一区二区三区| 中国色在线观看另类| 欧美精品一二三区| 国产jizzjizz一区二区| 亚洲一卡二卡三卡四卡无卡久久| 精品国产伦一区二区三区免费 | 精品国产一区二区亚洲人成毛片| 成人精品视频一区二区三区| 亚洲超丰满肉感bbw| 国产色综合一区| 欧美电影在线免费观看| av亚洲产国偷v产偷v自拍| 日本欧美一区二区| 亚洲黄色在线视频| 欧美国产视频在线| 日韩一级高清毛片| 久久久蜜桃精品| 在线视频中文字幕一区二区| 国产精品亚洲专一区二区三区| 亚洲国产精品久久不卡毛片 | 亚洲欧美另类久久久精品2019| 欧美一个色资源| 在线观看视频91| 懂色一区二区三区免费观看| 美女网站一区二区| 亚洲影视在线播放| 中文字幕日韩一区| 国产精品久久久久影院亚瑟 | 国产精品传媒入口麻豆| 日韩欧美一级在线播放| 欧美乱熟臀69xxxxxx| 欧美影院一区二区三区| 不卡欧美aaaaa| 国产91精品露脸国语对白| 精品一区二区三区免费观看| 日日夜夜精品视频免费| 亚洲狠狠爱一区二区三区| 亚洲欧美一区二区三区极速播放| 国产欧美一区二区三区在线看蜜臀 | 国产一区二区美女| 精品亚洲成a人| 国产中文一区二区三区| 精品伊人久久久久7777人| 精品一区二区在线播放| 精品一区二区影视| 黑人巨大精品欧美一区| 国内精品伊人久久久久av影院 | 一区二区三区欧美亚洲| 亚洲乱码国产乱码精品精可以看 | k8久久久一区二区三区| 97se亚洲国产综合在线| 99国产精品99久久久久久| 91在线你懂得| 欧美日韩一区小说| 日韩一区二区在线观看视频| 91精品国产一区二区| 26uuu精品一区二区三区四区在线| 精品久久一区二区三区| 国产欧美精品国产国产专区 | 91精品91久久久中77777| 欧美三级中文字| 欧美一区二区成人| 国产女人aaa级久久久级| 免费精品视频在线| 久久99国产精品久久99果冻传媒 | 精品国产免费久久| 国产精品久久夜| 亚洲一区在线观看视频| 三级欧美在线一区| 国产在线国偷精品免费看| av在线一区二区三区| 欧美日韩在线三区| 亚洲精品在线一区二区| 中文幕一区二区三区久久蜜桃| 亚洲一区二区三区四区在线免费观看 | 国产精品色呦呦| 亚洲国产日日夜夜| 国产精品一区二区三区网站| 99r国产精品| 日韩欧美亚洲另类制服综合在线| 日本一区二区三区视频视频| 一区二区久久久久久| 韩国在线一区二区| 在线观看日产精品| 欧美精品一区二区三区在线| 亚洲精品乱码久久久久久| 久久99精品国产91久久来源| 在线亚洲免费视频| 国产精品免费视频观看| 免费看日韩精品|