Page 1 of 1

LOG Off Windows by using Oracle Forms

Posted: Sat May 05, 2007 4:44 am
by ahmadbilal
This is demonstartion how to Shutdown or Logoff windows by using oracle forms.

On when button Pressed change the following code on your requirement

--when EWX_LOGOFF = 0 log off computer
--when EWX_SHUTDOWN = 1 shutddown computer
--when EWX_REBOOT = 2 reboot computer
--when EWX_FORCE = 4 shutdown immediate

declare
a number(10);
EWX_SHUTDOWN number(10):=4;
dwReserved number(10):=0;

begin
a:= user32.ExitWindowsEx(EWX_SHUTDOWN ,dwReserved);
end;



http://www.araboug.org/ib/index.php?s=f ... st&id=3509