Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : PIOINIT.C

 
Output of file : PIOINIT.C contained in archive : DD_IN_C.ZIP
/* file pioinit.c */

#pragma title("pioinit.c")

/****************************************************************/
/* sample parallel port VDD */
/****************************************************************/

#include /* VDH services, etc. */
#include "pio.h" /* PIO data defines */

#pragma BEGIN_INIT_DATA

#pragma END_INIT_DATA

#pragma BEGIN_SWAP_DATA
extern SZ szProplpt1timeout;
#pragma END_SWAP_DATA

#pragma BEGIN_INIT_CODE

/* init entry point called by system at load time */

BOOL EXPENTRY PIOInit(psz) /* PIO VDDInit */
PSZ psz; /* pointer to config string */
{

/* Register a VDM termination handler entry point*/

if ((VDHInstallUserHook((ULONG)VDM_TERMINATE,
(PUSERHOOK)PIOTerminate)) == 0)
return FALSE; /* return FALSE if VDH call failed */

/* Register a VDM creation handler entry point */

if ((VDHInstallUserHook((ULONG)VDM_CREATE,
(PUSERHOOK)PIOCreate)) == 0)
return FALSE; /* return FALSE if VDH call failed */

/* Get the entry point to the PDD */

PPIOPDDProc = VDHOpenPDD(PDD_NAME, PIO_PDDProc);

return TRUE;
}

/* entry point registered by VDHOpenPDD, called by the PDD */

SBOOL VDDENTRY PIO_PDDProc(ulFunc,f16p1,f16p2)
ULONG ulFunc;
F16PVOID f16p1;
F16PVOID f16p2;
{
return TRUE;
}

#pragma END_INIT_CODE


  3 Responses to “Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : PIOINIT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/