Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   CreateProcess aus ISAPI-Dll (https://www.delphipraxis.net/211383-createprocess-aus-isapi-dll.html)

charly52 8. Sep 2022 15:42

CreateProcess aus ISAPI-Dll
 
Hi

ich erzeuge aus eine VCL-App mit CreateProcess eine KonsolenApp und kann von VCL-App aus Daten über eine Pipe zur KonsolenApp schicken.

Wenn ich CreateProcess in der ISAP absetze, gibt die success zurück, aber es passiert einfach nichts.

Edit: Korrektur, wenn die KonsolenApp eine 32Bit Anwendung ist gibt es zumindest 2 Einträge im Taskmanager unter Hintergundprozesse
Bei einer 64Bit Anwendung gibt es keinen Success und KEINE Einträge.


Bei MS habe ich zum Thema Dll's folgendes gefunden

Zitat:

Calling functions that require DLLs other than Kernel32.dll may result in problems that are difficult to diagnose.
Die Winapi.Windows sagt

Zitat:

function CreateProcess; external kernelbase name 'CreateProcessW';

Bedeutet das jetzt daß es einfach NICHT geht? Kernelbase != Kernel32


Und wie kann ich dann von meiner ISAPI aus mit der KonsolenApp komunizieren?

Charly

Olli73 9. Sep 2022 16:13

AW: CreateProcess aus ISAPI-Dll
 
Hast du den kompletten Pfad angegeben oder einen relativen Pfad? Hat der Benutzer im IIS genug Rechte? Du kannst ja mal der ISAPI-DLL im IIS einen anderen Benutzer zuordnen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:28 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