2006-11-08 11:47:44 +00:00
|
|
|
#ifndef __CPL_PRECOMP_H
|
|
|
|
#define __CPL_PRECOMP_H
|
|
|
|
|
2007-04-21 19:37:11 +00:00
|
|
|
#include <ntstatus.h>
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winnls.h>
|
2013-05-04 20:43:16 +00:00
|
|
|
#include <wincon.h>
|
2007-04-21 19:37:11 +00:00
|
|
|
#include <powrprof.h>
|
2006-11-08 11:47:44 +00:00
|
|
|
#include <tchar.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <shlwapi.h>
|
2007-01-18 16:37:30 +00:00
|
|
|
#include <shlobj.h>
|
|
|
|
#include <regstr.h>
|
2007-08-20 19:21:54 +00:00
|
|
|
#include <setupapi.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2006-11-08 11:47:44 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
#define NUM_APPLETS (1)
|
|
|
|
|
|
|
|
typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct _APPLET
|
|
|
|
{
|
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
APPLET_INITPROC AppletProc;
|
|
|
|
} 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);
|
|
|
|
|
|
|
|
typedef struct _PAGEFILE
|
|
|
|
{
|
2011-06-25 13:49:48 +00:00
|
|
|
TCHAR szDrive[3];
|
|
|
|
UINT InitialSize;
|
|
|
|
UINT MaximumSize;
|
|
|
|
UINT FreeSize;
|
|
|
|
BOOL bUsed;
|
2006-11-08 11:47:44 +00:00
|
|
|
} PAGEFILE, *PPAGEFILE;
|
|
|
|
|
|
|
|
typedef struct _VIRTMEM
|
|
|
|
{
|
|
|
|
HWND hSelf;
|
2007-07-28 22:34:42 +00:00
|
|
|
HWND hListBox;
|
2006-11-08 11:47:44 +00:00
|
|
|
LPTSTR szPagingFiles;
|
|
|
|
TCHAR szDrive[10];
|
|
|
|
INT Count;
|
|
|
|
BOOL bSave;
|
|
|
|
PAGEFILE Pagefile[26];
|
|
|
|
} VIRTMEM, *PVIRTMEM;
|
|
|
|
|
2007-08-20 19:21:54 +00:00
|
|
|
typedef struct _BOOTRECORD
|
|
|
|
{
|
|
|
|
DWORD BootType;
|
2008-10-30 12:44:25 +00:00
|
|
|
WCHAR szSectionName[128];
|
|
|
|
WCHAR szBootPath[MAX_PATH];
|
|
|
|
WCHAR szOptions[512];
|
2007-08-20 19:21:54 +00:00
|
|
|
|
|
|
|
}BOOTRECORD, *PBOOTRECORD;
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
#endif /* __CPL_SYSDM_H */
|