mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
start to rewrite the virtmem code to remove many bugs and make it more readable.
I'm currently working on enhancements to sysdm, but it's probably better to commit this separately svn path=/trunk/; revision=24115
This commit is contained in:
parent
4a1ee5a228
commit
d667517b42
10 changed files with 595 additions and 770 deletions
|
@ -25,12 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
#include "precomp.h"
|
||||
|
||||
/* Property page dialog callback */
|
||||
INT_PTR CALLBACK
|
||||
|
|
|
@ -25,11 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <lm.h>
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
/* Property page dialog callback */
|
||||
INT_PTR CALLBACK
|
||||
|
|
|
@ -24,13 +24,7 @@
|
|||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
#include "precomp.h"
|
||||
|
||||
|
||||
typedef struct _VARIABLE_DATA
|
||||
|
|
|
@ -25,12 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
#include "precomp.h"
|
||||
|
||||
void
|
||||
ShowLastWin32Error(HWND hWndOwner)
|
||||
|
|
|
@ -25,12 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
#include "precomp.h"
|
||||
|
||||
typedef BOOL (STDCALL *PDEVMGREXEC)(HWND hWndParent, HINSTANCE hInst, PVOID Unknown, int nCmdShow);
|
||||
BOOL LaunchDeviceManager(HWND hWndParent)
|
||||
|
|
|
@ -1,33 +1,56 @@
|
|||
#ifndef __CPL_SYSDM_H
|
||||
#define __CPL_SYSDM_H
|
||||
|
||||
typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int idIcon;
|
||||
int idName;
|
||||
int idDescription;
|
||||
APPLET_INITPROC AppletProc;
|
||||
} APPLET, *PAPPLET;
|
||||
|
||||
extern HINSTANCE hApplet;
|
||||
|
||||
void ShowLastWin32Error(HWND hWndOwner);
|
||||
|
||||
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
INT_PTR CALLBACK ComputerPageProc(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);
|
||||
INT_PTR CALLBACK UserProfilePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
/* environment.c */
|
||||
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
/* virtmem.c */
|
||||
INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
|
||||
#endif /* __CPL_SYSDM_H */
|
||||
|
||||
/* EOF */
|
||||
#ifndef __CPL_PRECOMP_H
|
||||
#define __CPL_PRECOMP_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <tchar.h>
|
||||
#include <lm.h>
|
||||
#include <cpl.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);
|
||||
|
||||
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
INT_PTR CALLBACK ComputerPageProc(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);
|
||||
INT_PTR CALLBACK UserProfilePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
typedef struct _PAGEFILE
|
||||
{
|
||||
TCHAR szDrive[3];
|
||||
INT InitialValue;
|
||||
INT MaxValue;
|
||||
BOOL bUsed;
|
||||
} PAGEFILE, *PPAGEFILE;
|
||||
|
||||
typedef struct _VIRTMEM
|
||||
{
|
||||
HWND hSelf;
|
||||
HWND hListView;
|
||||
LPTSTR szPagingFiles;
|
||||
TCHAR szDrive[10];
|
||||
INT Count;
|
||||
BOOL bSave;
|
||||
PAGEFILE Pagefile[26];
|
||||
} VIRTMEM, *PVIRTMEM;
|
||||
|
||||
|
||||
#endif /* __CPL_SYSDM_H */
|
|
@ -25,14 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <prsht.h>
|
||||
#include <cpl.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
#include "precomp.h"
|
||||
|
||||
#define NUM_APPLETS (1)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
LIBRARY sysdm.cpl
|
||||
|
||||
EXPORTS
|
||||
CPlApplet@16
|
||||
CPlApplet
|
||||
|
||||
; EOF
|
||||
|
|
|
@ -25,10 +25,8 @@
|
|||
* UPDATE HISTORY:
|
||||
* 03-04-2004 Created
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include "resource.h"
|
||||
#include "sysdm.h"
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
/* Property page dialog callback */
|
||||
INT_PTR CALLBACK
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue