Search found 31 matches: logoff

Return to advanced search

Re: Logoff on exit

Try this sample: #define EWX_LOGOFF   0#define EWX_SHUTDOWN 1#define EWX_REBOOT   2#define EWX_FORCE    4#define EWX_POWEROFF 8FUNCTION LOGOFF()    ENABLEPERMISSIONS()    EXITWINDOWSEX( ...
by Enrico Maria Giordano
Thu Feb 10, 2011 10:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Logoff on exit
Replies: 3
Views: 1211

Logoff on exit

Hello!

I want to log off when the user exits FiveWin application.
Does anyone know how to do it?

Thanks,
Roman
by modicr
Thu Feb 10, 2011 9:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Logoff on exit
Replies: 3
Views: 1211

Re: Logoff in Terminal Server

Hi Fernando,
TSSHUTDN.EXE shuts down the SERVER.
but following your information I found in %windir%\system32 the TSDISCON.EXE who disconnects the terminal.
Thanks .and. regards, Euclides
by Euclides
Wed Nov 17, 2010 2:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Logoff in Terminal Server
Replies: 2
Views: 558

Re: Logoff in Terminal Server

Euclides,

Prueba este comando:
Code: Select all  Expand view
%windir%\system32\TSShutdn.exe
by fgondi
Wed Nov 17, 2010 11:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Logoff in Terminal Server
Replies: 2
Views: 558

Logoff in Terminal Server

Hi to all!
I used to turn off the computer at end of the program with:
WinExec("shutdown -s -t 5 -c 'Shutdown Message'")
Now we are using Terminal Sever and the above command does nothing on the terminals.
There is some API to logoff the terminal?
TIA .and. regards, Euclides
by Euclides
Wed Nov 17, 2010 10:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Logoff in Terminal Server
Replies: 2
Views: 558

Re: How do I send oWnd in SET KEY?

Dear All,

My LogOff() is just popup LogIn Screen and I need to hide or minimize the main window and show or maximize it. I try Static or Public are fine.

Thanks for all ideas.

Regards,
Dutch
by dutch
Wed Jul 08, 2009 6:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I send oWnd in SET KEY?
Replies: 6
Views: 1910

Re: How do I send oWnd in SET KEY?

... confirmation dialogs. Alt-F4 is the universal hot-key for exiting a program. This works for all Windows programs. So you can simply do: ...valid logoff() An then just return .t. from the logoff() function. James
by James Bott
Wed Jul 08, 2009 5:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I send oWnd in SET KEY?
Replies: 6
Views: 1910

Re: How do I send oWnd in SET KEY?

Dutch,

To my opinion "SET KEY VK_F6 TO LogOff(oWnd)" will never work.

You can't send a parameter to a function using SET KEY.

In that case, I define oWnd as a private variable, so that the function LogOff() knows oWnd without receiving it as a parameter.

Good luck.
by driessen
Tue Jul 07, 2009 11:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I send oWnd in SET KEY?
Replies: 6
Views: 1910

Re: How do I send oWnd in SET KEY?

... ; VALID if(lExit,.T., if(MsgYesNo(' Do you want to exit program ? '),.T.,.F.) ) Return(Nil) Function SetKeyOff(oWnd) SET KEY VK_F6 TO LogOff(oWnd) Return(Nil)
by Willi Quintana
Tue Jul 07, 2009 3:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do I send oWnd in SET KEY?
Replies: 6
Views: 1910

Treeview with Imagelist dont show the bitmap

Hi everyone, The code above should show the bitmap LOGOFF in prompt Level1 , ARQMIN in prompt Level2 and KEY_UP in prompt Level3... But only show bitmap in first prompt, in the others show a blank space DEFINE WINDOW oWndx FROM 1, 1 TO 31,95 TITLE ...
by yury
Mon Sep 01, 2008 8:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Treeview with Imagelist dont show the bitmap
Replies: 2
Views: 781

... -s -m \\NombrePC",0,.F.) oRemoteShell:=nil ...he conseguido que me funcione en Vista de la siguiente forma (solamente logoff): Efectivamente, se me olvido decir que solo me funciona el LOGOFF. El wscript.shell funciona de mil maravillas en vista y xp, y obviamente no ...
by metaldrummer
Fri Mar 14, 2008 6:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre el API de windows
Replies: 15
Views: 3728

... -s -m \\NombrePC",0,.F.) oRemoteShell:=nil ...he conseguido que me funcione en Vista de la siguiente forma (solamente logoff): Efectivamente, se me olvido decir que solo me funciona el LOGOFF.
by JmGarcia
Fri Mar 14, 2008 5:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre el API de windows
Replies: 15
Views: 3728

... Vista no funciona :-( Yo lo he probado en XP y Win2000. Gracias a Antonio, he conseguido que me funcione en Vista de la siguiente forma (solamente logoff): #include "hbclass.ch" #include "fivewin.ch" //definiciones para el apagado, rebooteo o cierre de sesión de windows ...
by metaldrummer
Fri Mar 14, 2008 4:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre el API de windows
Replies: 15
Views: 3728

David, Lo más sencillo es implementarla en lenguaje C completamente: //definiciones para el apagado, rebooteo o cierre de sesión de windows #DEFINE EWX_LOGOFF 0 #DEFINE EWX_POWEROFF 8 //0x00000008 #DEFINE EWX_REBOOT 2 //0x00000002 #DEFINE EWX_RESTARTAPPS 40 //0x00000040 #DEFINE EWX_SHUTDOWN 1 //0x00...
by Antonio Linares
Thu Mar 13, 2008 9:58 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre el API de windows
Replies: 15
Views: 3728

Esta función no la probé pero imagino que es lo que necesitas #Include "Fivewin.ch" #Include "dll.ch" #Include "Struct.ch" Function ChangeRes(nX,nY,lDireto) Local CCDEVICENAME := 32 Local CCFORMNAME := 32 Local EWX_LOGOFF := 0 Local EWX_SHUTDOWN := 1 Local EWX_REBOOT := 2 Local EWX_FORCE := 4 Local ...
by horacio
Wed Feb 06, 2008 10:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 8761
PreviousNext

Return to advanced search