Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

Do windows handles remain 32 bits in x64?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
COM Developer - 07 Sep 2005 17:00 GMT
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?
COM Developer - 07 Sep 2005 17:33 GMT
Clarification:

Using VS.NET 2005 to produce 64 bit binaries.

> 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.
[quoted text clipped - 5 lines]
>  Is this a guarantee on x64?  If not, how can Microsoft’s picture object
> continue to work?
Mikhail Arkhipov (Microsoft) - 07 Sep 2005 19:10 GMT
On 9/7/05 9:33, in article
20510371-415C-4482-A251-DF384CA32468@microsoft.com, "COM Developer"
<COMDeveloper@discussions.microsoft.com> wrote:

> Clarification:
>
[quoted text clipped - 9 lines]
>>  Is this a guarantee on x64?  If not, how can Microsoft¹s picture object
>> continue to work?

AFAIK, yes, handles are still 32 bits. This guarantees that 32-bit app can
still send messages to 64 bit app window and OLE/RPC (or at least parts of
it) works across applications with different bitness.

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.