PC Review


Reply
Thread Tools Rate Thread

bitwise operator in VB

 
 
rocio
Guest
Posts: n/a
 
      4th Dec 2003
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.


 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      4th Dec 2003
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.
>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      4th Dec 2003
&H1010054

"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.
>
>



 
Reply With Quote
 
rocio
Guest
Posts: n/a
 
      4th Dec 2003
Tx!!!!!!

"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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitwise-or operator used on a sign-extended operand Dylan Parry Microsoft C# .NET 2 5th Jul 2006 03:42 PM
[c#] long and bitwise & operator seb666fr2@yahoo.fr Microsoft Dot NET 4 11th Jan 2006 10:13 AM
Bitwise Operator ~ Help =?Utf-8?B?SExvbmc=?= Microsoft Dot NET 3 30th Oct 2005 10:12 AM
Bitwise complement operator in VB.NET like in C#? Bill Dee Microsoft VB .NET 5 4th May 2004 06:55 PM
Question of The bitwise or operator ±èÀçȲ Microsoft C# .NET 1 31st Aug 2003 12:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:18 AM.