Can any one help me with this? The following is a piece of C++ code is a function that is designed to wait as a hook for a window that is created with the title "Toolbar" and then forcefully rename it to "NukeNCB". Can anyone help translate this into viable Visual Basic Code?
Code:LRESULT CALLBACK FindToolbarProc(int nCode, WPARAM wParam, LPARAM lParam) { // watch window creation: if (nCode == HCBT_CREATEWND) { CBT_CREATEWND* pcw = (CBT_CREATEWND*)lParam; // watch for toolbar creation, set toolbar name if (pcw->lpcs->lpszName && 0 != strstr(pcw->lpcs->lpszName, "Toolbar")) { strcpy((char*)pcw->lpcs->lpszName, "NukeNCB"); } } return CallNextHookEx(g_hkCBT, nCode, wParam, lParam); }


Reply With Quote