AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 13:47

Parameter dieser Suchanfrage:

Suche in Thema: Why Cant Start A service.
Suche alle Beiträge, die von "ZuBi" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 7 von insges. 7 Treffern
Suche benötigte 0.004s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 6. Jul 2005
    its not that, those things are old problems :>

    i will say it in other way: is it possible to halt the main thread when servicemain is called
  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 6. Jul 2005
    Hi,

    my sample code is almost finished, but works not perfectly yet. That's why I do not publish it right now. You will have to wait some days. Sorry for that.

    How can you distinguish? Well, easy. You have two choices:
    - Get the module handle of the EXE and check the name for svchost.exe vs. rundll32.exe
    - Check under which account you run. SYSTEM is most likely the result when running...
  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 2. Jul 2005
    wow nice, where did u read that ? (i didnt know this), thats make me to next qustion then, how can i know if the program is running a service, and not called by rundll( if i got true with (StartServiceCtrlDispatcher) means its running as a servie)), is it possible without making a function for connect to scm and chk the status ?
  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 1. Jul 2005
    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.

    {...
  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 30. Jun 2005
    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...
  • Forum: Win32/Win64 API (native code)

    Re: Why Cant Start A service.

      Delphi
      by ZuBi, 21. Jun 2005
    i quite sure the problem is in there, there for i debug it


    FillChar(DispatchTable, SizeOf(DispatchTable), 0);
    DispatchTable.lpServiceName:= PChar(S_Name);
    DispatchTable.lpServiceProc:= @ServiceProc;
    If not StartServiceCtrlDispatcher(DispatchTable) Then AddToMessageLog('StartServiceCtrlDispatcher error');


    Log:
  • Forum: Win32/Win64 API (native code)

    Why Cant Start A service.

      Delphi
      by ZuBi, 21. Jun 2005
    i wrote an service, now when trying to run him i get this:


    C:\svch\dll>net start xmldrv
    The Who care ha it service is starting.
    The Who care ha it service could not be started.

    A system error has occurred.

    System error 127 has occurred.


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=ZuBi&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=48156
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:52 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz