The file Win32_PtrSafe.txt contains Windows API Declarations and Constants for Visual Basic (Updated for the 64-bit version of Microsoft Office 2010) provides declarations for Microsoft Visual Basic programmers who want to call Windows API routines. This file updates and replaces Win32API.txt to include calls to the 64-bit version of Microsoft Office 2010.
Versions of Microsoft® Office and Microsoft Visual Basic® for Applications (VBA) prior to Microsoft Office 2010 and Visual Basic for Applications 7.0 (VBA 7) included the file, Win32API.txt, which facilitated making calls to the Microsoft Windows API. With the addition of 64-bit support in Microsoft Office 2010, an update to this file is needed to support 64-bit API calls. Win32API_PtrSafe.txt is a new version of Win32API.txt that supports API calls on both 32-bit and 64-bit versions of Windows.
Win32API_PtrSafe.txt contains the following:
· 32-bit (x86) and 64-bit (x64) compatible Declare statements for the Windows API functions that were included in the original Win32API.txt file.
· Global constant declarations for the constants that the provided Declare statements use.
· Type declarations for the user-defined types (structures) that the provided Declare statements use.
The download “Office2010Win32API_PtrSafe.exe” installs “Win32API_PtrSafe.txt”, “Using Win32API_PtrSave.xps” and “UsingWin32API_PtrSafe.docx.” The latter two files contain important information about using the contents of Win32API_PtrSafe.txt when writing VBA code.
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Declare API type 64-bit VB VBA Win32API PtrSafe Version Macro