Microsoft Knowledge Base Email Alertz

FIX: Error message when you use Query Designer in SQL Server 2005:Unable to find an entry point named 'GetWindowLongPtr' in 'user32.dll'

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 2428229 - Last Review: December 23, 2010 - Revision: 2.0

FIX: Error message when you use Query Designer in SQL Server 2005:"Unable to find an entry point named 'GetWindowLongPtr' in 'user32.dll'"

Hotfix download is availableHotfix Download Available
View and request hotfix downloads
Microsoft distributes Microsoft SQL Server 2005 Service Pack 3 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release.

On This Page

SYMPTOMS

Consider the following scenario. On a computer that is running SQL Server 2005, you perform one of the following actions:
  • You use the MDX Query Designer in SQL Server Management Studio (SSMS) to design a query against Analysis Services.
  • You use the MDX Query Designer in Business Intelligence Development Studio (BIDS) to design a query when you create a report.
In this scenario, the query designer may stop working. Additionally, you may receive an error message that resembles the following:

Unable to find an entry point named 'GetWindowLongPtr' in 'user32.dll'

When this problem occurs, BIDS or SSMS hangs (stops responding), and you have to force the program to close by using Task Manager.

Note This issue typically occurs when you run SQL Server 2005 on a Windows x64-based system.

CAUSE

The issue occurs because some assemblies are platform specific. However, the assemblies are reported as platform neutral.

RESOLUTION

Cumulative update information

SQL Server 2005 Service Pack 4

The fix for this issue was first released in Cumulative Update 1 for SQL Server 2005 Service Pack 4. For more information about this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2464079  (http://kbalertz.com/Feedback.aspx?kbNumber=2464079/ ) Cumulative update package 1 for SQL Server 2005 Service Pack 4
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release. Microsoft recommends that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2485757  (http://kbalertz.com/Feedback.aspx?kbNumber=2485757/ ) The SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 4 was released
Microsoft SQL Server 2005 hotfixes are created for specific SQL Server service packs. You must apply a SQL Server 2005 Service Pack 4 hotfix to an installation of SQL Server 2005 Service Pack 4. By default, any hotfix that is provided in a SQL Server service pack is included in the next SQL Server service pack.


The fix for this issue was first released in cumulative update package 12 for SQL Server 2005 Service Pack 3. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:
2345449  (http://kbalertz.com/Feedback.aspx?kbNumber=2345449/ ) Cumulative update package 12 for SQL Server 2005 Service Pack 3
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:
981356  (http://kbalertz.com/Feedback.aspx?kbNumber=981356/ ) The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 was released

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, visit the following Microsoft webpages:
Query Design Tools in Reporting Services (http://msdn.microsoft.com/en-us/library/ms345246(SQL.90).aspx)
GetWindowLong Function (http://msdn.microsoft.com/en-us/library/ms633584(VS.85).aspx)

APPLIES TO
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Service Pack 3
  • Microsoft SQL Server 2005 Service Pack 2
Keywords: 
kbautohotfix kbqfe kbhotfixserver kbfix KB2428229
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate