Results 1 to 4 of 4

Thread: custom message for shutting down Windows 7

  1. #1
    Join Date
    Jun 2013
    Posts
    100

    custom message for shutting down Windows 7

    I am running Windows 7 on my computer and I want to know a way to display a custom message when shutting down this operating system. I have looked for many software available on the internet but nothing works to what I am seeking for. So, can anyone tell me whether there is any software existing for doing such things? Also, if there is any manual way to do it then please let me know that method as well. Thanks for any help.

  2. #2
    Join Date
    Jan 2008
    Posts
    644

    Re: custom message for shutting down Windows 7

    There is a tool called shutdown101 that you can download from this direct link - http://retired.beyondlogic.org/solut...hutdown101.zip. After downloading this software, simply open command prompt by going to Start and then in Search box type CMD and run as administrator. After that go to the folder where you have saved this file and as an example you can type like this shutdown.exe -m "wow" -l 10 and it will work fine without any trouble. Hope this helps you out.

  3. #3
    Join Date
    May 2008
    Posts
    678

    Re: custom message for shutting down Windows 7

    Open Windows Explorer and go to C:\Windows\System32\en-US\wininit.exe.mui. After that take ownership of the wininit.exe.mui file with your user account and set its permissions to allow your user account with full control and then close Windows Explorer when finished. Now copy the wininit.exe.mui file on your desktop and then download latest version of Resource Hacker from internet. After installing it right click on it and run as administrator and then click on File and open. Go to C:\Windows\System32\en-US and choose All Files in the Files of type drop down menu and choose wininit.exe.mui file and then click on open button. At the left side of Resource hacker, expand String Table and 63 to 1033. Now at the right side of 1033, replace the Shutting down text in quotes at teh 1002 location with the text that you want withint the quotes and then click on Compile Script button. Now click on File and Save and close Resource Hacker. Now copy the modified wininit.exe.mui file on your desktop and then paste it in this location - C:\Windows\System32\en-US folder. Now restart the computer and at boot whenever you will press the shut down button then it will display your modified text always.

  4. #4
    Join Date
    Jun 2009
    Posts
    360

    Re: custom message for shutting down Windows 7

    Below is a C++ code through which you will be able to shutdown your computer with a custom message:

    Code:
    #include <windows.h>
    
    #pragma comment( lib, "advapi32.lib" )
    
    BOOL MySystemShutdown( LPTSTR lpMsg )
    {
       HANDLE hToken;              // handle to process token 
       TOKEN_PRIVILEGES tkp;       // pointer to token structure 
    
       BOOL fResult;               // system shutdown flag 
    
       // Get the current process token handle so we can get shutdown 
       // privilege. 
    
       if (!OpenProcessToken(GetCurrentProcess(), 
            TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) 
              return FALSE; 
    
       // Get the LUID for shutdown privilege. 
    
       LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, 
            &tkp.Privileges[0].Luid); 
    
       tkp.PrivilegeCount = 1;  // one privilege to set    
       tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; 
    
       // Get shutdown privilege for this process. 
    
       AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, 
      (PTOKEN_PRIVILEGES) NULL, 0); 
    
       // Cannot test the return value of AdjustTokenPrivileges. 
    
       if (GetLastError() != ERROR_SUCCESS) 
          return FALSE; 
    
       // Display the shutdown dialog box and start the countdown. 
    
       fResult = InitiateSystemShutdown( 
          NULL,    // shut down local computer 
          lpMsg,   // message for user
          30,      // time-out period, in seconds 
          FALSE,   // ask user to close apps 
          TRUE);   // reboot after shutdown 
    
       if (!fResult) 
          return FALSE; 
    
       // Disable shutdown privilege. 
    
       tkp.Privileges[0].Attributes = 0; 
       AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, 
        (PTOKEN_PRIVILEGES) NULL, 0); 
    
       return TRUE; 
    }

Similar Threads

  1. Custom Text message alerts for iphone without jailbreak
    By Aaryan2011 in forum Portable Devices
    Replies: 6
    Last Post: 11-08-2011, 10:31 PM
  2. Replies: 5
    Last Post: 31-05-2011, 10:47 AM
  3. Setting custom Text Message Ringtone
    By Illinois in forum Portable Devices
    Replies: 6
    Last Post: 04-07-2010, 03:05 AM
  4. Display own Custom Message on Startup
    By Orlando in forum Customize Desktop
    Replies: 1
    Last Post: 02-03-2009, 06:16 PM
  5. vbscript to display custom message at windows startup
    By Dr.pter in forum Software Development
    Replies: 2
    Last Post: 22-10-2008, 07:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,921,310.57585 seconds with 17 queries