Skype prevents XP shut down

S

Sara Li

Skype prevents Windows XP from shut down on my friend's computer. I
click Start>Shut Down>Turn Off Computer and XP closes half of the
running tray icon programs but then XP just keeps running like the shut
down request was never made. I have to do Start>Shut Down>Turn Off a
second time to make it work.

If I manually shut down Skype.exe first the computer shuts down
correctly so I'm quite sure that Skype is the culprit. Any
registry-entry tweak to solve this without having to manually close
Skype prior to shut down? I've reduced the time delay in the registry
but that doesn't help. I need something like killtask to do the job but
I want it to happen automatically, not with a separate shut down icon,
that's why I'm looking for a registry type solution. Thanks.
 
N

Newbie Coder

Sara Li,

The best thing open to you is for you to e-mail Skype directly. They aren't
very good or quick to answer though. Here's the link:

http://support.skype.com/

Let's hope you don't get Indrek, Davide, Natalia, Katri or Siong helping you
because they are worse than useless

You will need to let them know what version you are using & the username you
use for Skype too. Latest version is 3.1.0.147 released 21st March, 2007 &
can be downloaded here:

http://www.skype.com/intl/en/download/skype/windows/

A 'registry type solution' won't help you in this because it sounds like
they have neglected to override WndProc & check for the WM_QUERYENDSESSION
Windows message, which is what normally stops programs closing with Windows.

Here's what I mean in VB.NET (copied from one of my apps):

Dim WM_QUERYENDSESSION As Integer = &H11
<System.Security.Permissions.PermissionSetAttribute(System.Security.Permissi
ons.SecurityAction.Demand, Name:="FullTrust")> _

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)

' Listen for operating system messages

If m.Msg = WM_QUERYENDSESSION Then

' Close application when Windows is Logging off, restarting or
shutting down

Application.Exit()

End If

' Handle the message

MyBase.WndProc(m)

End Sub

I think Skype is written in C++ which is slightly different & managed code
is something similar (directly typed in the post not from the IDE):

int WM_QUERYENDSESSION = 0x11;

protected: virtual void WndProc (System::Windows::Forms::Message m)
{
if (m->Msg == WM_QUERYENDSESSION)
{
Application::Exit();
}
Form::WndProc(m);
}

Sorry, I cannot be of more help, but you get the idea
 
S

Sara Li

Newbie said:
Sara Li,

The best thing open to you is for you to e-mail Skype directly. They aren't
very good or quick to answer though. Here's the link:

http://support.skype.com/

Let's hope you don't get Indrek, Davide, Natalia, Katri or Siong helping you
because they are worse than useless

You will need to let them know what version you are using & the username you
use for Skype too. Latest version is 3.1.0.147 released 21st March, 2007 &
can be downloaded here:

http://www.skype.com/intl/en/download/skype/windows/

A 'registry type solution' won't help you in this because it sounds like
they have neglected to override WndProc & check for the WM_QUERYENDSESSION
Windows message, which is what normally stops programs closing with Windows.

Here's what I mean in VB.NET (copied from one of my apps):

Dim WM_QUERYENDSESSION As Integer = &H11
<System.Security.Permissions.PermissionSetAttribute(System.Security.Permissi
ons.SecurityAction.Demand, Name:="FullTrust")> _

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)

' Listen for operating system messages

If m.Msg = WM_QUERYENDSESSION Then

' Close application when Windows is Logging off, restarting or
shutting down

Application.Exit()

End If

' Handle the message

MyBase.WndProc(m)

End Sub

I think Skype is written in C++ which is slightly different & managed code
is something similar (directly typed in the post not from the IDE):

int WM_QUERYENDSESSION = 0x11;

protected: virtual void WndProc (System::Windows::Forms::Message m)
{
if (m->Msg == WM_QUERYENDSESSION)
{
Application::Exit();
}
Form::WndProc(m);
}

Sorry, I cannot be of more help, but you get the idea

Thanks, I did email them but since others aren't experiencing this same
problem I doubt they'll have a solution.
 
N

Newbie Coder

What version are you using Sara Li?

You are the first person I have known to have this issue & I administer it
over an 11, 000 user network. Plus, many of my friends have it & have no
problems whatsoever.

Please post back your findings because it will be a great help, but don't
expect anything from Skype for a number of days. Sometimes Skype take over
10 days to reply to a PAID issue, which they say would be dealt with
promptly
 
S

Sara Li

Newbie said:
What version are you using Sara Li?

You are the first person I have known to have this issue & I administer it
over an 11, 000 user network. Plus, many of my friends have it & have no
problems whatsoever.

Please post back your findings because it will be a great help, but don't
expect anything from Skype for a number of days. Sometimes Skype take over
10 days to reply to a PAID issue, which they say would be dealt with
promptly

The newest Skype version 3.1 has a bug which caused the problem. I found
an older version 3, installed it and the problem disappeared.
 
N

Newbie Coder

That's great Sara Li!

I have every Windows version backed-up on my server since 2.5. Yes, the
newest version is 3.1.0.147 & I always find many bugs in each version of
Skype & have reported one bug before Christmas which after 5 or more reports
Skype support said they would finally tell the developers, which was passed
to them supposedly 2-3 days ago.

Even their site is buggy & buying Skype Out credit is incredibly slow

The network I administer is around 10, 000 XP Pro SP2 machines with the
others being 2000 Pro & none have had problems with the latest version of
Skype whatsoever. You must just be unlucky or me very fortunate.

I wrote a program that makes the computers SendTo folder write permission
deny, which stops Skype from adding their SedTo icon on installation or each
time Skype is run. I released it on the Internet & get around 12, 000
downloads a week. Just shows you how many others don't like this feature of
Skype too.

Anyway. Glad you sorted it though,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top