OpenCBM
|
VDD for accessing the driver from DOS. More...
#include <windows.h>
#include <vddsvc.h>
#include <opencbm.h>
#include "debug.h"
#include "vdd.h"
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | DBG_USERMODE |
#define | DBG_DLL |
#define | DBG_PROGNAME "OPENCBMVDD.DLL" |
#define | DBG_IS_DEBUG_C |
#define | EXTERN __declspec(dllexport) |
Functions | |
EXTERN BOOL | VDDInitialize (IN HANDLE Module, IN DWORD Reason, IN LPVOID Reserved) |
VDD initialization und unloading. More... | |
EXTERN VOID | VDDRegisterInit (VOID) |
RegisterModule processing. More... | |
EXTERN VOID | VDDDispatch (VOID) |
RegisterModule processing. More... | |
Variables | |
HANDLE | vdd_handle |
#define DBG_IS_DEBUG_C |
#define DBG_PROGNAME "OPENCBMVDD.DLL" |
#define EXTERN __declspec(dllexport) |
VOID VDDDispatch | ( | VOID | ) |
RegisterModule processing.
This function is called when the DOS portion calls the DISPATCHCALL function.
Definition at line 148 of file vdd.c.
References CBM_FILE, DBG_ERROR, DBG_PREFIX, FC_CLEAR_EOI, FC_CLOSE, FC_DEVICE_STATUS, FC_DRIVER_CLOSE, FC_DRIVER_OPEN, FC_EXEC_COMMAND, FC_GET_DRIVER_NAME, FC_GET_EOI, FC_IDENTIFY, FC_IDENTIFY_XP1541, FC_IEC_GET, FC_IEC_POLL, FC_IEC_RELEASE, FC_IEC_SET, FC_IEC_SETRELEASE, FC_IEC_WAIT, FC_LISTEN, FC_OPEN, FC_PP_READ, FC_PP_WRITE, FC_RAW_READ, FC_RAW_WRITE, FC_RESET, FC_TALK, FC_UNLISTEN, FC_UNTALK, FC_UPLOAD, FC_VDD_INSTALL_IOHOOK, FC_VDD_UNINSTALL_IOHOOK, FC_VDD_USLEEP, FUNC_ENTER, FUNC_LEAVE, vdd_cbmfile_get(), vdd_clear_eoi(), vdd_close(), vdd_device_status(), vdd_driver_close(), vdd_driver_open(), vdd_exec_command(), vdd_get_driver_name(), vdd_get_eoi(), vdd_identify(), vdd_identify_xp1541(), vdd_iec_get(), vdd_iec_poll(), vdd_iec_release(), vdd_iec_set(), vdd_iec_setrelease(), vdd_iec_wait(), vdd_install_iohook(), vdd_listen(), vdd_open(), vdd_pp_read(), vdd_pp_write(), vdd_raw_read(), vdd_raw_write(), vdd_reset(), vdd_talk(), vdd_uninstall_iohook(), vdd_unlisten(), vdd_untalk(), vdd_upload(), and vdd_usleep().
BOOL VDDInitialize | ( | IN HANDLE | Module, |
IN DWORD | Reason, | ||
IN LPVOID | Reserved | ||
) |
VDD initialization und unloading.
This function is called whenever the VDD is loaded or unloaded. It ensures that the driver is loaded to be able to call its functions.
Module | Handle of the module; this is not used. |
Reason | DLL_PROCESS_ATTACH if the DLL is loaded, DLL_PROCESS_DETACH if it is unloaded. |
Reserved | Not used. |
Definition at line 94 of file vdd.c.
References DBG_ASSERT, DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_BOOL, vdd_cbmfile_closeall(), vdd_handle, and vdd_uninstall_iohook_internal().
VOID VDDRegisterInit | ( | VOID | ) |
RegisterModule processing.
This function is called when the DOS portion calls the REGISTERMODULE function.
Definition at line 132 of file vdd.c.
References FUNC_ENTER, and FUNC_LEAVE.
HANDLE vdd_handle |
The handle of the vdd (for being accessed by the I/O hook install functions
Definition at line 54 of file vdd.c.
Referenced by vdd_install_iohook(), vdd_uninstall_iohook_internal(), and VDDInitialize().