FreeBASIC  0.91.0
tester.bas File Reference
#include "windows.bi"
#include "win/winioctl.bi"
#include "../fbportio.h"
Include dependency graph for tester.bas:

Go to the source code of this file.

Macros

#define INFO(message)   /* print __FUNCTION__ & "(): " & message */
 
#define APIFAILED(func)   /* print_winapi_error(__FUNCTION__, func) */
 

Functions

private sub print_winapi_error (byval_as_zstring_ptr parent, byval_as_zstring_ptr func)
 
private sub delete_service (byval_as_SC_HANDLE manager)
 
private sub stop_service (byval_as_SC_HANDLE manager)
 
private sub create_fbportio_sys ()
 
private sub create_service (byval_as_SC_HANDLE manager)
 
private sub start_service (byval_as_SC_HANDLE manager)
 
private sub access_driver (byval_as_HANDLE h, byval_as_DWORD code, byval_as_any_ptr pin, byval_as_uinteger insize, byval_as_any_ptr pout, byval_as_uinteger outsize)
 
private sub init_driver ()
 
private sub write_driver (byval_as_short port, byval_as_byte dat)
 
private sub read_driver (byval_as_short port, byval_as_byte_ptr pdat)
 

Variables

SC_HANDLE manager = OpenSCManager(NULL, NULL, GENERIC_ALL)
 

Macro Definition Documentation

#define APIFAILED (   func)    /* print_winapi_error(__FUNCTION__, func) */

Definition at line 10 of file tester.bas.

#define INFO (   message)    /* print __FUNCTION__ & "(): " & message */

Definition at line 9 of file tester.bas.

Function Documentation

private sub access_driver ( byval_as_HANDLE  h,
byval_as_DWORD  code,
byval_as_any_ptr  pin,
byval_as_uinteger  insize,
byval_as_any_ptr  pout,
byval_as_uinteger  outsize 
)

Definition at line 121 of file tester.bas.

Here is the caller graph for this function:

private sub create_fbportio_sys ( )

Definition at line 64 of file tester.bas.

private sub create_service ( byval_as_SC_HANDLE  manager)

Definition at line 80 of file tester.bas.

private sub delete_service ( byval_as_SC_HANDLE  manager)

Definition at line 31 of file tester.bas.

private sub init_driver ( )

Definition at line 138 of file tester.bas.

Here is the call graph for this function:

private sub print_winapi_error ( byval_as_zstring_ptr  parent,
byval_as_zstring_ptr  func 
)

Definition at line 12 of file tester.bas.

private sub read_driver ( byval_as_short  port,
byval_as_byte_ptr  pdat 
)

Definition at line 190 of file tester.bas.

private sub start_service ( byval_as_SC_HANDLE  manager)

Definition at line 105 of file tester.bas.

private sub stop_service ( byval_as_SC_HANDLE  manager)

Definition at line 48 of file tester.bas.

private sub write_driver ( byval_as_short  port,
byval_as_byte  dat 
)

Definition at line 180 of file tester.bas.

Variable Documentation

SC_HANDLE manager = OpenSCManager(NULL, NULL, GENERIC_ALL)

Definition at line 208 of file tester.bas.