|
OpenCBM
|
Program to handle the parallel port for the OPENCBM driver. More...
#include <windows.h>#include <stdio.h>#include "i_opencbm.h"#include <setupapi.h>#include <cfgmgr32.h>#include <initguid.h>#include <ntddpar.h>#include "debug.h"#include "libmisc.h"Go to the source code of this file.
Data Structures | |
| struct | SETUPAPI |
Macros | |
| #define | DBG_USERMODE |
| #define | DBG_PROGNAME "OPENCBM-XA1541.DLL" |
| #define | GET_PROC_ADDRESS(_xxx) |
Typedefs | |
| typedef CMAPI CONFIGRET(* | P_CM_Get_Device_ID_ExA )(IN DEVINST dnDevInst, OUT PTCHAR Buffer, IN ULONG BufferLen, IN ULONG ulFlags, IN HMACHINE hMachine) |
| typedef WINSETUPAPI BOOL(* | P_SetupDiGetDeviceInfoListDetailA )(IN HDEVINFO DeviceInfoSet, OUT PSP_DEVINFO_LIST_DETAIL_DATA DeviceInfoSetDetailData) |
| typedef struct SETUPAPI * | PSETUPAPI |
Functions | |
| VOID | CbmParportRestart (VOID) |
| Restart the parallel port. More... | |
| #define DBG_PROGNAME "OPENCBM-XA1541.DLL" |
| #define DBG_USERMODE |
| #define GET_PROC_ADDRESS | ( | _xxx | ) |
| typedef CMAPI CONFIGRET(* P_CM_Get_Device_ID_ExA)(IN DEVINST dnDevInst, OUT PTCHAR Buffer, IN ULONG BufferLen, IN ULONG ulFlags, IN HMACHINE hMachine) |
| typedef WINSETUPAPI BOOL(* P_SetupDiGetDeviceInfoListDetailA)(IN HDEVINFO DeviceInfoSet, OUT PSP_DEVINFO_LIST_DETAIL_DATA DeviceInfoSetDetailData) |
| VOID CbmParportRestart | ( | VOID | ) |
Restart the parallel port.
This function tries to restart the parallel port, so that registry changes can take effect.
Definition at line 143 of file parport.c.
References SETUPAPI::CM_Get_Device_ID_ExA_p, DBG_ASSERT, DBG_ERROR, DBG_PREFIX, DBG_SUCCESS, DBGDO, FUNC_ENTER, FUNC_LEAVE, SETUPAPI::HandleSetupApiDll, and SETUPAPI::SetupDiGetDeviceInfoListDetailA_p.
1.8.8