Página 2 de 2
ShExitWindowsDlg causes GPF on Vista
Publicado: Dom Oct 07, 2007 10:49 pm
por notengo
Dionisis,
> Yes your code shuts down successfully windows vista without displaying
> the shutdown dialog
> But for the future, please try to find out a more "gently" way to
> displaying this dialog.
I found the way but it still has a little problem: it needs to set a
timeout value in order to work properly.
Use the new OBJ attached and replace the old code with this new one.
#pragma BEGINDUMP
#include <windows.h>
#include <xailer.h>
XA_FUNC( XA_VISTASHUTDOWN )
{
hb_retl( VistaShutdown( hb_parnl( 1 ) ) );
}
#pragma ENDDUMP
To test it just call: XA_VistaShutdown( <nTimeoutSeconds> ) from your
application and let me know if it works in order to include it in the next
Xailer release.
> many many thanks
You are welcome !
Regards,
José Lalín
--
ShExitWindowsDlg causes GPF on Vista
Publicado: Dom Oct 07, 2007 10:49 pm
por notengo
Dionisis,
> Yes your code shuts down successfully windows vista without displaying
> the shutdown dialog
> But for the future, please try to find out a more "gently" way to
> displaying this dialog.
I found the way but it still has a little problem: it needs to set a
timeout value in order to work properly.
Use the new OBJ attached and replace the old code with this new one.
#pragma BEGINDUMP
#include <windows.h>
#include <xailer.h>
XA_FUNC( XA_VISTASHUTDOWN )
{
hb_retl( VistaShutdown( hb_parnl( 1 ) ) );
}
#pragma ENDDUMP
To test it just call: XA_VistaShutdown( <nTimeoutSeconds> ) from your
application and let me know if it works in order to include it in the next
Xailer release.
> many many thanks
You are welcome !
Regards,
José Lalín
--
ShExitWindowsDlg causes GPF on Vista
Publicado: Dom Oct 07, 2007 11:48 pm
por Dionisis Divaris
Hello 'guru' Josi
Works fine, in the settled time pc shut's down.
The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox i
think.
The only pending issue is the following warning durring compilation:
Warning W8065 VPCI.prg 1458: Call to function 'VistaShutdown' with no
prototype in function HB_FUN_XA_VISTASHUTDOWN
1 Warnings, 0 Errors
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:47094692$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> Yes your code shuts down successfully windows vista without displaying
>> the shutdown dialog
>> But for the future, please try to find out a more "gently" way to
>> displaying this dialog.
>
> I found the way but it still has a little problem: it needs to set a
> timeout value in order to work properly.
>
> Use the new OBJ attached and replace the old code with this new one.
>
> #pragma BEGINDUMP
>
> #include <windows.h>
> #include <xailer.h>
>
> XA_FUNC( XA_VISTASHUTDOWN )
> {
> hb_retl( VistaShutdown( hb_parnl( 1 ) ) );
> }
>
> #pragma ENDDUMP
>
> To test it just call: XA_VistaShutdown( <nTimeoutSeconds> ) from your
> application and let me know if it works in order to include it in the next
> Xailer release.
>
>> many many thanks
>
> You are welcome !
>
> Regards,
> José Lalín
>
ShExitWindowsDlg causes GPF on Vista
Publicado: Dom Oct 07, 2007 11:48 pm
por Xailer
Hello 'guru' Josi
Works fine, in the settled time pc shut's down.
The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox i
think.
The only pending issue is the following warning durring compilation:
Warning W8065 VPCI.prg 1458: Call to function 'VistaShutdown' with no
prototype in function HB_FUN_XA_VISTASHUTDOWN
1 Warnings, 0 Errors
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:47094692$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> Yes your code shuts down successfully windows vista without displaying
>> the shutdown dialog
>> But for the future, please try to find out a more "gently" way to
>> displaying this dialog.
>
> I found the way but it still has a little problem: it needs to set a
> timeout value in order to work properly.
>
> Use the new OBJ attached and replace the old code with this new one.
>
> #pragma BEGINDUMP
>
> #include <windows.h>
> #include <xailer.h>
>
> XA_FUNC( XA_VISTASHUTDOWN )
> {
> hb_retl( VistaShutdown( hb_parnl( 1 ) ) );
> }
>
> #pragma ENDDUMP
>
> To test it just call: XA_VistaShutdown( <nTimeoutSeconds> ) from your
> application and let me know if it works in order to include it in the next
> Xailer release.
>
>> many many thanks
>
> You are welcome !
>
> Regards,
> José Lalín
>
ShExitWindowsDlg causes GPF on Vista
Publicado: Lun Oct 08, 2007 12:15 am
por notengo
Dionisis,
> Hello 'guru' Josi
<Blush>

