Contains some additional driver utilities in the mos core library
Marcel Sondaar
Public Domain
driverutil.bi | Contains some additional driver utilities in the mos core library |
MCQueryUtility | Event handler that simplifies syscommand_queryinterfaces calls Instantiate one instance of this class, then call the function for each interface that needs to be publicly exposed |
Variables | |
mHandles | internal variable containing the list of exposed interfaces |
mHandleCount | internal variable containing the amount of exposed interfaces |
Functions | |
AddInterface | Adds an interface to be exposed |
RemoveInterface | Removes an interface from the exposed list |
AnnounceDriver | Registers this driver as an endpoint. |
queryinterfaces | Handle the actual query message |
Event handler that simplifies syscommand_queryinterfaces calls Instantiate one instance of this class, then call the function for each interface that needs to be publicly exposed
Variables | |
mHandles | internal variable containing the list of exposed interfaces |
mHandleCount | internal variable containing the amount of exposed interfaces |
Functions | |
AddInterface | Adds an interface to be exposed |
RemoveInterface | Removes an interface from the exposed list |
AnnounceDriver | Registers this driver as an endpoint. |
queryinterfaces | Handle the actual query message |
Declare Sub AddInterface( ByVal interface As Integer )
Adds an interface to be exposed
interface | the ID of the interface, from DRIVERINTERFACES |
none
Declare Sub RemoveInterface( ByVal interface As Integer )
Removes an interface from the exposed list
interface | the ID of the interface, from DRIVERINTERFACES |
none
internal variable containing the list of exposed interfaces
mHandles As Integer Ptr
internal variable containing the amount of exposed interfaces
mHandleCount As Integer
Adds an interface to be exposed
Declare Sub AddInterface( ByVal interface As Integer )
Removes an interface from the exposed list
Declare Sub RemoveInterface( ByVal interface As Integer )
Registers this driver as an endpoint.
Declare Sub AnnounceDriver( ByVal deviceid As Integer )
Handle the actual query message
Declare Virtual Sub queryinterfaces ( ByVal channel As Byte Ptr )