Share via


SchedLogGetThreadProgramCounter

This function retrieves the program counter for the specified thread. This function also retrieves the module and function names.

DWORD SchedLogGetThreadProgramCounter(
  DWORD dwThreadID, 
  LPCSTR* ppszThreadModuleName, 
  LPCSTR* ppszThreadFunctionName 
);

Parameters

  • dwThreadID
    [in] Thread identifier received from an OAL logging function, for example, LogCreateThread.
  • ppszThreadModuleName
    [out] Pointer to a string pointer that stores the module name. If this parameter is NULL, the module name is not available.
  • ppszThreadFunctionName
    [out] Pointer to a string pointer that stores the function name. If this parameter is NULL, the function name is not available. Thread names for static functions are not supported.

Return Values

If this function succeeds, it returns the program counter of the specified thread. If this function fails, it returns zero.

Remarks

This function returns pointers that are only valid within the scheduler logging function callbacks, for example, LogCreateProcess.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Schedlog.h.
Link Library: Schedlog.lib.

See Also

schedlog Component | Hardware-Assisted Profiling

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.