Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
virtual.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 3k
Category:
Windows Kernel
Development Platform:
Visual C++
- /*++
- Microsoft Confidential
- Copyright (c) 1992-1997 Microsoft Corporation
- All rights reserved
- Module Name:
- virtual.h
- Abstract:
- Public declarations for the Change Virtual Memory dialog of the System
- Control Panel Applet
- Notes:
- The virtual memory settings and the crash dump (core dump) settings
- are tightly-coupled. Therefore, virtual.c and virtual.h have some
- heavy dependencies on crashdmp.c and startup.h (and vice versa).
- Author:
- Byron Dazey 06-Jun-1992
- Revision History:
- 15-Oct-1997 scotthal
- Split public declarations into separate header
- --*/
- #ifndef _SYSDM_VIRTUAL_H_
- #define _SYSDM_VIRTUAL_H_
- //
- // Some debugging macros shared by the virtual mem and crash dump stuff
- //
- #ifdef VM_DBG
- # pragma message(__FILE__"(19): warning !!!! : compiled for DEBUG ONLY!" )
- # define DPRINTF(p) DBGPRINTF(p)
- # define DOUT(S) DBGOUT(S)
- #else
- # define DPRINTF(p)
- # define DOUT(S)
- #endif
- //
- // Constants
- //
- #define MAX_DRIVES 26 // Max number of drives.
- //
- // Type Definitions
- //
- typedef struct
- {
- BOOL fCanHavePagefile; // TRUE if the drive can have a pagefile.
- BOOL fCreateFile; // TRUE if user hits [SET] and no pagefile
- DWORD nMinFileSize; // Minimum size of pagefile in MB.
- DWORD nMaxFileSize; // Max size of pagefile in MB.
- DWORD nMinFileSizePrev; // Previous minimum size of pagefile in MB.
- DWORD nMaxFileSizePrev; // Previous max size of pagefile in MB.
- LPTSTR pszPageFile; // Path to page file if it exists on that drv
- } PAGING_FILE; // Swap file structure
- //
- // Global Variables
- //
- extern HKEY ghkeyMemMgt;
- extern PAGING_FILE apf[MAX_DRIVES];
- extern PAGING_FILE apfOriginal[MAX_DRIVES];
- //
- // Public function prototypes
- //
- INT_PTR
- APIENTRY
- VirtualMemDlg(
- IN HWND hDlg,
- IN UINT message,
- IN WPARAM wParam,
- IN LPARAM lParam
- );
- BOOL
- VirtualInitStructures(
- void
- );
- void
- VirtualFreeStructures(
- void
- );
- INT
- VirtualMemComputeAllocated(
- IN HWND hWnd,
- OUT BOOL *pfTempPf
- );
- VCREG_RET
- VirtualOpenKey(
- void
- );
- void
- VirtualCloseKey(
- void
- );
- BOOL
- VirtualGetPageFiles(
- OUT PAGING_FILE *apf
- );
- void
- VirtualFreePageFiles(
- IN PAGING_FILE *apf
- );
- BOOL
- VirtualMemUpdateRegistry(
- VOID
- );
- int
- VirtualMemPromptForReboot(
- IN HWND hDlg
- );
- DWORD
- GetFreeSpaceMB(
- IN INT iDrive
- );
- VOID
- SetDlgItemMB(
- IN HWND hDlg,
- IN INT idControl,
- IN DWORD dwMBValue
- );
- #endif // _SYSDM_VIRTUAL_H_