2004-06-18 20:43:44 +00:00
|
|
|
/*
|
2009-08-15 11:14:07 +00:00
|
|
|
* PROJECT: ReactOS Software Control Panel
|
|
|
|
* FILE: dll/cpl/appwiz/appwiz.c
|
|
|
|
* PURPOSE: ReactOS Software Control Panel
|
|
|
|
* PROGRAMMERS: Gero Kuehn (reactos.filter@gkware.com)
|
|
|
|
* Dmitry Chapyshev (dmitry@reactos.org)
|
2004-06-18 20:43:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "appwiz.h"
|
|
|
|
|
2009-08-15 11:14:07 +00:00
|
|
|
HINSTANCE hApplet = NULL;
|
2004-06-30 12:11:11 +00:00
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
/* Control Panel Callback */
|
2004-06-30 12:11:11 +00:00
|
|
|
LONG CALLBACK
|
|
|
|
CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
|
2004-06-18 20:43:44 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
CPLINFO *CPlInfo;
|
|
|
|
|
|
|
|
switch (uMsg)
|
|
|
|
{
|
|
|
|
case CPL_INIT:
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
case CPL_GETCOUNT:
|
2009-08-15 11:14:07 +00:00
|
|
|
return 1;
|
2007-09-16 13:38:26 +00:00
|
|
|
|
|
|
|
case CPL_INQUIRE:
|
|
|
|
CPlInfo = (CPLINFO*)lParam2;
|
|
|
|
CPlInfo->lData = 0;
|
2009-08-15 11:14:07 +00:00
|
|
|
CPlInfo->idIcon = IDI_CPLSYSTEM;
|
|
|
|
CPlInfo->idName = IDS_CPLSYSTEMNAME;
|
|
|
|
CPlInfo->idInfo = IDS_CPLSYSTEMDESCRIPTION;
|
2007-09-16 13:38:26 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case CPL_DBLCLK:
|
2009-08-15 11:14:07 +00:00
|
|
|
ShellExecute(NULL,
|
|
|
|
NULL,
|
|
|
|
_T("rapps.exe"),
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
1);
|
2007-09-16 13:38:26 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return FALSE;
|
2004-06-18 20:43:44 +00:00
|
|
|
}
|
|
|
|
|
2004-06-30 12:11:11 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
|
2004-06-18 20:43:44 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
UNREFERENCED_PARAMETER(lpvReserved);
|
|
|
|
|
|
|
|
switch (dwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
case DLL_THREAD_ATTACH:
|
2007-10-04 23:51:10 +00:00
|
|
|
CoInitialize(NULL);
|
2007-09-16 13:38:26 +00:00
|
|
|
hApplet = hinstDLL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
2004-06-18 20:43:44 +00:00
|
|
|
}
|