case IDC_EXPORTDEFS: { cDefinitionExporter exporter; exporter.generate("categories.db"); } break;
bool handleMenuSelect( unsigned int id ){	bool result = true;	cUOSocket* mSock;	unsigned int i;	switch ( id )	{	case IDC_EXIT:		Server::instance()->cancel();		if ( canClose )			DestroyWindow( mainWindow );		break;	case ID_HELP_ABOUT:		DialogBox( appInstance, MAKEINTRESOURCE( IDD_DIALOGABOUT ), mainWindow, ( DLGPROC ) AboutDialog );		break;	case ID_HELP_WOLFPACKHOMEPAGE:		ShellExecute( mainWindow, "open", "http://www.wpdev.org", 0, 0, SW_NORMAL );		break;	case ID_RELOAD_ACCOUNTS:		Server::instance()->queueAction( RELOAD_ACCOUNTS );		break;	case ID_RELOAD_PYTHON:		Server::instance()->queueAction( RELOAD_PYTHON );		break;	case ID_RELOAD_SCRIPTS:		Server::instance()->queueAction( RELOAD_SCRIPTS );		break;	case ID_RELOAD_CONFIGURATION:		Server::instance()->queueAction( RELOAD_CONFIGURATION );		break;	case ID_SERVER_SAVEWORLD:		Server::instance()->queueAction( SAVE_WORLD );		break;	case ID_SERVER_LISTUSERS:		// We simply do our thread safety manually here		Network::instance()->lock();		// Generate a list of Users		mSock = Network::instance()->first();		i = 0;		for ( mSock = Network::instance()->first(); mSock; mSock = Network::instance()->next() )		{			if ( mSock->player() )				Console::instance()->send( QString( "%1) %2 [%3]\n" ).arg( ++i ).arg( mSock->player()->name() ).arg( QString::number( mSock->player()->serial(), 16 ) ) );		}		Network::instance()->unlock();		Console::instance()->send( tr( "Total Users Online: %1\n" ).arg( i ) );		break;	default:		result = false;	}	return result;}