- Add the missing CMakeLists.txt file.
- Comment-out an unused variable.
- Make WM_INITDIALOG return TRUE, so that the dialog gets visible.
--- /dev/null
+
+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)
* 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"
HINSTANCE hApplet = 0;
WPARAM wParam,
LPARAM lParam)
{
- TCHAR szString[256];
+// TCHAR szString[256];
switch (uMsg)
{
case WM_INITDIALOG:
- break;
+ return TRUE;
case WM_COMMAND:
switch (HIWORD(wParam))
-#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
{
extern HINSTANCE hApplet;
+#endif /* _LICCPA_H */
+
/* EOF */