Skip to content

Commit 2fdb4d9

Browse files
committed
[LICCPA] Make the License Manager GUI build and make it visible (again)
- Add the missing CMakeLists.txt file. - Comment-out an unused variable. - Make WM_INITDIALOG return TRUE, so that the dialog gets visible.
1 parent 73194a8 commit 2fdb4d9

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

dll/cpl/liccpa/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
spec2def(liccpa.cpl liccpa.spec)
3+
4+
list(APPEND SOURCE
5+
liccpa.c
6+
liccpa.h)
7+
8+
file(GLOB liccpa_rc_deps resources/*.*)
9+
add_rc_deps(liccpa.rc ${liccpa_rc_deps})
10+
11+
add_library(liccpa SHARED
12+
${SOURCE}
13+
liccpa.rc
14+
${CMAKE_CURRENT_BINARY_DIR}/liccpa.def)
15+
16+
set_module_type(liccpa cpl UNICODE)
17+
add_importlibs(liccpa advapi32 user32 gdi32 msvcrt kernel32 ntdll)
18+
add_pch(liccpa liccpa.h SOURCE)
19+
add_cd_file(TARGET liccpa DESTINATION reactos/system32 FOR all)

dll/cpl/liccpa/liccpa.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
* This application does almost nothing and its really good at it.
1111
*/
1212

13-
#include <windows.h>
14-
#include <commctrl.h>
15-
#include <cpl.h>
16-
17-
#include "resource.h"
1813
#include "liccpa.h"
1914

2015
HINSTANCE hApplet = 0;
@@ -26,12 +21,12 @@ DlgMainProc(HWND hwndDlg,
2621
WPARAM wParam,
2722
LPARAM lParam)
2823
{
29-
TCHAR szString[256];
24+
// TCHAR szString[256];
3025

3126
switch (uMsg)
3227
{
3328
case WM_INITDIALOG:
34-
break;
29+
return TRUE;
3530

3631
case WM_COMMAND:
3732
switch (HIWORD(wParam))

dll/cpl/liccpa/liccpa.h

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
#pragma once
1+
#ifndef _LICCPA_H
2+
#define _LICCPA_H
3+
4+
#include <stdarg.h>
5+
6+
#define WIN32_NO_STATUS
7+
#define _INC_WINDOWS
8+
#define COM_NO_WINDOWS_H
9+
10+
#include <windef.h>
11+
#include <winbase.h>
12+
#include <winreg.h>
13+
#include <wingdi.h>
14+
#include <wincon.h>
15+
#include <devguid.h>
16+
#include <shlobj.h>
17+
#include <cpl.h>
18+
#include <regstr.h>
19+
20+
#include "resource.h"
221

322
typedef struct
423
{
@@ -10,4 +29,6 @@ typedef struct
1029

1130
extern HINSTANCE hApplet;
1231

32+
#endif /* _LICCPA_H */
33+
1334
/* EOF */

0 commit comments

Comments
 (0)