[python-win32] Re: Windows log out service problem

2007-08-08 Thread Roger Upole
Zdenek Mejzlik wrote: > Hi. > > This post is similar to one sent by Tom Dalton 12 June 2007. > Unfortunately, appropriate solution of his problem was not published yet. > > I'm trying to create a simple windows service. I found code of simple > service on the Internet. Service works well as lon

Re: [python-win32] Windows log out service problem

2007-08-08 Thread Mark Hammond
I believe this is caused by Windows sending a CTRL_LOGOFF_EVENT to the service - http://msdn2.microsoft.com/en-us/library/ms683242.aspx has some details. Adding your own handler for this notification may allow you to prevent the problem, but I don't have the time at the moment to experiment with t

[python-win32] Windows log out service problem

2007-08-08 Thread Zdenek Mejzlik
Hi. This post is similar to one sent by Tom Dalton 12 June 2007. Unfortunately, appropriate solution of his problem was not published yet. I'm trying to create a simple windows service. I found code of simple service on the Internet. Service works well as long as I'm logged in. But as soon as

Re: [python-win32] Python-win32 Digest, Vol 53, Issue 8

2007-08-08 Thread Huang Guan
Dear All, Roger, thanks for your patch, I have settled the fourth question successfully. Thanks Tim Roberts,Michel Clveau and Richard Bell gave much good suggestions, which elicitation to resolve this question better. Mhammond, thank you for leading to subscribe to python mail list, which is a v

[python-win32] Re: problem with UNICODE network paths and

2007-08-08 Thread Roger Upole
Shailesh Kumar wrote: > Hi, > I am facing a problem with network paths which contain non-ascii > characters when trying to map them. > > More precisely, the location contains Korean characters. > location = ur'\\baton1\TestStreams\shailesh\게댜ㅕㅔ걷;어니;ㅓ' > > WNetAddConnection2 function expects string