Friday, September 28, 2007

Tips And Tricks, Windows XP - Part9

Protection on system files:

To enable protection on system files such as the KnownDLLs list, add the following value;
1. Open RegEdit
2. HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Control\SessionManager
3. Create the a Dword value and name it "ProtectionMode "
4. Set the Value to 1





The Fix For Grayed Out Boxes:

The File Types tab in Explorer's View / Options menu lets you edit most of your file types, but certain settings cannot be changed. The default action for a batch file, for instance, runs the batch file instead of opening it via Notepad or Wordpad. Thus, when you double-click on AUTOEXEC.BAT, a DOS window opens, and the file executes. If you want to change this default action and edit a batch file when you double-click on it, however, the File Types tab does not let you do so; the Set Default button for the file type called MS-DOS Batch File is always grayed out.

The button is grayed out because HKEY_CLASSES_ROOT's batfile key contains an EditFlag value entry. Such entries are used throughout the Registry to prevent novice users from altering certain system settings. The binary data in batfile's EditFlag reads d0 04 00 00. If you change this value to 00 00 00 00, you can then change any of the batch file settings. Do not, however, indiscriminately zero out EditFlag; if you do so in a system ProgID such as Drive or AudioCD, it completely disappears from the File Types list. For ProgIDs that are linked to extensions, set all EditFlags to 00 00 00 00. For system ProgIDs, replace EditFlag data with 02 00 00 00.

If you wish to have access to some buttons while leaving others grayed out, you must know the function of each EditFlag bit. The last two bytes of data are always zero, but most bits within the first two bytes have a specific effect:

• Byte 1, bit 1: Removes the file type from the master list in the File Types tab (select View / Options under Explorer) if it has an associated extension.
• Byte 1, bit 2: Adds the file type to the File Types tab if it does not have an associated extension.
• Byte 1, bit 3: Identifies a type with no associated extension.
• Byte 1, bit 4: Grays out the Edit button in the File Types tab.
• Byte 1, bit 5: Grays out the Remove button in the File Types tab.
• Byte 1, bit 6: Grays out the New button in the Edit File Type dialog (select the Edit button in the File Types tab).
• Byte 1, bit 7: Grays out the Edit button in the Edit File Type dialog.
• Byte 1, bit 8: Grays out the Remove button in the Edit File Type dialog.
• Byte 2, bit 1: Prevents you from editing a file type's description in the Edit File Type dialog.
• Byte 2, bit 2: Grays out the Change Icon button in the Edit File Type dialog.
• Byte 2, bit 3: Grays out the SetDefault button in the Edit File Type dialog.
• Byte 2, bit 4: Prevents you from editing an action's description in the Edit Action dialog (select the Edit button in the Edit File Type dialog).
• Byte 2, bit 5: Prevents you from editing the command line in the Edit Action dialog.
• Byte 2, bit 6: Prevents you from setting DDE (Dynamic Data Exchange) fields in the Edit Action dialog.

The EditFlags value for Drive, for instance, is d2 01 00 00 in Hex (1101 0010 0000 0001 in binary). Bits 2, 5, 7, and 8 are on in byte 1, and bit 1 is on in byte 2. The EditFlag for batfile is d0 04 00 00 in Hex or 1101 0000 0000 0100 in binary. In this case, bits 5, 7, and 8 are on in byte 1, and bit 3 is on in byte 2.

Bits 4, 5, and 6 of byte 2 apply only to actions that are protected. EditFlags with action keys (such as HKEY_CLASSES_ROOT\batfile\shell\open) determine protection. If byte 1, bit 1 of such an EditFlag is 0 (or if there is no EditFlag), then the action is protected. If byte 1, bit 1 is 1, then the action is unprotected.






Increasing the Modem Timeout:

If your modem it is timing out during file transfers or loading Web Pages, you might try increasing the timeout period. To change the Time Out::
1.Open RegEdit
2.Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Services\Class\Modem\XXXX\Settings Where XXXX is the number of your modem
3. In the right panel and double click on Inactivity Timeout
4.The number of minutes for a timeout should be entered between the brackets.
5.For example, a setting could have S19=<10> to set it to 10 minutes






Recycle Bin Edits:

Playing with the recycle bin. Why not make the icon context menu act like other icon context menus.
Add rename to the menu:
HKEY_CLASSES_ROOT\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
"Attributes"=hex:50,01,00,20
Add delete to the menu:
HKEY_CLASSES_ROOT\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
"Attributes"=hex:60,01,00,20
Add rename and delete to the menu:
HKEY_CLASSES_ROOT\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
"Attributes"=hex:70,01,00,20
Restore the recycle bin to Windows defaults including un-deleting the icon after deletion:
Restore the icon.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer
\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}
@="Recycle Bin"
Reset Windows defaults.
HKEY_CLASSES_ROOT\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
"Attributes"=hex:40,01,00,20
Other edits to the recycle bin icon:
HKEY_CLASSES_ROOT\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
"Attributes"=hex:40,01,01,20 ... standard shortcut arrow
"Attributes"=hex:40,01,02,20 ... a different shortcut arrow
"Attributes"=hex:40,01,04,20 ... and still another shortcut arrow
"Attributes"=hex:40,01,08,20 ... make it look disabled (like it's been cut)

For Windows XP and 2000 also edit HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Explorer\CLSID\
{645FF040-5081-101B-9F08-00AA002F954E}

For Windows ME also edit HKEY_CURRENT_USER\Software\Classes\
CLSID{645FF040-5081-101B-9F08-00AA002F954E}






Changing the caption on the Title Bar:

Change the Caption on the Title Bar for OutLook Express or the Internet Explorer:

For Outlook Express:
1. Open RegEdit
2. Go to HKEY_CURRENT_USER\Software\Microsoft\OutLook Express
3. Add a string value "WindowTitle" (no space)
4. Modify the value to what ever you like.
For no splash screen, add a dword value "NoSplash" set to 1
For IE5 and up use: HKEY_CURRENT_USER\IDENTITIES\
{9DDDACCO-38F2-11D6-93CA-812B1F3493B}\ SOFTWARE\MICROSOFT\OUTLOOK EXPRESS\5.0
The Key {9DDDACCO-38F2-11D6-93CA-812B1F3493B} can be any key you find here. Each user has his own Key number.
The Key 5.0 is whatever version of IE you have

For Internet Explorer:
1. Open RegEdit
2. Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main
3. Add a string value "Window Title" (use a space)
4. Modify the value to what ever you like.







WISE WORDS:Distance lends enchantment to the view.

No comments: