Custom Logon Screen Background Image

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background

OEMBackground value must be 1

C:\Windows\System32\oobe

Create directory C:\Windows\System32\oobe\info\backgrounds

backgroundDefault.jpg

File must be less than 256kb filesize.

Restart computer.

Tested on Windows 7

Advertisements

Delphi Mouse Movable Form

  public
    { Public declarations }
    dragging:boolean;
    dx,dy:integer;
  end;

procedure TForm2.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
var
  p:tpoint;
begin
  if button<>mbright then
  begin
    p:=(sender as tcontrol).clienttoscreen(point(x,y));
    dragging:=true;
    dx:=p.x;
    dy:=p.y;
  end;
end;

procedure TForm2.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
var
  nx,ny:integer;
  p:tpoint;
begin
  if dragging then
  begin
    p:=(sender as tcontrol).clienttoscreen(point(x,y));
    nx:=left+p.x-dx;
    ny:=top+p.y-dy;
    dx:=p.x;
    dy:=p.y;
    BoundsRect:=rect(nx,ny,nx+width,ny+height);
  end;
end;

procedure TForm2.FormMouseUp(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  dragging:=false;
end;

VestaCP IPv6 E-mail PTR Error

Our system has detected that this message does
550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
550-5.7.1 authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more
550 5.7.1 information.

VestaCP -> DNS -> List Records

Change: “v=spf1 a mx ip4:YOUR_IP ?all”

To: “v=spf1 a mx ip4:YOUR_IP_v4 ip6:YOUR_IP_v6 ?all”

Note: Reverse IPv6 DNS must be set in the first place.

Poll

Windows Vista & 7 vs Windows XP Paths (Directories)

Windows Vista & 7 Windows XP
\Users \Documents and Settings
\Users\$USER$\Documents \Documents and Settings\$USER$\My Documents
\Users\$USER$\Music \Documents and Settings\$USER$\My Documents\My Music
\Users\$USER$\Pictures \Documents and Settings\$USER$\My Documents\My Pictures
\Users\$USER$\Videos \Documents and Settings\$USER$\My Documents\My Videos
\Users\$USER$\AppData\Roaming \Documents and Settings\$USER$\Application Data
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Cookies \Documents and Settings\$USER$\Cookies
\Users\$USER$\AppData\Local \Documents and Settings\$USER$\Local Settings
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Network Shortcuts \Documents and Settings\$USER$\NetHood
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Printer Shortcuts \Documents and Settings\$USER$\PrintHood
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Recent \Documents and Settings\$USER$\Recent
\Users\$USER$\AppData\Roaming\Microsoft\Windows\SendTo \Documents and Settings\$USER$\SendTo
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Start Menu \Documents and Settings\$USER$\Start Menu
\Users\$USER$\AppData\Roaming\Microsoft\Windows\Templates \Documents and Settings\$USER$\Templates
\Users\$USER$\AppData\Local \Documents and Settings\$USER$\Local Settings\Application Data
\Users\$USER$\AppData\Local\Microsoft\Windows\History \Documents and Settings\$USER$\Local Settings\History
\Users\$USER$\AppData\Local\Microsoft\Windows\Temporary Internet Files \Documents and Settings\$USER$\Local Settings\Temporary Internet Files
\ProgramData \Documents and Settings\All Users
\ProgramData \Documents and Settings\All Users\Application Data
\Users\Public\Desktop \Documents and Settings\All Users\Desktop
\Users\Public\Documents \Documents and Settings\All Users\Documents
\Users\Public\Favorites \Documents and Settings\All Users\Favorites
\ProgramData\Microsoft\Windows\Start Menu \Documents and Settings\All Users\Start Menu
\ProgramData\Microsoft\Windows\Templates \Documents and Settings\All Users\Templates
\Users\Default \Documents and Settings\Default User

Delphi Application Data Path

uses System.IOUtils

TPath.GetHomePath

Windows 7: C:\Users\USERNAME\AppData\Roaming

Windows XP: C:\Documents and Settings\USERNAME\Application Data

Roaming vs Local: If you are on a domain, a “roaming” profile will be uploaded before you logoff. When you log onto another computer with roaming folders, all of your files in the roaming folder will be at the new computer too. Local stays with the user on that specific computer.