PDA

View Full Version : Tutorial: Custom 7 Authui.dll by ~asilaydyingdl



razorsedge
August 9th, 2010, 05:29 AM
Tutorial: Custom 7 Authui.dll by ~asilaydyingdl

35192



Tutorial: Custom 7 Authui.dll

The download contains a full .doc version of the directions.

Many of you may have desired to create a custom Logon screen free of Windows elements, or with a reduced amount of Windows elements. In XP, the process was simple. Just install a premade custom logon which replaced those elements for you. However, this ability was lost with the advent of the authui.dll in Vista. Yet in Vista, there was still much you could do with the authui. However, that is not so in Windows 7.

So, in this tutorial, I will tell you exactly what you need to know in order to create your own custom authui.dll file. First, let’s review the two major limitations of the Windows 7 authui.dll.

Limitation 1: Inability to erase data from bitmaps.

You cannot erase anything from the original bitmaps in the authui. Doing so will disturb the transparency and render the bitmap malicious to the authui. Therefore, whenever you edit a bitmap you must either copy/paste your work directly over the existing image, or draw in solid colors overtop of the existing work. This means that when you change the user picture frame, the edges must blend into the logon screen’s background image.

Limitation 2: Inability to change placement of the User Picture frame and Password box.

This limitation is something that may eventually be overcome with more time and effort, however, we will avoid any attempt at adjusting the placement for the sake of this tutorial. When considering the logon background image, consider that you will not be able to relocate those, and make sure that any images embedded into the background image will not be covered up by the user picture frame and password box.

Limitation 3: I AM NOT RESPONSIBLE FOR DAMAGE DONE TO YOUR COMPUTER. As always, edit and use edited dll files at your own risk.

Now, let’s create! First, you will need two tools; Resource Hacker and GIMP (or equivalent programs that you are familiar with). If you do not have them, here are links to download them.


Step 1: Disabling UAC and installing Take Ownership.

First, Download this link 35193 and install the Take Ownership.reg. After that, go to your User Accounts in the Control Panel. Click on the “Change User Account Control Settings” or equivalent link and disable your User Account Control. Restart your computer.

Step 2: Create a modifiable authui.dll.

Navigate to your \Windows\System32 folder and locate the authui.dll. Copy and and paste it someplace else, like your desktop. DO NOT REMOVE IT FROM YOUR SYSTEM32 FOLDER!!!! You will not be able to login or access your Ctrl+Alt+Del screen if you do. Navigate to your desktop and right click on the copy you made and take ownership of it. Then, open it using Resource Hacker.

Step 3: Extract the bitmaps.

Open Resource Hacker. Now click on file>open. Navigate to the location of your copy (i.e. the desktop) and open the authui.dll. You will now see a folder tree in the left navigation pane of Resource Hacker. Expand the Bitmap folder. Now, scroll down to bitmap number 12218. Expand it as well. Click on “1033” to highlight it. You will now see a picture of the current bitmap in the right pane of Resource Hacker. Right click on 1033 and select “Save [Bitmap:12218:103]…” and save the bitmap to a location, such as your desktop. Repeat this step for the following bitmaps:

12219, 12220, 12221, 12222, 12223, 12224, 12225, 12226, 12227, 12233, 12234, 12235, 12236, 12237, 12238, 12280, 12281, 12282, 12286, 12287, and 12288.

Step 4: Editing the bitmaps.

Open up GIMP. In gimp, go to file>Open and open up 12218. We will practice with it. There are only two ways we can edit this image. The first way is to draw directly over the existing image. You see this in example A in the screenshot. DO NOT DRAW INSIDE THE FRAME. This may cause your frame to render improperly. The second way is to copy and paste a pre-made image over top of the existing frame. You see this in example B in the screenshot. DO NOT PASTE INSIDE THE FRAME. This may cause your frame to render improperly. After you are done drawing or copying/pasting your image in, save the bitmap.

Step 5: Integrating your edited bitmaps with Resource Hacker.

Open your authui.dll again using resource hacker. Navigate again to the 12218 bitmap. Now, right click on 1033 like in step 3. This time, click on “Replace Resource…” and navigate to the bitmap you just edited. Select it and click on “Replace” in the dialog. Congratulations! You now have your own custom bitmap. Click on File>Save in Resource Hacker to save your edits.

Step 6: Testing.


BEFORE YOU TEST, I HIGHLY RECOMMEND THE FOLLOWING: Either A) have your Windows 7 install disk near so you can run a repair utility if there is a problem or B) set your computer up as a dual boot system. Dual booting is easier because you can just log onto your other OS, navigate to your Windows 7 System32 folder, and restore the original authui.dll.

To test, you must first navigate to your System32 folder and rename your original authui.dll. Give it a name like “authui_win7original.dll” or something that makes it recognizable. After you rename, copy and paste the edited authui.dll into your System32 folder. To test your authui, perform the following:

A. Hit Ctrl+Alt+Del. If the CAD screen appears, click on “Lock Screen.” If the screen locks successfully and you can unlock it, then proceed to next step.

B. Save what you are doing and log off of your computer. If you can log off and log back in, Proceed to next step.
C. Go to your control Panel and click on User Acounts. If you are a single account user, turn on the guest account. If you are a multiple accounts user, turn off your all accounts but you own. Now log off and log back in again.
If the tests worked, congratulations! You have successfully edited your authui.dll. Now following these same steps, continue to edit your authui as you please.

This tutorial tells you have to remove the shutdown button from the dialog: http://virtualcustoms.net/showthread.php/29770-How-to-Remove-Shutdown-Button-from-Windows-Vista-and-7-Login (http://virtualcustoms.net/viewtopic.php?f=108&t=3264)
This tutorial tells you how to remove the branding and ease of access button from the dialog: http://virtualcustoms.net/showthread.php/29771-How-to-Remove-%C2%93Branding-Logo%C2%94-and-%C2%93Ease-of-Access%C2%94-%28Accessib


(http://virtualcustoms.net/viewtopic.php?f=108&t=3265)