VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VB code with Window Network API

Abid Khurshid Butt  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

With this code your can Shutdown any Workstation connected on LAN (Local Area Network) od Windows NT/2000.
This code is very usefull for LAN applications. It will give an good idea to communicate with other worstations.

Inputs
Just Workstation Name to Shutdown

Assumes
User must know something about Windows API and some knowledge of Network.

Returns
Required Workstation will Shutdown

Side Effects
There no side effects for this code.

API Declarations
Private Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long

Rate VB code with Window Network API (9(9 Vote))
VB code with Window Network API.bas

VB code with Window Network API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters