Great! Now I understand
This is for Delphi:
function IsMessengerAutostartEnabled: Boolean;
var
reg: TRegistry;
Buffer: DWORD;
begin
Result := False;
reg := TRegistry.Create;
try
reg.RootKey := HKEY_CURRENT_USER;
if (reg.OpenKey('\Software\Microsoft\MSNMessenger',False)) then
begin
try
if (reg.ReadBinaryData('AppSettings',Buffer,SizeOf(Buffer)) = 4) then
begin
Result := (Buffer and $0200 <> 0);
end;
except
end;
end;
finally
reg.Free;
end;
end;
One last thing though, how did you know that option was 0x200?