LOG Off Windows by using Oracle Forms

To discuss Oracle Forms & Reports related technical issues.
Post Reply
ahmadbilal
Posts: 615
Joined: Mon Sep 18, 2006 1:32 am
Location: United Arab Emirates
Contact:

LOG Off Windows by using Oracle Forms

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests