I don't have the constant handy, but the scientific calculator in Windows
can do the operations easily.
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
"rocio" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>