Platform SDK: Debugging and Error Handling

Unloading a Symbol Module

The following code unloads a symbol module referred to by the BaseOfDll module address.

if (SymUnloadModule(hProcess, BaseOfDll)
{
    // SymUnloadModule returned success
}
else
{
    // SymUnloadModule failed
    error = GetLastError();
    printf("SymUnloadModule returned error : %d\n", error);
}