//load the icon
g_hIcon = (HICON)LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_DISPLAYICON));
//initilize the application class, and set the global window handle
UnregisterClass(_T("无线城市"), g_hInst);
InitilizeClasses();
g_hWnd = NULL;
break;
case DLL_PROCESS_DETACH:
// The DLL is being unloaded by a given process. Do any
// per-process clean up here, such as undoing what was done in
// DLL_PROCESS_ATTACH. The return value is ignored.
if (ptli->fEnabled==0)
return NULL; //Return NULL if we are not enabled.
//g_hInst = ptli->hinstDLL;
//load the icon
//g_hIcon = (HICON)LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_ICON1));
// attach our winproc to the newly created window
SetWindowLong(g_hWnd, GWL_WNDPROC, (LONG) WndProc);
//display the window
ShowWindow (g_hWnd, SW_SHOWNORMAL);
UpdateWindow (g_hWnd) ;
return g_hWnd;
}
/*************************************************************************/
/* Create and register our window class for the today item */
/*************************************************************************/
INT InitilizeClasses()
{
WNDCLASS wc;
memset(&wc, 0, sizeof(wc));
SETUP_API codeINSTALL_INIT
Install_Init(
HWND hwndParent,
BOOL fFirstCall, // is this the first time this function is being called?
BOOL fPreviouslyInstalled,
LPCTSTR pszInstallDir
)
{
HWND hWnd = FindWindow(NULL,_T("FCity.exe"));