2013-03-16 20:25:38 +00:00
|
|
|
/*
|
2005-07-31 12:11:56 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS License Manager
|
2007-09-16 13:38:26 +00:00
|
|
|
* FILE: dll/cpl/liccpa/liccpa.c
|
2005-07-31 12:11:56 +00:00
|
|
|
* PURPOSE: License Manager GUI
|
2007-10-19 23:21:45 +00:00
|
|
|
*
|
2005-07-31 12:11:56 +00:00
|
|
|
* PROGRAMMERS: Steven Edwards (steven_ed4153@yahoo.com)
|
|
|
|
*
|
|
|
|
* NOTES:
|
|
|
|
* This application does almost nothing and its really good at it.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "liccpa.h"
|
|
|
|
|
|
|
|
HINSTANCE hApplet = 0;
|
|
|
|
|
2007-09-16 13:38:26 +00:00
|
|
|
|
2005-07-31 12:11:56 +00:00
|
|
|
INT_PTR CALLBACK
|
2007-09-16 13:38:26 +00:00
|
|
|
DlgMainProc(HWND hwndDlg,
|
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2018-07-01 09:02:10 +00:00
|
|
|
// TCHAR szString[256];
|
2005-07-31 12:11:56 +00:00
|
|
|
|
2007-09-16 13:38:26 +00:00
|
|
|
switch (uMsg)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
case WM_INITDIALOG:
|
2018-07-01 09:02:10 +00:00
|
|
|
return TRUE;
|
2007-09-16 13:38:26 +00:00
|
|
|
|
|
|
|
case WM_COMMAND:
|
|
|
|
switch (HIWORD(wParam))
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
case LBN_DBLCLK:
|
|
|
|
switch (LOWORD(wParam))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
switch (LOWORD(wParam))
|
|
|
|
{
|
|
|
|
case IDC_OK:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case IDC_CANCEL:
|
|
|
|
EndDialog(hwndDlg, IDC_CANCEL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
2007-09-16 13:38:26 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case WM_CLOSE:
|
|
|
|
EndDialog(hwndDlg, IDC_CANCEL);
|
|
|
|
return TRUE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
2007-09-16 13:38:26 +00:00
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2007-09-16 13:38:26 +00:00
|
|
|
|
2005-07-31 12:11:56 +00:00
|
|
|
LONG CALLBACK
|
2007-09-16 13:38:26 +00:00
|
|
|
CPlApplet(HWND hwndCPl,
|
|
|
|
UINT uMsg,
|
|
|
|
LPARAM lParam1,
|
|
|
|
LPARAM lParam2)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
switch (uMsg)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
case CPL_INIT:
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
case CPL_GETCOUNT:
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
case CPL_INQUIRE:
|
|
|
|
{
|
|
|
|
CPLINFO *CPlInfo = (CPLINFO*)lParam2;
|
|
|
|
CPlInfo->lData = 0;
|
|
|
|
CPlInfo->idIcon = IDC_CPLICON_1;
|
|
|
|
CPlInfo->idName = IDS_CPLNAME_1;
|
|
|
|
CPlInfo->idInfo = IDS_CPLDESCRIPTION_1;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case CPL_DBLCLK:
|
|
|
|
DialogBox(hApplet, MAKEINTRESOURCE(IDD_PROPPAGE1), NULL, DlgMainProc);
|
|
|
|
break;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
2007-09-16 13:38:26 +00:00
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-11-30 11:42:05 +00:00
|
|
|
BOOL WINAPI
|
2007-09-16 13:38:26 +00:00
|
|
|
DllMain(HINSTANCE hinstDLL,
|
|
|
|
DWORD dwReason,
|
|
|
|
LPVOID lpvReserved)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2007-09-16 13:38:26 +00:00
|
|
|
switch (dwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
|
|
hApplet = hinstDLL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|