Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] Thread.Suspended, Thread.Resume, Thread.Sleep

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Nov 27, 2008 10:16 pm    Post subject: [C#] Thread.Suspended, Thread.Resume, Thread.Sleep Reply with quote

They all are "outdated" or don't work is what C# says. different methods?
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Thu Nov 27, 2008 10:42 pm    Post subject: Reply with quote

PInvoke SuspendThread,ResumeThread,Sleep?
Back to top
View user's profile Send private message MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Nov 27, 2008 11:12 pm    Post subject: Reply with quote

BanMe wrote:
PInvoke SuspendThread,ResumeThread,Sleep?


Those all take an hThread parameter, I believe. As far as I know, the managed Thread class doesn't offer that as a public field.

Though, you could probably do something like this (assuming the class isn't marked as sealed):

Code:

public ThreadWrapper : Thread
{
    IntPtr hThread { get{ return m_hThread; } }
}


Replace m_hThread with whatever the variable is, in the Thread class. Use Reflector on the System dll, and check it out.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites