bitwise operator in VB

  • Thread starter Thread starter rocio
  • Start date Start date
R

rocio

I understand that VB6 does not have operators to perform bitwise functions
(sorry this one is for VB6....someone here might help me on this).

I need to define IOCTL_HAL_GET_DEVICEID from a VB6 program, because I want
to obtain Serial Number of a connected Pocket PC to my computer. I found a
way of doing this using C# ......... and the definiton for
IOCTL_HAL_GET_DEVICEID in C# is:

private static Int32 IOCTL_HAL_GET_DEVICEID =
((FILE_DEVICE_HAL) << 16) | ((FILE_ANY_ACCESS) << 14)
| ((21) << 2) | (METHOD_BUFFERED);any ideas of how I can tranbslate
this to VB6? Or better what is the exact value of IOCTL_HAL_GET_DEVICEID? I
do not seem to find it anywhere.
 
I don't have the constant handy, but the scientific calculator in Windows
can do the operations easily.
 
Back
Top