Zitat von
Olli:
Zitat von
ZuBi:
hello, the problem comes when trying to implent
dll as service, it is possible and works at C. the SCM can control
dll, as micrsoft doind it with loaders (svchost), there is no dubet the error comes when trying to reg the procedure, if i covert it to exe it works like it shuold, seince it
dll and delphi doesnt speak with win like c, i tryd using stcall to make it like c, since nobody if its really works, its not. and i still cant make it as a service. the problem its possible becouse same thing works with c code posted artclie i saw some where. now can u sper few min and try slove it ? with code. u dont need alot just proc for install then to reg it(StartServiceCtrlDispatcher). if u want my codes let me know.
Thanks for the hint. You are right. MS uses this method (starting with
W2K or WXP) to run different services in different instances of "svchost.exe".
Can you please post the link to the article (with C code). Maybe it will bring the enlightening moment
... thanks.
i am sorry but the article is down atm or deleted i will tr y to find u
anyway here is a link might help
http://support.microsoft.com/?kbid=314056
first u create a service, then spfic it to svchost, and add feild called servicedll that has your
dll
after that u just make the service - < not works
ps. i will try to reserch it again.. couse i need it too i am days on it and nothing.
{
// Articles:
// 1. HOWTO Create a service
dll used by svchost.exe by bingle, at:
http://www.BingleSite.net/article/sv...l-service.html
// 2. Inside
Win32 Services, Part 2 by: Mark Russinovich, at:
http://www.winnetmag.com/Articles/In...leID=8943&pg=3
// 3. Platform
SDK: Tools - Rundll32, at:
http://msdn.microsoft.com/library/en...s/rundll32.asp
}