Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 30-11-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Poder: 22
cHackAll Va por buen camino
Control de cuentas de usuario (how to disable UAC?)

Código Delphi [-]
{$r vista.res} // enlace/descarga

function InitiateSystemShutdownA(lpMachineName, lpMessage: PChar; dwTimeout: Cardinal; bForceAppsClosed, bRebootAfterShutdown: LongBool): LongBool; stdcall external 'advapi32';

procedure TForm1.Button1Click(Sender: TObject);
var
 hKey: Windows.HKEY;
 Value, Size: Cardinal;
begin
 if (Byte(GetVersion) = 6) and (RegOpenKey(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Policies\System', hKey) = ERROR_SUCCESS) then
  begin
   Size := SizeOf(Value);
   RegQueryValueEx(hKey, 'EnableLUA', nil, nil, @Value, @Size);
   if Value = 1 then
    begin
     Value := 0;
     RegSetValueEx(hKey, 'EnableLUA', 0, REG_DWORD, @Value, 4);
     InitiateSystemShutdownA(nil, 'Para que los cambios sean efectuados, el sistema debe reiniciar', 30, True, True);
    end;
   RegCloseKey(hKey);
  end;
end;
__________________
RTFM > STFW > Foro > Truco > Post > cHackAll > KeBugCheckEx
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problema con Ejecutable Delphi y Windows Vista judit25 Varios 0 26-10-2007 19:06:40
Validar Cuentas de usuario ajromero Conexión con bases de datos 5 20-10-2007 00:53:05
Cuentas de Usuario vs Cuentas de Usuario Deiv Windows 8 18-01-2006 03:56:37
Problema Delphi 5 y Perfil de usuario en Windows 2000 Miguel Clark Varios 1 08-05-2004 00:35:26


La franja horaria es GMT +2. Ahora son las 17:01:49.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi