ReactOS 0.4.15-dev-8236-g99f0937
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
20 UINT uMsg,
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
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;
84 }
85 break;
86
87 case CPL_DBLCLK:
89 break;
90 }
91
92 return FALSE;
93}
94
95
100{
101 switch (dwReason)
102 {
105 hApplet = hinstDLL;
106 break;
107 }
108
109 return TRUE;
110}
#define IDC_OK
Definition: resource.h:59
#define IDC_CANCEL
Definition: resource.h:60
DWORD dwReason
Definition: misc.cpp:154
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CPL_INQUIRE
Definition: cpl.h:14
#define CPL_DBLCLK
Definition: cpl.h:16
#define CPL_INIT
Definition: cpl.h:12
#define CPL_GETCOUNT
Definition: cpl.h:13
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define IDC_CPLICON_1
Definition: resource.h:4
#define IDS_CPLDESCRIPTION_1
Definition: resource.h:8
#define IDD_PROPPAGE1
Definition: resource.h:5
#define IDS_CPLNAME_1
Definition: resource.h:6
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define CALLBACK
Definition: compat.h:35
#define DLL_THREAD_ATTACH
Definition: compat.h:132
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
Definition: liccpa.c:97
INT_PTR CALLBACK DlgMainProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: liccpa.c:19
HINSTANCE hApplet
Definition: liccpa.c:15
static IN DWORD IN LPVOID lpvReserved
unsigned int UINT
Definition: ndis.h:50
#define LOWORD(l)
Definition: pedump.c:82
long LONG
Definition: pedump.c:60
Definition: cpl.h:24
LONG_PTR lData
Definition: cpl.h:28
int idName
Definition: cpl.h:26
int idInfo
Definition: cpl.h:27
int idIcon
Definition: cpl.h:25
int32_t INT_PTR
Definition: typedefs.h:64
#define HIWORD(l)
Definition: typedefs.h:247
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
#define WM_CLOSE
Definition: winuser.h:1621
#define LBN_DBLCLK
Definition: winuser.h:2071
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5770
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)