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.

VB: Befehl zum Windows beenden

Empfohlene Antworten

Hallo,

Gibt es in VB einen Befehl um Windows herunterzufahren??

Hallo,

sowas gibt es natürlich! Ist aber mit etwas mehr Code verbunde, als man an Anfang glaubt. Schau einfach mal bei dem Link vorbei!

Ich brauche so etwas für Win 2000 und XP.

Hätte folgendes im Angebot:


Const EWX_LOGOFF = 0

Const EWX_SHUTDOWN = 1

Const EWX_REBOOT = 2

Const EWX_FORCE = 4

Private Declare Function ExitWindowsEx Lib "user32" _

    (ByVal uFlags As Long, ByVal dwReserved As Long) As Long


Private Sub ende()

   ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)

End Sub

Funktioniert wohl unter der 9x und NT (wo ja auch XP zugehört) Schiene.

Hi,

habe das gerade mal ausprobiert (auf Wk2) und es funktioniert bei mir nicht...

Hätte ich noch was beachten müssen?

Gruß

Reninho

Funktionierts?

hätte sonst auch noch eine quellcode bei mir unter 98 funktionierts -

gruß ronja

... wie gesagt funktioniert es bei mir unter 2000 nicht *schnief*.

So, ich habe doch noch meine Links gefunden, um Win 2k/XP zu beenden. Schaut einfach mal diesen oder, wenn er nicht funktioniert diesen Link an. Bei mir haben die unter NT/2000 problemlos funktioniert.

CU

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.