How to Enable Secret HIBERNATE Button in Shut Down Dialog Box in Windows XP?

In Windows XP “Hibernate” button is not visible in Shutdown dialog box but when we press <SHIFT> key, it appears in place of “Stand By” button. Its strange and many people want to show it always in shutdown dialog box. So here I’ll tell you a way to always show Hibernate button in shutdown dialog box:

1.) Open %windir%\system32\msgina.dll file into Resource Hacker.

2.) Go to Dialog -> 20100 -> 1033.

Advertisement

3.) If you want the following look (Hibernate button at bottom) :

Shutdown_dialog_box.jpg

Replace existing code with the following code:

20100 DIALOGEX 0, 0, 208, 122
STYLE DS_SYSMODAL | DS_SETFOREGROUND | WS_POPUP | WS_BORDER
CAPTION “”
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, “MS Shell Dlg”
{
CONTROL “Flag”, 20101, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 176, 0, 32, 26
CONTROL “Good Bye”, 20102, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 7, 0, 162, 26
CONTROL “&Stand By”, 20104, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 45, 47, 22, 20
CONTROL “Switch &Off”, 20103, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 91, 47, 22, 20
CONTROL “&Reboot”, 20105, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 140, 47, 22, 20
CONTROL “&Hibernate”, 20106, BUTTON, BS_PUSHBUTTON | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 79, 94, 48, 20
CONTROL “”, 20108, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 22, 73, 50, 8
CONTROL “”, 20107, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 79, 73, 50, 8
CONTROL “”, 20109, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 136, 73, 50, 8
}

4.) OR if you want to show Hibernate button in the same row of other items, then replace existing code with the following code:

20100 DIALOGEX 0, 0, 208, 122
STYLE DS_SYSMODAL | DS_SETFOREGROUND | WS_POPUP | WS_BORDER
CAPTION “”
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, “MS Shell Dlg”
{
CONTROL “Flag”, 20101, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 176, 0, 32, 26
CONTROL “Good Bye”, 20102, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 7, 0, 162, 26
CONTROL “&Stand By”, 20104, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 68, 49, 22, 20
CONTROL “Switch &Off”, 20103, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 117, 49, 22, 20
CONTROL “&Reboot”, 20105, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 169, 49, 22, 20
CONTROL “&Hibernate”, 20106, BUTTON, BS_PUSHBUTTON | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 9, 49, 39, 20
CONTROL “”, 20108, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 55, 73, 50, 8
CONTROL “”, 20107, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 105, 73, 50, 8
CONTROL “”, 20109, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 155, 73, 50, 8
CONTROL “Hibernate”, 0, STATIC, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 14, 73, 32, 8
}

PS: Pressing <SHIFT> key to reveal Hibernate button will still work.

Advertisement

NOTE 1: If you face problems while saving the file after editing in resource hacker, then make sure you have disabled WFP (Windows File Protection) service using WFP Patcher or use Replacer to replace the file.

NOTE 2: If you get “Cannot create file” error message while saving the file, please check following tutorial:

How to Fix “Cannot Create File” Error Message While Saving Files in Resource Hacker?

UPDATE: We are pleased to announce that this tutorial has been featured in popular Indian tech magazine “Digit“.

Published in: Windows XP

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.