Unloading a Symbol Module

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

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

Loading a Symbol Module