Platform SDK: Debugging and Error Handling

SymUnloadModule

The SymUnloadModule function unloads the symbol table.

This function is implemented as a wrapper that calls SymUnloadModule64. For more information, see New 64-bit Functions.

BOOL SymUnloadModule(
  HANDLE hProcess, 
  DWORD BaseOfDll  
);

For SymUnloadModule64, the parameter list is as follows.

BOOL SymUnloadModule64(
  HANDLE hProcess, 
  DWORD64 BaseOfDll  
);

Parameters

hProcess
[in] Handle to the process that was originally passed to the SymInitialize function.
BaseOfDll
[in] Specifies the base address of the module that is unloaded.

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.

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