Platform SDK: Debugging and Error Handling

SymCleanup

The SymCleanup function deallocates all resources associated with the process handle.

BOOL SymCleanup(
  HANDLE hProcess  
);

Parameters

hProcess
[in] Handle to the process that was originally passed to the SymInitialize function.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

This function frees all resources associated with the process handle. Failure to call this function causes memory and resource leaks in the calling application

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Dbghelp.h.
  Library: Use Dbghelp.lib.

See Also

Debug Help Library Overview, DbgHelp Functions, SymInitialize