473,550 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get the state of "SetThreadExecu tionState Function"

Hi,
Knows anyone how to get the state from the SetThreadExecut ionState-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 4633
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire .chwrote:
Hi,
Knows anyone how to get the state from the SetThreadExecut ionState-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 "WhatEverStateY ouSetItTo" 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 SetThreadExecut ionState, 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********@tis cali.co.ukschri eb im Newsbeitrag
news:e8******** *************** ***********@27g 2000hsf.googleg roups.com...
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire .chwrote:
>Hi,
Knows anyone how to get the state from the
SetThreadExecu tionState-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 "WhatEverStateY ouSetItTo" 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 SetThreadExecut ionState, 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...@tis cali.co.ukschri eb im Newsbeitragnews :e8************ *************** *******@27g2000 hsf.googlegroup s.com...
On Jun 19, 2:06 pm, "Volkan Senguel" <morph...@2wire .chwrote:
Hi,
Knows anyone how to get the state from the
SetThreadExecut ionState-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 "WhatEverStateY ouSetItTo" 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
2765
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"> <!-- window.open ('photos01.html','photogallery',config='height=550, width=750,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no,...
6
6709
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 : .... Var RecordNb : integer ; .... {Command : function of Access}
6
17074
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 answers as early as possible, thanking u all vijay
0
1676
by: . | last post by:
http://daviderognoni.blogspot.com?locawapp - MAIN NEWS =========== * add thread * add "Request" object * new "locawapp_main" function * fixed files.py
3
2936
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); /*add by me*/ last = ftell(fp); cout<<"last="<<last<<"\t"; /*add by me*/ -------------------------
1
2276
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 combine the "Edit" and "Display" funtions into this page. (It means if user want to edit the customer information, this page would provided editing page...
2
27666
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 get this error:
0
1285
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
1753
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. function contains(source,search) will return true if "search" string is found in source string. I want to make reverse of this by putting it as: if ( !...
0
7561
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7488
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7761
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7999
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7520
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3532
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3517
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1978
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1094
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.