::UnregisterClass("nsToolkitClass", nsToolkit::mDllInstance);
nsToolkit::nsUnregisterClass("nsToolkitClass", nsToolkit::mDllInstance);
BOOL APIENTRY DllMain(  HINSTANCE hModule,                         DWORD reason,                         LPVOID lpReserved ){    switch( reason ) {        case DLL_PROCESS_ATTACH:            nsToolkit::mDllInstance = hModule;            //            // register the internal window class            //            WNDCLASS wc;            wc.style            = CS_GLOBALCLASS;            wc.lpfnWndProc      = nsToolkit::WindowProc;            wc.cbClsExtra       = 0;            wc.cbWndExtra       = 0;            wc.hInstance        = nsToolkit::mDllInstance;            wc.hIcon            = NULL;            wc.hCursor          = NULL;            wc.hbrBackground    = NULL;            wc.lpszMenuName     = NULL;            wc.lpszClassName    = "nsToolkitClass";            VERIFY(::RegisterClass(&wc));            //            // Set flag of nsToolkit::mIsNT due to using Unicode API.            //            OSVERSIONINFO osversion;            ::ZeroMemory(&osversion, sizeof(OSVERSIONINFO));            osversion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);            ::GetVersionEx(&osversion);            nsToolkit::mIsNT = (osversion.dwPlatformId == VER_PLATFORM_WIN32_NT) ? PR_TRUE : PR_FALSE;            break;        case DLL_THREAD_ATTACH:            break;            case DLL_THREAD_DETACH:            break;            case DLL_PROCESS_DETACH:            //VERIFY(::UnregisterClass("nsToolkitClass", nsToolkit::mDllInstance));            ::UnregisterClass("nsToolkitClass", nsToolkit::mDllInstance);            break;    }    return TRUE;}