ReactOS  0.4.15-dev-1397-g19779b3
liccpa.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS License Manager
4  * FILE: dll/cpl/liccpa/liccpa.c
5  * PURPOSE: License Manager GUI
6  *
7  * PROGRAMMERS: Steven Edwards (steven_ed4153@yahoo.com)
8  *
9  * NOTES:
10  * This application does almost nothing and its really good at it.
11  */
12 
13 #include "liccpa.h"
14 
16 
17 
19 DlgMainProc(HWND hwndDlg,
20  UINT uMsg,
21  WPARAM wParam,
22  LPARAM lParam)
23 {
24 // TCHAR szString[256];
25 
26  switch (uMsg)
27  {
28  case WM_INITDIALOG:
29  return TRUE;
30 
31  case WM_COMMAND:
32  switch (HIWORD(wParam))
33  {
34  case LBN_DBLCLK:
35  switch (LOWORD(wParam))
36  {
37  }
38  break;
39 
40  default:
41  switch (LOWORD(wParam))
42  {
43  case IDC_OK:
44  break;
45 
46  case IDC_CANCEL:
47  EndDialog(hwndDlg, IDC_CANCEL);
48  break;
49  }
50  break;
51  }
52  break;
53 
54  case WM_CLOSE:
55  EndDialog(hwndDlg, IDC_CANCEL);
56  return TRUE;
57  }
58 
59  return FALSE;
60 }
61 
62 
64 CPlApplet(HWND hwndCPl,
65  UINT uMsg,
66  LPARAM lParam1,
67  LPARAM lParam2)
68 {
69  switch (uMsg)
70  {
71  case CPL_INIT:
72  return TRUE;
73 
74  case CPL_GETCOUNT:
75  return 1;
76 
77  case CPL_INQUIRE:
78  {
79  CPLINFO *CPlInfo = (CPLINFO*)lParam2;
80  CPlInfo->lData = 0;
81  CPlInfo->idIcon = IDC_CPLICON_1;
82  CPlInfo->idName = IDS_CPLNAME_1;
83  CPlInfo->idInfo = IDS_CPLDESCRIPTION_1;
84  }
85  break;
86 
87  case CPL_DBLCLK:
89  break;
90  }
91 
92  return FALSE;
93 }
94 
95 
97 DllMain(HINSTANCE hinstDLL,
100 {
101  switch (dwReason)
102  {
103  case DLL_PROCESS_ATTACH:
104  case DLL_THREAD_ATTACH:
105  hApplet = hinstDLL;
106  break;
107  }
108 
109  return TRUE;
110 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
HINSTANCE hApplet
Definition: liccpa.c:15
Definition: cpl.h:24
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:132
#define CALLBACK
Definition: compat.h:35
int idInfo
Definition: cpl.h:27
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define IDS_CPLDESCRIPTION_1
Definition: resource.h:8
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:64
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
WPARAM wParam
Definition: combotst.c:138
static IN DWORD IN LPVOID lpvReserved
int idIcon
Definition: cpl.h:25
#define CPL_DBLCLK
Definition: cpl.h:16
DWORD dwReason
Definition: misc.cpp:154
#define DialogBox
Definition: winuser.h:5736
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
LONG_PTR LPARAM
Definition: windef.h:208
#define IDC_CANCEL
Definition: resource.h:60
#define IDS_CPLNAME_1
Definition: resource.h:6
#define IDD_PROPPAGE1
Definition: resource.h:5
#define WM_CLOSE
Definition: winuser.h:1603
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG CALLBACK CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
Definition: liccpa.c:64
#define LBN_DBLCLK
Definition: winuser.h:2053
#define CPL_INIT
Definition: cpl.h:12
#define CPL_INQUIRE
Definition: cpl.h:14
INT_PTR CALLBACK DlgMainProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: liccpa.c:19
LONG_PTR lData
Definition: cpl.h:28
#define WM_COMMAND
Definition: winuser.h:1722
int idName
Definition: cpl.h:26
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
Definition: liccpa.c:97
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define IDC_CPLICON_1
Definition: resource.h:4
#define HIWORD(l)
Definition: typedefs.h:247
#define IDC_OK
Definition: resource.h:59
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
#define CPL_GETCOUNT
Definition: cpl.h:13