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
LOG Off Windows by using Oracle Forms
-
- Posts: 615
- Joined: Mon Sep 18, 2006 1:32 am
- Location: United Arab Emirates
- Contact:
Who is online
Users browsing this forum: Bing [Bot] and 11 guests