Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Progamm starten ohne Command-Shell (WinCE)

Empfohlene Antworten

Veröffentlicht

Hallo zusammen!

Habe folgenden Code, mit dem ich einen externen Prozess starte. Das ganze soll auf einem Zielsystem mit WinCE4.2 geschehen. Wird das nun ausgeführt klappt auch alles. Soweit ok. Nur popt dabei die Win-Command-Shell auf (wohl durch den ersten Parameter von createProcess). Dies ist etwas unschön. Kennt jemand eine Lösung dafür, wie die Shell (bei WinCE) im Hintergrund bleibt und nur das aufgerufene Programm sich öffnet?

Schonmal danke!

Und hier ist der CODE (naja, der relevanet Ausschnitt):

PROCESS_INFORMATION pi1 = {0};

#ifdef WIN32

STARTUPINFO StartupInfo;

ZeroMemory(&StartupInfo, sizeof (STARTUPINFO));

StartupInfo.cb = sizeof (STARTUPINFO);

StartupInfo.wShowWindow = SW_HIDE;

StartupInfo.dwFlags = STARTF_USESHOWWINDOW;

ZeroMemory(&pi1, sizeof (PROCESS_INFORMATION));

#endif

TCHAR *pcExecName1 = TEXT("\\windows\\abcd.exe");

TCHAR *pcExecName2 = TEXT("\\windows\\efgh.exe");

TCHAR cExecBuf1[50] = {0};

TCHAR cExecBuf2[70] = {0};

cExecBuf1[0] = _T('\0');

cExecBuf2[0] = _T('\0');

_stprintf( cExecBuf1, TEXT(" /C %s"), pcExecName1 );

_stprintf( cExecBuf2, TEXT(" /C %s"), pcExecName2 );

if ( cExecBuf1[0] != 0 )

{

if ( !CreateProcess( TEXT("CMD.EXE"),cExecBuf1,NULL,NULL,FALSE,

#ifdef WIN32 NORMAL_PRIORITY_CLASS, #else 0, #endif

NULL, NULL,#ifdef WIN32 &StartupInfo,#else NULL, #endif

&pi1 ) )

Soll das folgendes heißen:

if ( !CreateProcess( TEXT("ABCD.EXE"),cExecBuf1,NULL,NULL,FALSE,

#ifdef WIN32 NORMAL_PRIORITY_CLASS, #else 0, #endif

NULL, NULL,#ifdef WIN32 &StartupInfo,#else NULL, #endif

&pi1 ) )

Aber was mache ich dann mit dem cExecBuf1, wo mein eigentlicher Programmaufruf drinsteht?

Oder soll ich statt TEXT("CMD.EXE") einfach NULL eintragen?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.