首页  编辑  

从服务器取得时间

Tags: /超级猛料/Date.Time.时间和日期/   Date Created:

NetRemoteTOD:

type

TIME_OF_DAY_INFO=record

   tod_elapsedt:DWORD;

   tod_msecs:dword;

   tod_hours:dword;

   tod_mins:dword;

   tod_secs:dword;

   tod_hunds:dword;

   tod_timezone:longint;

   tod_tinterval:dword;

   tod_day:dword;

   tod_month:dword;

   tod_year:dword;

   tod_weekday:dword;

end;

procedure NetRemoteTOD(UncServerName:lptstr;var BufferPtr:TIME_OF_DAY_INFO);stdcall;external 'netapi.dll';

如果第一个参数为Nil,则从本地机器取得时间。

只能在NT上面使用!