//--------------------------------------------------------------------------- // diskperf.rc // // Copyright (c) Microsoft Corporation, 1997-1999 //--------------------------------------------------------------------------- #include "diskperf.h" ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE DISCARDABLE BEGIN DP_START_VALUE "Start" DP_THIS_SYSTEM "this system" DP_START_AT_BOOT "set to start at boot" DP_START_AT_START "set to start at system start" DP_START_AUTOMATICALLY "set to start automatically" DP_START_ON_DEMAND "set to start on demand" DP_START_NEVER "set to never start" DP_START_UNDEFINED "undefined" END STRINGTABLE DISCARDABLE BEGIN DP_CMD_HELP_1 "\n\nDISKPERF [-Y[D|V] | -N[D|V]] [\\\\computername]\n" DP_CMD_HELP_2 "\n -Y Sets the system to start all disk performance counters" DP_CMD_HELP_3 "\n when the system is restarted.\n" DP_CMD_HELP_4 "\n -YD Enables the disk performance counters for physical drives." DP_CMD_HELP_5 "\n when the system is restarted." DP_CMD_HELP_6 "\n -YV Enables the disk performance counters for logical drives" DP_CMD_HELP_7 "\n or storage volumes when the system is restarted." DP_CMD_HELP_8 "\n -N Sets the system to disable all disk performance counters" DP_CMD_HELP_9 "\n when the system is restarted.\n" DP_CMD_HELP_10 "\n -ND Disables the disk performance counters for physical drives." DP_CMD_HELP_11 "\n -NV Disables the disk performance counters for logical drives." DP_CMD_HELP_12 "\n \\\\computername Is the name of the computer you want to" DP_CMD_HELP_13 "\n see or set disk performance counter use." DP_CMD_HELP_14 "\n The computer must be a Windows 2000 system." DP_CMD_HELP_15 "\n NOTE: Disk performance counters are permanently enabled on" DP_CMD_HELP_16 "\n systems beyond Windows 2000." END STRINGTABLE DISCARDABLE BEGIN DP_HELP_TEXT_1 "\n\nDISKPERF=====================" DP_HELP_TEXT_2 "\n\nStarts and stops system disk performance counters." DP_HELP_TEXT_3 "\n\nUsed without the command switches, DISKPERF reports what disk" DP_HELP_TEXT_4 "\nperformance counters are enabled on the specified Windows 2000 computer." DP_HELP_TEXT_5 "\n\nDisk performance counters can be specified to report the" DP_HELP_TEXT_6 "\nperformance of the individual physical drives, or the individual" DP_HELP_TEXT_7 "\nlogical drives or storage volumes. Note that these two sets of" DP_HELP_TEXT_8 "\nperformance counters are measured independently. The user" DP_HELP_TEXT_9 "\nhas the option of enabling and disabling them independently" DP_HELP_TEXT_10 "\nusing the command line switches." DP_HELP_TEXT_11 "\nNOTE: This command can only be used to control remote" DP_HELP_TEXT_12 "\nWindows 2000 systems. In newer systems, these performance counters" DP_HELP_TEXT_13 "\nare automatically enabled." END STRINGTABLE DISCARDABLE BEGIN DP_CURRENT_FORMAT "\n%sDisk Performance counters on %s are currently %s." DP_CURRENT_FORMAT1 "\nBoth Logical and Physical Disk Performance counters on %s\n\t are currently %s." DP_UNABLE_READ_START "\nUnable to read Diskperf Start value" DP_UNABLE_READ_REGISTRY "\nUnable to read registry database" DP_UNABLE_CONNECT "\nUnable to connect to %s" DP_UNABLE_MODIFY_VALUE "\nUnable to modify Diskperf initialization value" DP_NEW_DISKPERF_STATUS "\n%sDisk Performance counters on %s are now %s." DP_NEW_DISKPERF_STATUS1 "\nBoth Logical and Physical Disk Performance counters on %s\n\t are now %s." DP_REBOOTED "\nThis change will take effect after the system is restarted." DP_STATUS_FORMAT ": Status=0x%8.8x" DP_TEXT_FORMAT "%s" DP_ENHANCED "All " DP_PHYSICAL "Physical " DP_LOGICAL "Logical " DP_DISCLAIMER "\nNote that Logical Disk counters of striped disk sets may not be correct." DP_NOCHANGE "\nNo changes are made." DP_PERMANENT_FORMAT "\nBoth Logical and Physical Disk Performance counters on %s\n\tare automatically enabled on demand." DP_PERMANENT_FORMAT1 "\nFor legacy applications using IOCTL_DISK_PERFORMANCE to retrieve raw counters," DP_PERMANENT_FORMAT2 "\nyou can use -Y or -N to forcibly enable or disable. No reboot is required." DP_PERMANENT_IOCTL "\nRaw counters are also enabled for IOCTL_DISK_PERFORMANCE." END ///////////////////////////////////////////////////////////////////////////// // // Version // #include #include #define VER_FILETYPE VFT_APP #define VER_FILESUBTYPE VFT2_UNKNOWN #define VER_FILEDESCRIPTION_STR "Disk Performance Configuration Utility" #define VER_INTERNALNAME_STR "DISKPERF.EXE" #define VER_ORIGINALFILENAME_STR "DISKPERF.EXE" #include "common.ver" #if 0 ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_DP_HELP DIALOGEX 0, 0, 235, 155 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Diskperf Help" FONT 8, "MS Shell Dlg" BEGIN LTEXT "Using the Device Manager console to enable disk performance counters:", IDC_STATIC,8,5,209,17 LTEXT "1)",IDC_STATIC,7,30,9,9,0,WS_EX_RIGHT LTEXT "Click Devices.",IDC_STATIC,19,30,209,9 LTEXT "2)",IDC_STATIC,7,40,9,9,0,WS_EX_RIGHT LTEXT "For ALL Physical Drives, right-click the Disk drives entry, and click Properties.\nFor ALL Logical Volumes, right-click the Storage volumes entry, and click Properties.", IDC_STATIC,19,40,209,33 LTEXT "3)",IDC_STATIC,7,74,9,9,0,WS_EX_RIGHT LTEXT "Click the Disk Properties tab, click the Enable Disk Performance Counters check box, and click OK.", IDC_STATIC,19,73,209,17 LTEXT "NOTE: disk performance counters can also be enabled or disabled for specific disks and volumes individually by using the property pages for the specific disk or volume.", IDC_STATIC,19,90,200,29 LTEXT "4)",IDC_STATIC,7,120,9,9,0,WS_EX_RIGHT LTEXT "Restart the computer for the new settings to take effect.", IDC_STATIC,19,120,209,9 DEFPUSHBUTTON "OK",IDOK,90,134,54,14 END IDD_DP_EXPLAIN DIALOG DISCARDABLE 0, 0, 186, 92 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Diskperf" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK",IDOK,35,71,50,14 PUSHBUTTON "Cancel",IDCANCEL,101,71,50,14 LTEXT "Disk performance counters must be enabled and disabled by using the Device Manager.\n\nClick OK to display the Device Manager or\nCancel to Exit.", IDC_STATIC,7,7,172,56 END #endif