This documentation is archived and is not being maintained.

How Can I Debug Windows API Functions?

Updated: August, 2010

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not applyTopic does not apply

Native only

Topic does not apply

Standard

Topic does not applyTopic does not apply

Native only

Topic does not apply

Pro and Team

Topic does not applyTopic does not apply

Native only

Topic does not apply

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

If you want to debug a Windows API function with NT symbols loaded, you need to do the following.

To set a breakpoint on a Windows API function with NT symbols loaded

  • Enter the the function name along with the name of the DLL where the function resides. In 32-bit code, use the decorated form of the function name. To set a breakpoint on MessageBeep, for example, you must enter:

    {,,USER32.DLL}_MessageBeep@4
    

    To obtain the decorated name, see Viewing Decorated Names..

Date

History

Reason

August, 2010

Updated for 64-bit and added link to decorated name documentation.

Customer feedback.

Show: