static VOID
ParseMemSettings(PVIRTMEM pVirtMem)
{
- TCHAR szDrives[1024]; // all drives
+ TCHAR szDrives[1024]; // All drives
LPTSTR DrivePtr = szDrives;
- TCHAR szDrive[3]; // single drive
+ TCHAR szDrive[3]; // Single drive
TCHAR szVolume[MAX_PATH];
TCHAR *szDisplayString;
INT InitialSize = 0;
DrivePtr = _tcsupr(DrivePtr);
- /* copy the 'X:' portion */
+ /* Copy the 'X:' portion */
lstrcpyn(szDrive, DrivePtr, sizeof(szDrive) / sizeof(TCHAR));
if (GetDriveType(DrivePtr) == DRIVE_FIXED)
{
- /* does drive match the one in the registry ? */
+ /* Does drive match the one in the registry ? */
if (!_tcsncmp(pVirtMem->szPagingFiles, szDrive, 2))
{
- /* FIXME: we only check the first available pagefile in the reg */
+ /* FIXME: We only check the first available pagefile in the reg */
GetPageFileSizes(pVirtMem->szPagingFiles,
&InitialSize,
&MaximumSize);
_tcscpy(szDisplayString, szDrive);
_tcscat(szDisplayString, _T("\t"));
- /* set a volume label if there is one */
+ /* Set a volume label if there is one */
if (GetVolumeInformation(DrivePtr,
szVolume,
255,
/* Record the position where the next string will start */
nPos += (INT)lstrlen(szText) + 1;
- /* add another NULL for REG_MULTI_SZ */
+ /* Add another NULL for REG_MULTI_SZ */
szPagingFiles[nPos] = _T('\0');
nPos++;
}
0);
if (Index >= 0 && Index < pVirtMem->Count)
{
- /* check if custom settings are checked */
+ /* Check if custom settings are checked */
if (IsDlgButtonChecked(pVirtMem->hSelf,
IDC_CUSTOM) == BST_CHECKED)
{
}
else
{
- /* set sizes to 0 */
+ /* Set sizes to 0 */
pVirtMem->Pagefile[Index].InitialSize = 0;
pVirtMem->Pagefile[Index].MaximumSize = 0;
- // check to see if this drive is used for a paging file
+ // Check to see if this drive is used for a paging file
if (IsDlgButtonChecked(pVirtMem->hSelf,
IDC_NOPAGEFILE) == BST_UNCHECKED)
{
if (pVirtMem->Pagefile[Index].InitialSize != 0 &&
pVirtMem->Pagefile[Index].MaximumSize != 0)
{
- /* enable and fill the custom values */
+ /* Enable and fill the custom values */
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_MAXSIZE), TRUE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_INITIALSIZE), TRUE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_MAXSIZE), FALSE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_INITIALSIZE), FALSE);
- /* is it system managed */
+ /* Is it system managed */
if (pVirtMem->Pagefile[Index].bUsed)
{
CheckDlgButton(pVirtMem->hSelf,