GetWinDebugInfo

3.1

  BOOL GetWinDebugInfo(lpwdi, flags)    
  WINDEBUGINFO FAR* lpwdi; /* address of WINDEBUGINFO structure */
  UINT flags; /* flags for returned information */

The GetWinDebugInfo function retrieves current system-debugging information for the debugging version of the Windows 3.1 operating system.

Parameters

lpwdi

Points to a WINDEBUGINFO structure that is filled with debugging information. The WINDEBUGINFO structure has the following form:

typedef struct tagWINDEBUGINFO {
    UINT    flags;
    DWORD   dwOptions;
    DWORD   dwFilter;
    char    achAllocModule[8];
    DWORD   dwAllocBreak;
    DWORD   dwAllocCount;
} WINDEBUGINFO;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

flags

Specifies which members of the WINDEBUGINFO structure should be filled in. This parameter can be one or more of the following values:

Value Meaning

WDI_OPTIONS Fill in the dwOptions member of WINDEBUGINFO.
WDI_FILTER Fill in the dwFilter member of WINDEBUGINFO.
WDI_ALLOCBREAK Fill in the achAllocModule, dwAllocBreak, and dwAllocCount members of WINDEBUGINFO.

Return Value

The return value is nonzero if the function is successful. It is zero if the pointer specified in the lpwdi parameter is invalid or if the function is not called in the debugging version of Windows 3.1.

Comments

The flags member of the returned WINDEBUGINFO structure is set to the values supplied in the flags parameter of this function.

See Also

SetWinDebugInfo