2006-11-08 11:47:44 +00:00
|
|
|
#ifndef __CPL_PRECOMP_H
|
|
|
|
#define __CPL_PRECOMP_H
|
|
|
|
|
2014-01-19 10:39:14 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
2014-01-19 10:39:14 +00:00
|
|
|
|
|
|
|
#include <ntstatus.h>
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
2013-05-04 20:43:16 +00:00
|
|
|
#include <wincon.h>
|
2019-03-23 17:24:07 +00:00
|
|
|
#include <windowsx.h>
|
2006-11-08 11:47:44 +00:00
|
|
|
#include <tchar.h>
|
|
|
|
#include <shellapi.h>
|
2007-01-18 16:37:30 +00:00
|
|
|
#include <shlobj.h>
|
2020-08-17 00:18:01 +00:00
|
|
|
#include <shlwapi.h>
|
2019-09-01 17:35:15 +00:00
|
|
|
#include <setupapi.h>
|
2020-02-09 12:07:13 +00:00
|
|
|
#include <cpl.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2022-11-03 00:00:32 +00:00
|
|
|
#include <strsafe.h>
|
|
|
|
|
2006-11-08 11:47:44 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
#define NUM_APPLETS (1)
|
|
|
|
|
|
|
|
typedef struct _APPLET
|
|
|
|
{
|
2022-11-03 00:00:32 +00:00
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
APPLET_PROC AppletProc;
|
2006-11-08 11:47:44 +00:00
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
|
|
|
void ShowLastWin32Error(HWND hWndOwner);
|
|
|
|
|
2011-11-29 14:55:58 +00:00
|
|
|
/* Prop sheet pages */
|
2006-11-08 11:47:44 +00:00
|
|
|
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2011-11-29 14:55:58 +00:00
|
|
|
/* Dialogs */
|
2006-11-08 11:47:44 +00:00
|
|
|
INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2018-08-16 19:31:03 +00:00
|
|
|
/* System information */
|
|
|
|
BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf);
|
|
|
|
|
2022-11-03 00:00:32 +00:00
|
|
|
#define MAX_STR_LENGTH 256
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2022-11-03 00:00:32 +00:00
|
|
|
INT __cdecl
|
2014-04-12 21:03:03 +00:00
|
|
|
ResourceMessageBox(
|
2022-11-03 00:00:32 +00:00
|
|
|
_In_opt_ HINSTANCE hInstance,
|
|
|
|
_In_opt_ HWND hwnd,
|
|
|
|
_In_ UINT uType,
|
|
|
|
_In_ UINT uCaption,
|
|
|
|
_In_ UINT uText,
|
|
|
|
...);
|
2014-04-12 21:03:03 +00:00
|
|
|
|
2006-11-08 11:47:44 +00:00
|
|
|
#endif /* __CPL_SYSDM_H */
|