473,382 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 4623
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michael Stevens | last post by:
Probably the wrong wording but since I'm not a scripter I won't claim to know what I'm talking about. I got this script from www.htmlgoodies.com <script language="JavaScript"> <!--...
6
by: Clément Collin | last post by:
I working on a GIS project, with Access link which just need a little routine in VBA, but I haven't knowledges in VBA language. It's very simple, and it looks like that in a TPascal way : .......
6
by: murgan | last post by:
Hi people, i am new to this group,this is my first query, friends i want to know the difference between "function pointer" and "pointer to a function" in c lang, so friends please send the...
0
by: . | last post by:
http://daviderognoni.blogspot.com?locawapp - MAIN NEWS =========== * add thread * add "Request" object * new "locawapp_main" function * fixed files.py
3
by: Chen ShuSheng | last post by:
HI, I am now study a segment of codes: ------------------------ printf("%p\t",fp); /*add by me*/ fseek(fp, 0L, SEEK_END); /* go to end of file */ printf("%p\t",fp); ...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
2
by: whitsey | last post by:
Trying to concatenate two fields into one however I seem unable to do so. All I want is to execute the following SELECT MONTH(L.DATE) ||' '|| YEAR(L.DATE) as MTH_OF_YEAR FROM LOG L But I...
0
by: DR | last post by:
when i build someone's project, and right click a function "goto definition" is disabled. how to reconfigure a .net project to support "goto definition" when i right click on function calls?
6
by: grbgooglefan | last post by:
I am creating functions, the return result of which I am using to make decisions in combined expressions. In some expressions, I would like to inverse the return result of function. E.g....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.