471,344 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 software developers and data experts.

Get the state of "SetThreadExecutionState Function"

Hi,
Knows anyone how to get the state from the SetThreadExecutionState-Function
if any app has changed this?

http://msdn.microsoft.com/en-us/library/aa373208.aspx

thanks for any tips
Volkan

Jun 27 '08 #1
3 4464
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire.chwrote:
Hi,
Knows anyone how to get the state from the SetThreadExecutionState-Function
if any app has changed this?

http://msdn.microsoft.com/en-us/library/aa373208.aspx

thanks for any tips
Volkan
By the look of it this is a system function to inform OS that current
thread is in "WhatEverStateYouSetItTo" state, so in your oun thread
you should know which state you set it to be, there is NO need to read
the current state, because it should not change unless you change it
in your thread...
Jun 27 '08 #2
Thank you i know that ;-)

But i have strange issues with the SetThreadExecutionState, it seems to that
any other app is overwriting my settings(!?)
because that i need a way to get the setting(s)

thx
Volkan

"GArlington" <ga********@tiscali.co.ukschrieb im Newsbeitrag
news:e8**********************************@27g2000h sf.googlegroups.com...
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire.chwrote:
>Hi,
Knows anyone how to get the state from the
SetThreadExecutionState-Function
if any app has changed this?

http://msdn.microsoft.com/en-us/library/aa373208.aspx

thanks for any tips
Volkan

By the look of it this is a system function to inform OS that current
thread is in "WhatEverStateYouSetItTo" state, so in your oun thread
you should know which state you set it to be, there is NO need to read
the current state, because it should not change unless you change it
in your thread...


Jun 27 '08 #3
On Jun 19, 3:13 pm, "Volkan Senguel" <morph...@2wire.chwrote:
Thank you i know that ;-)

But i have strange issues with the SetThreadExecutionState, it seems to that
any other app is overwriting my settings(!?)
because that i need a way to get the setting(s)

thx
Volkan

"GArlington" <garling...@tiscali.co.ukschrieb im Newsbeitragnews:e8******************************** **@27g2000hsf.googlegroups.com...
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire.chwrote:
Hi,
Knows anyone how to get the state from the
SetThreadExecutionState-Function
if any app has changed this?
>http://msdn.microsoft.com/en-us/library/aa373208.aspx
thanks for any tips
Volkan
By the look of it this is a system function to inform OS that current
thread is in "WhatEverStateYouSetItTo" state, so in your oun thread
you should know which state you set it to be, there is NO need to read
the current state, because it should not change unless you change it
in your thread...
IF I understand that functionality correctly (and I hope that I do) NO
other process or thread should have access to that function. It is a
member function of this Thread, i.e. it can modify only this thread...
Make sure that you are using it correctly and that system responds to
it correctly...
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Michael Stevens | last post: by
6 posts views Thread by grbgooglefan | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.