extern "C" __declspec(dllexport) void GetData(char* name, char* description, char* updateurl) { std::stringstream ss_desc; ss_desc << "Injects " << MODULE << " (" << BUILD_STR << ") into the Broodwar process.\r\n\r\n" << "Version " << BWAPI_VER << " for Starcraft " << STARCRAFT_VER << ".\r\n" << "Check for updates at " << BWAPI_HOME_URL << " \r\n\r\n" << "Created by the BWAPI Project Team."; strcpy(name, GetPluginName().substr(0, 64).c_str()); strcpy(description, ss_desc.str().substr(0, 512).c_str()); strcpy(updateurl, ""); }
static void FindFilterStrings(int enableKeywordFiltering, int current, HWND hWndParent, const OptionsPageData *page) { TCHAR pluginName[MAX_PATH]; HWND hWnd = 0; if (enableKeywordFiltering) { if (current) hWnd = page->hwnd; else { hWnd = CreateDialogIndirectParamA(page->hInst, page->pTemplate, hWndParent, page->dlgProc, page->dwInitParam); //create the options dialog page so we can parse it ShowWindow(hWnd, SW_HIDE); //make sure it's hidden } } DWORD key = GetPluginPageHash(page); //get the plugin page hash char *temp = GetPluginNameByInstance(page->hInst); GetDialogStrings(enableKeywordFiltering, key, GetPluginName(page->hInst, pluginName, SIZEOF(pluginName)), hWnd, page->ptszGroup, page->ptszTitle, page->ptszTab, _A2T(temp)); if (enableKeywordFiltering && !current) DestroyWindow(hWnd); //destroy the page, we're done with it }
static void FindFilterStrings(int enableKeywordFiltering, int current, HWND hWndParent, const OptionsPageData *page) { HWND hWnd = 0; if (enableKeywordFiltering) { if (current) hWnd = page->getHwnd(); else { hWnd = CreateOptionWindow(page, hWndParent); ShowWindow(hWnd, SW_HIDE); // make sure it's hidden } } DWORD key = GetPluginPageHash(page); // get the plugin page hash TCHAR pluginName[MAX_PATH]; char *temp = GetPluginNameByInstance(page->getInst()); GetDialogStrings(enableKeywordFiltering, key, GetPluginName(page->getInst(), pluginName, _countof(pluginName)), hWnd, page->ptszGroup, page->ptszTitle, page->ptszTab, _A2T(temp)); if (enableKeywordFiltering && !current) DestroyWindow(hWnd); // destroy the page, we're done with it }