MSFN Forum: Create a new Service - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create a new Service Rate Topic: -----

#1 User is offline   Sereby 

  • Member
  • PipPip
  • Group: Members
  • Posts: 185
  • Joined: 16-August 04

Posted 10 December 2005 - 02:54 AM

hi boys and girls

i need your help :) i want to create a new service for an app which is located in the system32 dir. i tested already the following (it would be good if it is via .inf if you found another way clal it me ^^)

[Version]
Signature=$Windows NT$

[Optional Components]
Name

[Name]
OptionDesc	="A"
Tip		="B"
Modes		=0,1,2,3
AddReg		=Base.AddReg
RegisterDlls 	=Files.Register
CreateServices	=Services.Create

[Base.AddReg]

[Files.Register]

[Services.Create] 
 "Name","Description","%11%\app.exe",0x10,0x02,"RpcSs"


but it dont work.. i get the framedy.dll error on startup^^
plz help me

Sereby


#2 User is offline   jamesagmoore 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 11-October 03

Posted 10 December 2005 - 04:22 PM

A normal windows program just as a single winmain entry point.
A service has many more to handle start/stop/pause/restart/system hibernate etc. from the service control manager. You can't just force a windows executable to behave in this way.

#3 User is offline   Sereby 

  • Member
  • PipPip
  • Group: Members
  • Posts: 185
  • Joined: 16-August 04

Posted 10 December 2005 - 05:32 PM

i only want to know how to set aprogram as an service!
just say me how to do or impossible and when impossibly why plz ^^

#4 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 10 December 2005 - 10:07 PM

This is using commandline tools:
If the executable was compiled to be used as a service, then you can use SC.exe to create the service.
If the executable was not compiled to be used as a service, then you can use Instsrv.exe and Srvany.exe from one the latest Resource Kit Tools from Microsoft, which will create the service as Srvany.exe will act as a kind of wrapper for your executable. More details can be found here.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy