VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get Windows NT Server Time

Matthew Ruffell  (3 Submissions)   Windows System Services   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Returns the time of day from a Windows NT workstation or server. Accounts for time zones. Requires Windows NT.

Inputs
ServerName [string] = name of target server.

Assumes
Requires Windows NT.

Returns
Return the time of day.

Side Effects
Noen.

API Declarations
Private Type TIME_OF_DAY
t_elapsedt As Long
t_msecs As Long
t_hours As Long
t_mins As Long
t_secs As Long
t_hunds As Long
t_timezone As Long
t_tinterval As Long
t_day As Long
t_month As Long
t_year As Long
t_weekday As Long
End Type
Private Declare Function NetRemoteTOD Lib "netapi32.dll" (ByVal server As String, buffer As Any) As Long
Private Declare Sub CopyMem Lib "kernel32" Alias "RtlMoveMemory" (pTo As Any, uFrom As Any, ByVal lSize As Long)
Private Declare Function NetApiBufferFree Lib "netapi32.dll" (ByVal Ptr As Long) As Long

Rate Get Windows NT Server Time (19(19 Vote))
Get Windows NT Server Time.bas

Get Windows NT Server Time Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters