mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[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.
This commit is contained in:
parent
73194a8ea9
commit
2fdb4d99c7
3 changed files with 43 additions and 8 deletions
19
dll/cpl/liccpa/CMakeLists.txt
Normal file
19
dll/cpl/liccpa/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
spec2def(liccpa.cpl liccpa.spec)
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
|
liccpa.c
|
||||||
|
liccpa.h)
|
||||||
|
|
||||||
|
file(GLOB liccpa_rc_deps resources/*.*)
|
||||||
|
add_rc_deps(liccpa.rc ${liccpa_rc_deps})
|
||||||
|
|
||||||
|
add_library(liccpa SHARED
|
||||||
|
${SOURCE}
|
||||||
|
liccpa.rc
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/liccpa.def)
|
||||||
|
|
||||||
|
set_module_type(liccpa cpl UNICODE)
|
||||||
|
add_importlibs(liccpa advapi32 user32 gdi32 msvcrt kernel32 ntdll)
|
||||||
|
add_pch(liccpa liccpa.h SOURCE)
|
||||||
|
add_cd_file(TARGET liccpa DESTINATION reactos/system32 FOR all)
|
|
@ -10,11 +10,6 @@
|
||||||
* This application does almost nothing and its really good at it.
|
* This application does almost nothing and its really good at it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <cpl.h>
|
|
||||||
|
|
||||||
#include "resource.h"
|
|
||||||
#include "liccpa.h"
|
#include "liccpa.h"
|
||||||
|
|
||||||
HINSTANCE hApplet = 0;
|
HINSTANCE hApplet = 0;
|
||||||
|
@ -26,12 +21,12 @@ DlgMainProc(HWND hwndDlg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam)
|
LPARAM lParam)
|
||||||
{
|
{
|
||||||
TCHAR szString[256];
|
// TCHAR szString[256];
|
||||||
|
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
break;
|
return TRUE;
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
switch (HIWORD(wParam))
|
switch (HIWORD(wParam))
|
||||||
|
|
|
@ -1,4 +1,23 @@
|
||||||
#pragma once
|
#ifndef _LICCPA_H
|
||||||
|
#define _LICCPA_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
|
#define _INC_WINDOWS
|
||||||
|
#define COM_NO_WINDOWS_H
|
||||||
|
|
||||||
|
#include <windef.h>
|
||||||
|
#include <winbase.h>
|
||||||
|
#include <winreg.h>
|
||||||
|
#include <wingdi.h>
|
||||||
|
#include <wincon.h>
|
||||||
|
#include <devguid.h>
|
||||||
|
#include <shlobj.h>
|
||||||
|
#include <cpl.h>
|
||||||
|
#include <regstr.h>
|
||||||
|
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -10,4 +29,6 @@ typedef struct
|
||||||
|
|
||||||
extern HINSTANCE hApplet;
|
extern HINSTANCE hApplet;
|
||||||
|
|
||||||
|
#endif /* _LICCPA_H */
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue