reactos/dll/cpl/sysdm/precomp.h

85 lines
2.1 KiB
C
Raw Normal View History

#ifndef __CPL_PRECOMP_H
#define __CPL_PRECOMP_H
#include <ntstatus.h>
#define WIN32_NO_STATUS
#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>
#include <wincon.h>
#include <powrprof.h>
#include <tchar.h>
#include <cpl.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <regstr.h>
#include <setupapi.h>
#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);
/* Prop sheet pages */
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);
/* Dialogs */
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
{
TCHAR szDrive[3];
UINT InitialSize;
UINT MaximumSize;
UINT FreeSize;
BOOL bUsed;
} PAGEFILE, *PPAGEFILE;
typedef struct _VIRTMEM
{
HWND hSelf;
HWND hListBox;
LPTSTR szPagingFiles;
TCHAR szDrive[10];
INT Count;
BOOL bSave;
PAGEFILE Pagefile[26];
} VIRTMEM, *PVIRTMEM;
typedef struct _BOOTRECORD
{
DWORD BootType;
WCHAR szSectionName[128];
WCHAR szBootPath[MAX_PATH];
WCHAR szOptions[512];
}BOOTRECORD, *PBOOTRECORD;
#endif /* __CPL_SYSDM_H */