> Works fine, in the settled time pc shut's down.
Ok.
> The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox
> i think.
Please, share with me any news you have on this subject so I can enhance
the function.
> The only pending issue is the following warning durring compilation:
Just add this line before the XA_FUNC declaration:
extern BOOL VistaShutdown( DWORD dwTime );
And the warning should dissapear.
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Lun Oct 08, 2007 12:15 am
por notengo
Dionisis,
> Hello 'guru' Josi
<Blush>

> Works fine, in the settled time pc shut's down.
Ok.
> The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox
> i think.
Please, share with me any news you have on this subject so I can enhance
the function.
> The only pending issue is the following warning durring compilation:
Just add this line before the XA_FUNC declaration:
extern BOOL VistaShutdown( DWORD dwTime );
And the warning should dissapear.
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mar Oct 09, 2007 7:21 am
por Dionisis Divaris
GoodMorning Jose
This is what i am using in my programs from yesterday, according to your
code:
FUNCTION ShutDown()
IF Os_IsWinVISTA()
IF MsgYesNo (;
" Do you want to Shutdown your computer?","Warning: Computer
Shutdown.")
XA_VISTASHUTDOWN(15)
ELSE
RETURN NIL
ENDIF
ELSE
ShExitWindowsDlg()
ENDIF
RETURN NIL
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:47095ad4$[email=
2@ozsrv2.ozlan.local...]
2@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> Hello 'guru' Josi
>
> <Blush>

>
>> Works fine, in the settled time pc shut's down.
>
> Ok.
>
>> The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox
>> i think.
>
> Please, share with me any news you have on this subject so I can enhance
> the function.
>
>> The only pending issue is the following warning durring compilation:
>
> Just add this line before the XA_FUNC declaration:
>
> extern BOOL VistaShutdown( DWORD dwTime );
>
> And the warning should dissapear.
>
> Regards,
> José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mar Oct 09, 2007 7:21 am
por Xailer
GoodMorning Jose
This is what i am using in my programs from yesterday, according to your
code:
FUNCTION ShutDown()
IF Os_IsWinVISTA()
IF MsgYesNo (;
" Do you want to Shutdown your computer?","Warning: Computer
Shutdown.")
XA_VISTASHUTDOWN(15)
ELSE
RETURN NIL
ENDIF
ELSE
ShExitWindowsDlg()
ENDIF
RETURN NIL
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:47095ad4$[email=
2@ozsrv2.ozlan.local...]
2@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> Hello 'guru' Josi
>
> <Blush>

>
>> Works fine, in the settled time pc shut's down.
>
> Ok.
>
>> The dialog issue may ovecamed with a simple MsgYesNoCancel() MessageBox
>> i think.
>
> Please, share with me any news you have on this subject so I can enhance
> the function.
>
>> The only pending issue is the following warning durring compilation:
>
> Just add this line before the XA_FUNC declaration:
>
> extern BOOL VistaShutdown( DWORD dwTime );
>
> And the warning should dissapear.
>
> Regards,
> José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mar Oct 09, 2007 11:36 am
por notengo
Dionisis,
> This is what i am using in my programs from yesterday, according to your
> code:
Ok. I did it the same way.
I wrote a small component with two methods:
* Shutdown(), to shutdown the system without dialog box.
* ShutdownDlg( [<nSeconds>] ), to show the dialog box.
With this approach you don't need to check what platform are you running
on, because the component do the checks itself and you will have a better
readable code, ie:
WITH OBJECT TShutdown():New()
:ShutdownDlg()
END
I will finish it today and will send it to you to test it. Once we got it
working I will write an article in our blog and will post it there.
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mar Oct 09, 2007 11:36 am
por notengo
Dionisis,
> This is what i am using in my programs from yesterday, according to your
> code:
Ok. I did it the same way.
I wrote a small component with two methods:
* Shutdown(), to shutdown the system without dialog box.
* ShutdownDlg( [<nSeconds>] ), to show the dialog box.
With this approach you don't need to check what platform are you running
on, because the component do the checks itself and you will have a better
readable code, ie:
WITH OBJECT TShutdown():New()
:ShutdownDlg()
END
I will finish it today and will send it to you to test it. Once we got it
working I will write an article in our blog and will post it there.
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mié Oct 10, 2007 11:19 pm
por notengo
Dionisis,
just a question: which version of Xailer are you using ?
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Mié Oct 10, 2007 11:19 pm
por notengo
Dionisis,
just a question: which version of Xailer are you using ?
Regards,
José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Jue Oct 11, 2007 3:31 am
por Dionisis Divaris
ok Josi
I will wating for the final test!!!!!!!!!!!!!!
Best Regards
Dionisis
"Jose Lalin" <
notengo@correo.com> wrote in message
news:470b4bcf$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> This is what i am using in my programs from yesterday, according to your
>> code:
>
> Ok. I did it the same way.
>
> I wrote a small component with two methods:
>
> * Shutdown(), to shutdown the system without dialog box.
> * ShutdownDlg( [<nSeconds>] ), to show the dialog box.
>
> With this approach you don't need to check what platform are you running
> on, because the component do the checks itself and you will have a better
> readable code, ie:
>
> WITH OBJECT TShutdown():New()
> :ShutdownDlg()
> END
>
> I will finish it today and will send it to you to test it. Once we got it
> working I will write an article in our blog and will post it there.
>
> Regards,
> Jose Lalin
ShExitWindowsDlg causes GPF on Vista
Publicado: Jue Oct 11, 2007 3:31 am
por Dionisis Divaris
ok Josi
I will wating for the final test!!!!!!!!!!!!!!
Best Regards
Dionisis
"Jose Lalin" <
notengo@correo.com> wrote in message
news:470b4bcf$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> This is what i am using in my programs from yesterday, according to your
>> code:
>
> Ok. I did it the same way.
>
> I wrote a small component with two methods:
>
> * Shutdown(), to shutdown the system without dialog box.
> * ShutdownDlg( [<nSeconds>] ), to show the dialog box.
>
> With this approach you don't need to check what platform are you running
> on, because the component do the checks itself and you will have a better
> readable code, ie:
>
> WITH OBJECT TShutdown():New()
> :ShutdownDlg()
> END
>
> I will finish it today and will send it to you to test it. Once we got it
> working I will write an article in our blog and will post it there.
>
> Regards,
> Jose Lalin
ShExitWindowsDlg causes GPF on Vista
Publicado: Jue Oct 11, 2007 6:56 am
por Dionisis Divaris
1.66 for Production and 1.75 for testing (for awhike i hope)
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:470d423e$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
> just a question: which version of Xailer are you using ?
>
> Regards,
> José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Jue Oct 11, 2007 6:56 am
por Xailer
1.66 for Production and 1.75 for testing (for awhike i hope)
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:470d423e$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
> just a question: which version of Xailer are you using ?
>
> Regards,
> José Lalín
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 12:43 pm
por notengo
Dionisis,
> 1.66 for Production and 1.75 for testing (for awhike i hope)
Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
Monday I will try to send the 1.66 one.
Add it to your project and remember to delete the OBJ from previous tests
and remove the code I wrote in previous messages. To use it just write:
WITH OBJECT TShuwdown():New()
:Shutdown() // Does direct shutdown
//:ShutdownDlg( nSeconds ) // Shows the dialog
END
Regards,
José Lalín
--
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 12:43 pm
por notengo
Dionisis,
> 1.66 for Production and 1.75 for testing (for awhike i hope)
Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
Monday I will try to send the 1.66 one.
Add it to your project and remember to delete the OBJ from previous tests
and remove the code I wrote in previous messages. To use it just write:
WITH OBJECT TShuwdown():New()
:Shutdown() // Does direct shutdown
//:ShutdownDlg( nSeconds ) // Shows the dialog
END
Regards,
José Lalín
--
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 8:37 pm
por Dionisis Divaris
Hello Josi
Trying to compiling the TshutDown(), getting errors :
Compiling: test_shutDown.prg...
Compiling: Form1.prg...
Linking: test_shutDown.exe...
Error: Unresolved external '_HB_FUN_TSHUWDOWN' referenced from
C:XAILER175TEST PROJECTSOBJFORM1.OBJ
0 Warnings, 1 Errors
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:470f500c$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> 1.66 for Production and 1.75 for testing (for awhike i hope)
>
> Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
> Monday I will try to send the 1.66 one.
>
> Add it to your project and remember to delete the OBJ from previous tests
> and remove the code I wrote in previous messages. To use it just write:
>
> WITH OBJECT TShuwdown():New()
> :Shutdown() // Does direct shutdown
> //:ShutdownDlg( nSeconds ) // Shows the dialog
> END
>
> Regards,
> José Lalín
>
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 8:37 pm
por Xailer
Hello Josi
Trying to compiling the TshutDown(), getting errors :
Compiling: test_shutDown.prg...
Compiling: Form1.prg...
Linking: test_shutDown.exe...
Error: Unresolved external '_HB_FUN_TSHUWDOWN' referenced from
C:XAILER175TEST PROJECTSOBJFORM1.OBJ
0 Warnings, 1 Errors
Regards
Dionisis
Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
news:470f500c$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Dionisis,
>
>> 1.66 for Production and 1.75 for testing (for awhike i hope)
>
> Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
> Monday I will try to send the 1.66 one.
>
> Add it to your project and remember to delete the OBJ from previous tests
> and remove the code I wrote in previous messages. To use it just write:
>
> WITH OBJECT TShuwdown():New()
> :Shutdown() // Does direct shutdown
> //:ShutdownDlg( nSeconds ) // Shows the dialog
> END
>
> Regards,
> José Lalín
>
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 8:54 pm
por Dionisis Divaris
Josi
The correct call is:
With Object TSysShutDown():New()
:ShutDown() //For Direct ShutDown and
:ShutDownDlg(nSeconds) // For Dialog ShutDown
END
But i can not still run the test, since the 1.75 debuger issues ( for
awhile i hope)!!!!
Best Regards
Dionisis
Ο "Dionisis Divaris" <
info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:470fbf16$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
> Hello Josi
> Trying to compiling the TshutDown(), getting errors :
>
> Compiling: test_shutDown.prg...
> Compiling: Form1.prg...
> Linking: test_shutDown.exe...
> Error: Unresolved external '_HB_FUN_TSHUWDOWN' referenced from
> C:XAILER175TEST PROJECTSOBJFORM1.OBJ
> 0 Warnings, 1 Errors
>
> Regards
> Dionisis
>
> Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
> news:470f500c$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>>
>> Dionisis,
>>
>>> 1.66 for Production and 1.75 for testing (for awhike i hope)
>>
>> Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
>> Monday I will try to send the 1.66 one.
>>
>> Add it to your project and remember to delete the OBJ from previous tests
>> and remove the code I wrote in previous messages. To use it just write:
>>
>> WITH OBJECT TShuwdown():New()
>> :Shutdown() // Does direct shutdown
>> //:ShutdownDlg( nSeconds ) // Shows the dialog
>> END
>>
>> Regards,
>> José Lalín
>>
>
ShExitWindowsDlg causes GPF on Vista
Publicado: Vie Oct 12, 2007 8:54 pm
por Xailer
Josi
The correct call is:
With Object TSysShutDown():New()
:ShutDown() //For Direct ShutDown and
:ShutDownDlg(nSeconds) // For Dialog ShutDown
END
But i can not still run the test, since the 1.75 debuger issues ( for
awhile i hope)!!!!
Best Regards
Dionisis
Ο "Dionisis Divaris" <
info@sgs-soft.gr> ÎγÏαψε στο μήνυμα
news:470fbf16$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
> Hello Josi
> Trying to compiling the TshutDown(), getting errors :
>
> Compiling: test_shutDown.prg...
> Compiling: Form1.prg...
> Linking: test_shutDown.exe...
> Error: Unresolved external '_HB_FUN_TSHUWDOWN' referenced from
> C:XAILER175TEST PROJECTSOBJFORM1.OBJ
> 0 Warnings, 1 Errors
>
> Regards
> Dionisis
>
> Ο "José Lalín" <
notengo@correo.com> ÎγÏαψε στο μήνυμα
> news:470f500c$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>>
>> Dionisis,
>>
>>> 1.66 for Production and 1.75 for testing (for awhike i hope)
>>
>> Ok, I am working with 1.75/CVS so I attached the lib for 1.75 version. By
>> Monday I will try to send the 1.66 one.
>>
>> Add it to your project and remember to delete the OBJ from previous tests
>> and remove the code I wrote in previous messages. To use it just write:
>>
>> WITH OBJECT TShuwdown():New()
>> :Shutdown() // Does direct shutdown
>> //:ShutdownDlg( nSeconds ) // Shows the dialog
>> END
>>
>> Regards,
>> José Lalín
>>
>