Thursday 2 August 2012

Removing User Pic And Login Frame From Login Screen

To Do this Trick...
Follow the Steps Given Below...


1) Open C:\windows\system32\authui.dll to edit

2) Goto UIFILE/12400

3) Search and Find(will be on line 113 of original authui.dll)

"<button id="atom(submit)" width="30rp" height="30rp" accessible="true" accrole="43" layout="flowlayout(0,2,0,2)" class = "SubmitButton"/>"

add in

"visible="false"" so it looks like "<Button id="atom(Submit)" width="30rp" height="30rp" visible="false" accessible="true" accrole="43" layout="flowlayout(0,2,0,2)" class = "SubmitButton"/>"

4) Also for the submit button I removed (lines 806-857 of original authui.dll)

<if id = "atom(Submit)">
<Button
background = "resbmp(12288,7,-1,0,0,1,1)"
margin = "rect(4rp, 0rp, 0rp, 0rp)"
visible = "false"
enabled = "false"
borderthickness = "rect(1rp, 1rp, 1rp, 1rp)"
bordercolor="gray"
borderstyle="raised"
/>
<if HighDPI="true">
<Button
background = "resbmp(12291,7,-1,0,0,1,1)"
/>
</if>
<if keyfocused="true">
<Button
background = "resbmp(12286,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="solid"
/>
<if HighDPI="true">
<Button
background = "resbmp(12289,7,-1,0,0,1,1)"
/>
</if>
</if>
<if mousefocused="true">
<Button
background = "resbmp(12286,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="solid"
/>
<if HighDPI="true">
<Button
background = "resbmp(12289,7,-1,0,0,1,1)"
/>
</if>
</if>
<if pressed="true">
<Button
background = "resbmp(12287,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="sunken"
/>
<if HighDPI="true">
<Button
background = "resbmp(12290,7,-1,0,0,1,1)"
/>
</if>
</if>
</if>


5) For the picture frame and user pic remove the following
(should be lines 624-722 of original authui.dll)

<if id = "atom(PictureContainer)">
<if ElementZoomed = "true">
<ZoomableElement
width = "190rp"
height = "190rp" 
/>
</if>
<if ElementZoomed = "false">
<ZoomableElement
width = "80rp"
height = "80rp" 
/>
</if>
</if>
<if id = "atom(PicturePadding)">
<if ElementZoomed = "true">
<ZoomableElement
padding="rect(32rp, 32rp, 32rp, 32rp)" 
/>
</if>
<if ElementZoomed = "false">
<ZoomableElement
padding="rect(16rp, 16rp, 16rp, 16rp)"
/>
</if>
</if>
<if id = "atom(Overlay)">
<if ElementZoomed = "true">
<ZoomableElement
width = "190rp"
height = "190rp"
borderthickness = "rect(1rp, 1rp, 1rp, 1rp)"
background = "resbmp(12223,7,-1,0,0,1,1)" 
/>
<if HighDPI="true">
<ZoomableElement
background = "resbmp(12238, 7,-1,0,0,1,1)"
/>
</if>
</if>
<if ElementZoomed = "false">
<ZoomableElement
width = "80rp"
height = "80rp"
borderthickness = "rect(1rp, 1rp, 1rp, 1rp)"
background = "resbmp(12222,7,-1,0,0,1,1)" 
/>
<if HighDPI="true">
<ZoomableElement
background = "resbmp(12237, 7,-1,0,0,1,1)"
/>
</if>
<if selected = "true">
<ZoomableElement
background = "resbmp(12219,7,-1,0,0,1,1)" 
/>
<if HighDPI="true">
<ZoomableElement
background = "resbmp(12234, 7,-1,0,0,1,1)"
/>
</if>
</if>
<if mousefocused = "true">
<ZoomableElement
background = "resbmp(12218,7,-1,0,0,1,1)" 
/>
<if HighDPI="true">
<ZoomableElement
background = "resbmp(12233, 7,-1,0,0,1,1)"
/>
</if>
</if>
<if selected = "true" mousefocused = "true">
<ZoomableElement
background = "resbmp(12220,7,-1,0,0,1,1)" 
/>
<if HighDPI="true">
<ZoomableElement
background = "resbmp(12235, 7,-1,0,0,1,1)"
/>
</if>
</if>
</if>
</if>
<if id = "atom(Picture)">
<if ElementZoomed = "true">
<ZoomableElement
width = "126rp"
height = "126rp"
/>
</if>
<ZoomableElement
width = "48rp"
height = "48rp"
accessible = "true"
accrole = "40"
accname = "resstr(11400)"
/>
</if> 


6) For the locked status remove the following
      (lines 530-553 of original authui.dll)

<if id = "atom(Locked)">
<element
contentalign = "wrapleft"
padding = "rect(0rp,10rp,0rp,0rp)"
/>
</if>
<if id = "atom(LockedMessage)">
<element
font = "resstr(11804)" shadowintensity="75"
padding = "rect(34rp,0rp,34rp,0rp)"
contentalign = "wrapcenter"
accessible = "true"
accrole = "41"
/>
</if>
<if id = "atom(LockedSubMessage)">
<element
font = "resstr(11800)" shadowintensity="75"
contentalign = "wrapcenter"
padding = "rect(0rp,10rp,0rp,10rp)"
accessible = "true"
accrole = "41"
/>
</if>


7) For the ease of access button remove the following
      (should be lines 243-288 of original authui.dll)

<if id = "atom(Accessibility)">
<button
width = "38rp"
height = "28rp"
padding="rect(0,0,0,0)" 
content = "resbmp(12213,2,-1,0,0,0,1)"
accname="resstr(12122)"
accdesc="resstr(12122)"
borderthickness = "rect(4rp, 2rp, 4rp, 2rp)"
background = "resbmp(12263,7,-1,0,0,1,1)"
bordercolor="gray"
borderstyle="raised"
/> 
<if keyfocused = "true">
<button
borderthickness = "rect(4rp, 2rp, 4rp, 2rp)"
background = "resbmp(12259,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="solid"
/>
</if>
<if mousefocused = "true">
<button
borderthickness = "rect(4rp, 2rp, 4rp, 2rp)"
background = "resbmp(12260,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="solid"
/>
</if>
<if keyfocused = "true" mousefocused = "true" pressed = "false">
<button
borderthickness = "rect(4rp, 2rp, 4rp, 2rp)"
background = "resbmp(12261,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="solid"
/>
</if>
<if pressed = "true">
<button
borderthickness = "rect(4rp, 2rp, 4rp, 2rp)"
background = "resbmp(12262,7,-1,0,0,1,1)"
bordercolor="windowtext"
borderstyle="sunken"
/>
</if>
</if>

8) Repeat these same steps for "UIFILE/12401" and "UIFILE/12402".

Note : Also, if you're on a 64bit OS you'll need to edit this on both the "System32/authui.dll" and the "SysWOW64/authui.dll".

I'm not sure of the "Switch User" off the top of my head but if you google for "windows 7 disable switch user" you'll find it. It's something with Group Policy you have to edit.



Enjoy :)

No comments:

Post a Comment