| Platform SDK: Debugging and Error Handling | 
The following code cleans up all memory associated with symbol handling for the specified process, hProcess.
if (SymCleanup(hProcess))
{
    // SymCleanup returned success
}
else
{
    // SymCleanup failed
    error = GetLastError();
    printf("SymCleanup returned error : %d\n", error);
}