⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tchkf.doc

📁 c语言函数库,包括大部分c语言函数的说明和代码,有利于想深入了解c编程的开发人员.
💻 DOC
📖 第 1 页 / 共 5 页
字号:
                      Function 0x68 is used. Under pre-DOS 3.3 versions,
                      the handle is duplicated (DOS Function 0x45) and
                      subsequently closed (DOS Function 0x3E), flushing
                      all buffers for that handle.
  
  Return value        returns TRUE is successful, FALSE otherwise.
  
  
     TCHK 2.1                                                    Page 34
  
  Function             Compaq386GetCpuSpeed - get cpu speed on a
                                               Compaq 386
  
  Syntax              unsigned char Compaq386GetCpuSpeed(unsigned int
                                                           *speedvalue);
  
  Prototype in        ibm.h
  
  Remarks             determines the cpu speed of a Compaq 386 computer.
                      The speed is returned and, if type/category 0x09
                      (dynamic) the parameter speedvalue will point to
                      the direct speed value.
  
  Return value        returns the cpu speed type/category. See
                      Compaq386SetCpuSpeed() for the list of
                      types/categories.
  
  Note                This function should ONLY be used on Compaq 386
                      computers or unpredictable results may occur.
  
  See also            Compaq386KbdType(), Compaq386SetCpuSpeed()
  
  Example             #include <ibm.h>
  
                      main()
                      {
                           unsigned char speed;
                           unsigned int directvalue;
  
                           speed = Compaq386GetCpuSpeed(&directvalue);
                           printf("cpu speed = %u\n",speed);
                           if (directvalue == 0x09)
                                printf("direct value = %u\n",
                                       directvalue);
                      }
  
  
     TCHK 2.1                                                    Page 35
  
  Function             Compaq386KbdType - keyboard type used by a
                                           Compaq 386
  
  Syntax              unsigned char Compaq386KbdType(void);
  
  Prototype in        ibm.h
  
  Remarks             determines the type of keyboard in use by a Compaq
                      386 computer.
  
  Return value        returns 0 if the keyboard in use is an 11-bit AT
                      type keyboard and 1 if the keyboard is a 9-bit PC
                      type keyboard.
  
  Note                This function should ONLY be used on Compaq 386
                      computers or unpredictable results may occur.
  
  See also            Compaq386GetCpuSpeed(), Compaq386SetCpuSpeed()
  
  Example             #include <ibm.h>
  
                      main()
                      {
  
                           printf("Keyboard in use: );
                           switch (Compaq386KbdType()) {
                                case 0: printf("11-bit AT style\n");
                                case 1: printf("9-bit PC style\n");
                                default: printf("unknown\n");
                           }
                      }
  
  
     TCHK 2.1                                                    Page 36
  
  Function             Compaq386SetCpuSpeed - set cpu speed on a
                                               Compaq 386
  
  Syntax              void Compaq386SetCpuSpeed(unsigned char speed,
                                                unsigned int speedvalue);
  
  Prototype in        ibm.h
  
  Remarks             sets the cpu speed of a Compaq 386 computer, based
                      on the following chart:
  
                           speed:  0 - equivalent to 6 MHz 80286 (COMMON)
                                   1 - equivalent to 8 MHz 80286 (FAST)
                                   2 - full 16 MHz (HIGH)
                                   3 -  toggles between 8 MHz-equivalent
                                        and speed set by system board
                                        switch (AUTO or HIGH)
                                   8 -  full 16 MHz except 8 MHz-
                                        -equivalent during floppy disk
                                        access
                                   9 -  specify speed directly (via
                                        speedvalue parameter, from 1
                                        (slowest) to 50 (full), 3 ~= 8088
                                        running at 4.77 MHz)
  
  Return value        nothing.
  
  Note                This function should ONLY be used on Compaq 386
                      computers or unpredictable results may occur.
  
  See also            Compaq386GetCpuSpeed(), Compaq386KbdType()
  
  
     TCHK 2.1                                                    Page 37
  
  Function             CompaqExternalMonitorType - Get external monitor
                                                    type
  
  Syntax              unsigned char CompaqExternalMonitorType(void);
  
  Prototype in        video.h
  
  Remarks             determines the external monitor type on a Compaq
                      Portable.
  
  Return value        returns the external monitor type as follows:
  
                           0x00 - none
                           0x01 - dual-mode monitor
                           0x02 - 5153 RGB monitor
                           0x03 - Compaq Color monitor
                           0x04 - 640x400 flat panel
  
  Note                This function should ONLY be used on a Compaq
                      Portable or unpredictable results may occur.
  
  See also            CompaqGetMonitor(), CompaqGetMasterMode(),
                      CompaqInternalMonitorType(),
                      CompaqModeSwitchDelay(), CompaqSelectMonitor(),
                      CompaqSetMasterMode()
  
  
     TCHK 2.1                                                    Page 38
  
  Function             CompaqGetMasterMode - Get master mode of current
                                              controller
  
  Syntax              unsigned char CompaqGetMasterMode(void);
  
  Prototype in        video.h
  
  Remarks             CompaqGetMasterMode() gets the master mode of the
                      current controller on a Compaq Portable.
  
  Return value        returns the master mode of the current controller
                      as follows:
  
                           0x00 - switchable VDU not present
                           0x04 - CGA
                           0x05 - EGA
                           0x07 - MDA
  
  Note                This function should ONLY be used on a Compaq
                      Portable or unpredictable results may occur.
  
  See also            CompaqExternalMonitorType(), CompaqGetMonitor(), 
                      CompaqInternalMonitorType(),
                      CompaqModeSwitchDelay(), CompaqSelectMonitor(),
                      CompaqSetMasterMode()
  
  
     TCHK 2.1                                                    Page 39
  
  Function             CompaqGetMonitor - Get active monitor
  
  Syntax              unsigned char CompaqGetMonitor(void);
  
  Prototype in        video.h
  
  Remarks             CompaqGetMonitor() determines the active monitor on
                      a Compaq Portable.
  
  Return value        returns 0 if the external monitor is active and 1
                      if the internal monitor is active.
  
  Note                This function should ONLY be used on a Compaq
                      Portable or unpredictable results may occur.
  
  See also            CompaqExternalMonitorType(), CompaqGetMasterMode(),
                      CompaqInternalMonitorType(),
                      CompaqModeSwitchDelay(), CompaqSelectMonitor(),
                      CompaqSetMasterMode()
  
  
     TCHK 2.1                                                    Page 40
  
  Function             CompaqInternalMonitorType - Get internal monitor
                                                    type
  
  Syntax              unsigned char CompaqInternalMonitorType(void);
  
  Prototype in        video.h
  
  Remarks             determines the internal monitor type on a Compaq
                      Portable.
  
  Return value        returns the internal monitor type as follows:
  
                           0x00 - none
                           0x01 - dual-mode monitor
                           0x02 - 5153 RGB monitor
                           0x03 - Compaq Color monitor
                           0x04 - 640x400 flat panel
  
  Note                This function should ONLY be used on a Compaq
                      Portable or unpredictable results may occur.
  
  See also            CompaqExternalMonitorType(), CompaqGetMonitor(),
                      CompaqGetMasterMode(), CompaqModeSwitchDelay(),
                      CompaqSelectMonitor(), CompaqSetMasterMode()
  
  
     TCHK 2.1                                                    Page 41
  
  Function             CompaqModeSwitchDelay - Set mode switch delay
  
  Syntax              void CompaqModeSwitchDelay(boolean enable);
  
  Prototype in        video.h
  
  Remarks             CompaqModeSwitchDelay() sets the mode switch delay
                      on a Compaq Portable, based on the value of the
                      parameter enable.
  
  R

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -