Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > HANDLEs in x64, are they really ever 64 bits?

Reply
Thread Tools

HANDLEs in x64, are they really ever 64 bits?

 
 
=?Utf-8?B?Q09NIERldmVsb3Blcg==?=
Guest
Posts: n/a
 
      09-07-2005
Microsoft-

I have a few COM interfaces which use the OLE_HANDLE type to pass HWNDs or
HBITMAPs. Several Microsoft defined interfaces also use OLE_HANDLE (e.g.
IPicture::get_Handle), but in VS.NET 2005, OLE_HANDLE is still 32 bits!

Wondering about this, I created a simple experiment where I create very
large numbers of windows or bitmaps. In both cases, I never received a
handle which could not be represented in 32 bits (never exceeded 0xFFFFFFFF).
Is this a guarantee on x64? If not, how can Microsoft’s picture object
continue to work? Is all the hoopla about using (for example)
SetWindowLongPtr really just for IA developers? Please clarify.

Thanks,

R.

 
Reply With Quote
 
 
 
 
Andre Da Costa
Guest
Posts: n/a
 
      09-07-2005
Great place to post this question:
microsoft.public.vsnet.general

--
Andre
Extended64 | http://www.extended64.com
Blog | http://www.extended64.com/blogs/andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
"COM Developer" <COM > wrote in message
news:B2D99CF3-CB2F-4DFA-BC08-...
> Microsoft-
>
> I have a few COM interfaces which use the OLE_HANDLE type to pass HWNDs or
> HBITMAPs. Several Microsoft defined interfaces also use OLE_HANDLE (e.g.
> IPicture::get_Handle), but in VS.NET 2005, OLE_HANDLE is still 32 bits!
>
> Wondering about this, I created a simple experiment where I create very
> large numbers of windows or bitmaps. In both cases, I never received a
> handle which could not be represented in 32 bits (never exceeded
> 0xFFFFFFFF).
> Is this a guarantee on x64? If not, how can Microsoft’s picture object
> continue to work? Is all the hoopla about using (for example)
> SetWindowLongPtr really just for IA developers? Please clarify.
>
> Thanks,
>
> R.
>


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q09NIERldmVsb3Blcg==?=
Guest
Posts: n/a
 
      09-07-2005
SetWindowLongPtr is of course irrelevant (and still needed). Still need the
rest of the question answered.


"COM Developer" wrote:

> Microsoft-
>
> I have a few COM interfaces which use the OLE_HANDLE type to pass HWNDs or
> HBITMAPs. Several Microsoft defined interfaces also use OLE_HANDLE (e.g.
> IPicture::get_Handle), but in VS.NET 2005, OLE_HANDLE is still 32 bits!
>
> Wondering about this, I created a simple experiment where I create very
> large numbers of windows or bitmaps. In both cases, I never received a
> handle which could not be represented in 32 bits (never exceeded 0xFFFFFFFF).
> Is this a guarantee on x64? If not, how can Microsoft’s picture object
> continue to work? Is all the hoopla about using (for example)
> SetWindowLongPtr really just for IA developers? Please clarify.
>
> Thanks,
>
> R.
>

 
Reply With Quote
 
=?Utf-8?B?Q09NIERldmVsb3Blcg==?=
Guest
Posts: n/a
 
      09-07-2005
Will do, Thanks.

"Andre Da Costa" wrote:

> Great place to post this question:
> microsoft.public.vsnet.general
>
> --
> Andre
> Extended64 | http://www.extended64.com
> Blog | http://www.extended64.com/blogs/andre
> http://spaces.msn.com/members/adacosta
> FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
> "COM Developer" <COM > wrote in message
> news:B2D99CF3-CB2F-4DFA-BC08-...
> > Microsoft-
> >
> > I have a few COM interfaces which use the OLE_HANDLE type to pass HWNDs or
> > HBITMAPs. Several Microsoft defined interfaces also use OLE_HANDLE (e.g.
> > IPicture::get_Handle), but in VS.NET 2005, OLE_HANDLE is still 32 bits!
> >
> > Wondering about this, I created a simple experiment where I create very
> > large numbers of windows or bitmaps. In both cases, I never received a
> > handle which could not be represented in 32 bits (never exceeded
> > 0xFFFFFFFF).
> > Is this a guarantee on x64? If not, how can Microsoft’s picture object
> > continue to work? Is all the hoopla about using (for example)
> > SetWindowLongPtr really just for IA developers? Please clarify.
> >
> > Thanks,
> >
> > R.
> >

>
>

 
Reply With Quote
 
Tony Sperling
Guest
Posts: n/a
 
      09-07-2005
I think that perhaps your experiment asks the wrong questions. As I
understand it, the API requires you to provide room for 64bit wide
arguments, and stuff - that is no guarantee that anything has to actually
scale to that size, if you go asking for credentials, it could be anything,
and it could be a long time before you see a 64bit number from a Handle.

The number of Handles has to be limited in reality, but you are in an 64bit
environment and handles are used in all sorts of situations, so to ! risk
breaking compatibility, you are required to dance to the tune???

It's been a long time since I did any of that stuff, but I think I can
remember sort of the same discussion arising when we went 32bit. Feel free
to scorn me, should I be wrong.

Tony. . .


"COM Developer" <> wrote in message
news:16B1ECEB-8F53-45DE-BB44-...
> SetWindowLongPtr is of course irrelevant (and still needed). Still need
> the
> rest of the question answered.
>
>
> "COM Developer" wrote:
>
>> Microsoft-
>>
>> I have a few COM interfaces which use the OLE_HANDLE type to pass HWNDs
>> or
>> HBITMAPs. Several Microsoft defined interfaces also use OLE_HANDLE (e.g.
>> IPicture::get_Handle), but in VS.NET 2005, OLE_HANDLE is still 32 bits!
>>
>> Wondering about this, I created a simple experiment where I create very
>> large numbers of windows or bitmaps. In both cases, I never received a
>> handle which could not be represented in 32 bits (never exceeded
>> 0xFFFFFFFF).
>> Is this a guarantee on x64? If not, how can Microsoft's picture object
>> continue to work? Is all the hoopla about using (for example)
>> SetWindowLongPtr really just for IA developers? Please clarify.
>>
>> Thanks,
>>
>> R.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Question about file handles and windows handles @ Windows Operating Systems eino Python 1 05-08-2007 09:14 PM
They are gaming Hays, Schwartkopff adn Mclean today, which means they are ealy doing something else, but I have to figure that yet. The game is fixed, how can the company ever win? profpsychoticmrs@aol.com Computer Support 0 03-08-2006 04:24 PM
Important question to Seeby about new Orcon plans - are they really as good as they seem? MarkH NZ Computing 6 08-18-2005 10:20 AM
don't you ever, don't you ever, lower yourself, forgetting all your standards Jason ASP .Net Web Controls 0 07-06-2004 12:50 PM
they turn, they power, they make nice pics Keith and Jenn Z. Digital Photography 0 09-21-2003 04:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57