home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdisk.zip / VDD / PIOINIT.LST < prev    next >
File List  |  1993-02-01  |  10KB  |  107 lines

  1. PIOINIT.C                                                                                      02/01/93 10:39:41     Page     1
  2.                                       * * * * *   P R O L O G   * * * * *
  3.  
  4.  Compiler . . . . . . . . . . . . : 10G2996/10G3293 IBM C Set/2 V1.0
  5.  Command options:
  6.     Program name. . . . . . . . . : PIOINIT.C
  7.     Object name . . . . . . . . . : PIOINIT.obj
  8.     Listing name. . . . . . . . . : PIOINIT.lst
  9.     Compiler options. . . . . . . : /C+  /Fa- /Fc- /Fd- /Fl- /Fm- /Fo+ /Gd- /Ge- /Gf- /Gh- /Gm- /Gn- /Gp- /Gr- /Gs- /Gt- /Gw- 
  10.                                   : /J+  /Ka- /Kb- /Kc- /Ke- /Kf- /Kg- /Ki- /Ko- /Kp- /Kr- /Kt- /Kx- /L-  /La- /Le- /Lf- /Li- 
  11.                                   : /Lj- /Ls+ /Lx- /O-  /P-  /Pc- /Pd- /Q-  /Sd- /Sh- /Sn- /Sr- /Ss- /Ti- 
  12.                                   : /Mp  /Re  /Sm  /Sp4  /G3  /W3  /H255  /Lp66  /Sg-  /Sq-  /N  
  13.                                   : /I  
  14.                                   : /Lt 
  15.                                   : /Lu 
  16.                                   : /B  
  17.                                   : /V  
  18. PIOINIT.C                                                                                      02/01/93 10:39:41     Page     2
  19.                                           * * * * *   S O U R C E   * * * * *
  20.  
  21.  LINE  STMT                                                                                                       SEQNBR INCNO
  22.              *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9.......*
  23.     1       |/*   file pioinit.c  */                                                                           |      1           
  24.     2       |                                                                                                  |      2           
  25.     3       |#pragma title("pioinit.c")                                                                        |      3           
  26.     4       |                                                                                                  |      4           
  27.     5       |/****************************************************************/                                |      5           
  28.     6       |/*  sample parallel port VDD                                    */                                |      6           
  29.     7       |/****************************************************************/                                |      7           
  30.     8       |                                                                                                  |      8           
  31.     9       |#include "mvdm.h"                       /* VDH services, etc.   */                                |      9           
  32.    10       |#include "pio.h"                        /* PIO  data defines    */                                |     10           
  33.    11       |                                                                                                  |     11           
  34.    12       |#pragma data_seg(CINIT)                                                                           |     12           
  35.    13       |                                                                                                  |     13           
  36.    14       |#pragma data_seg(CSWAP_DATA)                                                                      |     14           
  37.    15       |extern  SZ      szProplpt1timeout;                                                                |     15           
  38.    16       |                                                                                                  |     16           
  39.    17       |#pragma alloc_text(CINIT_TEXT,PIOInit,PIO_PDDProc)                                                |     17           
  40.    18       |                                                                                                  |     18           
  41.    19       |/* init entry point called by system at load time */                                              |     19           
  42.    20       |                                                                                                  |     20           
  43.    21       |BOOL EXPENTRY PIOInit(PSZ psz)         /* PIO VDDInit               */                            |     21           
  44.    22       |{                                                                                                 |     22           
  45.    23       |                                                                                                  |     23           
  46.    24       |    /* Register a VDM termination handler entry point*/                                           |     24           
  47.    25       |                                                                                                  |     25           
  48.    26       |    if ((VDHInstallUserHook((ULONG)VDM_TERMINATE,                                                 |     26           
  49.    27     1 |                            (PUSERHOOK)PIOTerminate)) == 0)                                       |     27           
  50.    28     2 |        return 0;          /* return FALSE if VDH call failed */                                  |     28           
  51.    29       |                                                                                                  |     29           
  52.    30       |    /* Register a VDM creation handler entry point */                                             |     30           
  53.    31       |                                                                                                  |     31           
  54.    32       |    if ((VDHInstallUserHook((ULONG)VDM_CREATE,                                                    |     32           
  55.    33     3 |                            (PUSERHOOK)PIOCreate)) == 0)                                          |     33           
  56.    34     4 |        return 0 ;        /* return FALSE if VDH call failed */                                   |     34           
  57.    35       |                                                                                                  |     35           
  58.    36       |    /* Get the entry point to the PDD */                                                          |     36           
  59.    37       |                                                                                                  |     37           
  60.    38     5 |    PPIOPDDProc = VDHOpenPDD(PDD_NAME, PIO_PDDProc);                                              |     38           
  61.    39       |                                                                                                  |     39           
  62.    40     6 |    return CTRUE;                                                                                 |     40           
  63.    41       |}                                                                                                 |     41           
  64.    42       |                                                                                                  |     42           
  65.    43       |/* entry point registered by VDHOpenPDD, called by the PDD            */                          |     43           
  66.    44       |                                                                                                  |     44           
  67.    45       |SBOOL VDDENTRY PIO_PDDProc(ulFunc,f16p1,f16p2)                                                    |     45           
  68.    46       |ULONG ulFunc;                                                                                     |     46           
  69.    47       |F16PVOID f16p1;                                                                                   |     47           
  70.    48       |F16PVOID f16p2;                                                                                   |     48           
  71.    49       |{                                                                                                 |     49           
  72.    50     7 |    return CTRUE;                                                                                 |     50           
  73.    51       |}                                                                                                 |     51           
  74.    52       |                                                                                                  |     52           
  75.                                     * * * * *   E N D   O F   S O U R C E   * * * * *
  76. pioinit.c                                                                                      02/01/93 10:39:41     Page     3
  77.                         * * * * *   I N C L U D E S   * * * * *
  78.  
  79. INCLUDE FILES  ---  FILE#   NAME
  80.                       1       D:\drvlib\VDD\test\MVDM.H
  81.                       2       D:\drvlib\VDD\test\BASEMAC.H
  82.                       3       D:\drvlib\VDD\test\BASEDEF.H
  83.                       4       D:\drvlib\VDD\test\OS2STD.H
  84.                       5       D:\ibmc\INCLUDE\STRING.H
  85.                       6       D:\drvlib\VDD\test\VDMPROP.H
  86.                       7       D:\drvlib\VDD\test\VDMM.H
  87.                       8       D:\drvlib\VDD\test\V8086.H
  88.                       9       D:\drvlib\VDD\test\VDOS.H
  89.                      10       D:\drvlib\VDD\test\VPIC.H
  90.                      11       D:\drvlib\VDD\test\VKBD.H
  91.                      12       D:\drvlib\VDD\test\VLPT.H
  92.                      13       D:\drvlib\VDD\test\VDMA.H
  93.                      14       D:\drvlib\VDD\test\VDMBIOS.H
  94.                      15       D:\drvlib\VDD\test\PIO.H
  95.  
  96.                         * * * * *   E N D   O F   I N C L U D E S   * * * * *
  97. pioinit.c                                                                                      02/01/93 10:39:41     Page     4
  98.                              * * * * *   M E S S A G E   S U M M A R Y   * * * * *
  99.  
  100.         Total            Informational(00)          Warning(10)          Error(30)            Severe Error(40)
  101.  
  102.           0                    0                        0                   0                        0
  103.  
  104.                         * * * * *   E N D   O F   M E S S A G E   S U M M A R Y   * * * * *
  105.  
  106.                              * * * * *   E N D   O F   C O M P I L A T I O N   * * * * *
  107.