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 


Writing Services in C Win32

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

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue Feb 22, 2011 11:16 pm    Post subject: Writing Services in C Win32 Reply with quote

I was looking around the web how would i create a service in win32 C
and i saw all kinds of things that i didn't understand much.

is there a special main entry for service as WinMain or DllMain?
for a start i'd like to create a service that would prompt me a simple messagebox saying "this is a service"

any help would be great

_________________
Stylo


Last edited by Stylo on Wed Feb 23, 2011 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Feb 23, 2011 1:25 am    Post subject: Reply with quote

Look into: CreateService
http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx

And the API the goes with it.

Here's a fairly old example:
http://www.devx.com/cplus/Article/9857/0/page/1

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Feb 23, 2011 1:02 pm    Post subject: Reply with quote

I'm sorry i ment writing services, i know how to create and start
my bad for the title
i'll change it

I'll check the five steps you've given, thanks

_________________
Stylo
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Feb 23, 2011 5:03 pm    Post subject: Reply with quote

The API link I gave is part of what you need to use in order to write the service. You can see another full example on MSDN here too:
http://msdn.microsoft.com/en-us/library/bb540476%28v=vs.85%29.aspx

Granted its not 'C' specific so you will have to modify it some to compile as C.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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