/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
API-kald
Fra : Søren Aaholm Møller


Dato : 09-07-01 23:16

Jeg mangler API-kaldet til nedlukning af Windows 2000 og Windows XP.
API-kaldet for genstart er også velkommen.



 
 
Barney Gumble (10-07-2001)
Kommentar
Fra : Barney Gumble


Dato : 10-07-01 15:36

'**************** Code Begin *******************
Private Declare Function apiExitWindowsEx Lib "user32" _
Alias "ExitWindowsEx" _
(ByVal uFlags As Long, ByVal dwReserved As Long) _
As Long

Public Const EWX_FORCE = 4 'Forcibly terminates processes
'that do not respond.
Public Const EWX_LOGOFF = 0 'Terminates processes, then logs off.
Public Const EWX_SHUTDOWN = 1 'Powers the system off, if possible.
Public Const EWX_REBOOT = 2 'Reboots the system.

Function fTerminateWin(lngExitVal As Long)
fTerminateWin = apiExitWindowsEx(lngExitVal, 0)
End Function
'***************** Code End *******************

BG

"Søren Aaholm Møller" <swdata@image.dk> skrev i en meddelelse
news:H3q27.2141$ae6.179803@news010.worldonline.dk...
> Jeg mangler API-kaldet til nedlukning af Windows 2000 og Windows XP.
> API-kaldet for genstart er også velkommen.
>
>



Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408527
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste