Apply a few code analysis corrections to common classes
Replace LP(C)TSTR and DWORD arguments in common classes
Add static module handle to Exception to allow for DLL-based resources and prevent FormatMessage() from failing if no messages