[KSPROXY]
[reactos.git] / reactos / dll / cpl / sysdm / precomp.h
index 0e3a8fb..3ef2ee0 100644 (file)
@@ -1,62 +1,78 @@
-#ifndef __CPL_PRECOMP_H\r
-#define __CPL_PRECOMP_H\r
-\r
-#include <windows.h>\r
-#include <commctrl.h>\r
-#include <tchar.h>\r
-#include <lm.h>\r
-#include <cpl.h>\r
-#include <shellapi.h> //shellexecute\r
-#include "resource.h"\r
-\r
-#define NUM_APPLETS (1)\r
-\r
-typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);\r
-\r
-typedef struct _APPLET\r
-{\r
-  int idIcon;\r
-  int idName;\r
-  int idDescription;\r
-  APPLET_INITPROC AppletProc;\r
-} APPLET, *PAPPLET;\r
-\r
-extern HINSTANCE hApplet;\r
-\r
-void ShowLastWin32Error(HWND hWndOwner);\r
-\r
-/* prop sheet pages */\r
-INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK ComputerPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-\r
-/* dialogs */\r
-INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);\r
-\r
-typedef struct _PAGEFILE\r
-{\r
-    TCHAR szDrive[3];\r
-    INT   InitialValue;\r
-    INT   MaxValue;\r
-    BOOL  bUsed;\r
-} PAGEFILE, *PPAGEFILE;\r
-\r
-typedef struct _VIRTMEM\r
-{\r
-    HWND   hSelf;\r
-    HWND   hListView;\r
-    LPTSTR szPagingFiles;\r
-    TCHAR  szDrive[10];\r
-    INT    Count;\r
-    BOOL   bSave;\r
-    PAGEFILE  Pagefile[26];\r
-} VIRTMEM, *PVIRTMEM;\r
-\r
-\r
-#endif /* __CPL_SYSDM_H */\r
+#ifndef __CPL_PRECOMP_H
+#define __CPL_PRECOMP_H
+
+#include <ntstatus.h>
+#define WIN32_NO_STATUS
+#include <windows.h>
+#include <commctrl.h>
+#include <powrprof.h>
+#include <tchar.h>
+#include <stdio.h>
+#include <cpl.h>
+#include <shellapi.h>
+#include <shlwapi.h>
+#include <shlguid.h>
+#include <shlobj.h>
+#include <cplext.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];
+    INT   InitialValue;
+    INT   MaxValue;
+    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 */