DDK = Driver Developers Kit
Es una base de datos con recursos para los programadores de drivers pero hay que pagar. Tiene info técnica, conceptos, funciones, etc.
Acá te dejo la macro que puso Mek pero para VB:
Function LShiftWord(ByVal Word As Integer, ByVal C As Integer) As Integer
Dim dw&
dw = Word * (2 ^ C)
If dw And &H8000& Then
LShiftWord = CInt(dw And &H7FFF&) Or &H8000
Else
LShiftWord = dw And &HFFFF&
End If
End Function
Function CTL_CODE(DeviceType As Integer, Func As Integer, Method As Integer, Access As Integer) As Long
CTL_CODE = (LShiftWord(DeviceType, 16) Or LShiftWord(Access, 14) Or LShiftWord(Func, 2) Or Method)
End Function
Saludos.