Date: Tue, 19 May 1998 15:58:45 +0000 (GMT) From: Luke Kenneth Casson Leighton <lkcl@switchboard.net> To: Samba Technical List <samba-technical@samba.anu.edu.au> Subject: net time over dce/rpc (fwd)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1614665192-1397718318-895593525=:5288
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.3.96.980519155837.5288I@regent.cb1.com>
---------- Forwarded message ----------
Hello luke,
the api NetrRemoteTOD is really close to the one in ipc:netremoteTOD()
below is the help page from msvc for the struct TIME_OF_DAY_INFO
As an attachement is the netmon trace of the useful packets
The time is the GMT time
Jean Francois
typedef struct _TIME_OF_DAY_INFO {
DWORD tod_elapsedt;
DWORD tod_msecs;
DWORD tod_hours;
DWORD tod_mins;
DWORD tod_secs;
DWORD tod_hunds;
LONG tod_timezone;
DWORD tod_tinterval;
DWORD tod_day;
DWORD tod_month;
DWORD tod_year;
DWORD tod_weekday;
} TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO;
Members
tod_elapsedt
Specifies the number of seconds since 00:00:00, January 1, 1970.
tod_msecs
Specifies the number of milliseconds from an arbitrary starting point
(system reset). Typically, this member is read twice, once at the start of
a process and again at the end, then subtracting one value from the other
to determine how long the process took.
tod_hours
Specifies the current hour (0-23).
tod_mins
Specifies the current minute (0-59).
tod_secs
Specifies the current second (0-59).
tod_hunds
Specifies the current hundredth second (0.01 second) (0-99).
tod_timezone
Specifies the time zone of the server. This value is calculated, in
minutes, from Greenwich Mean Time (GMT). For time zones west of Greenwich,
the value is positive; for time zones east of Greenwich, the value is
negative. A value of -1 indicates that the time zone is undefined.
tod_interval
Specifies the time interval for each tick of the clock. Each integral
integer represents one ten-thousandth second (0.0001 second).
tod_day
Specifies the day of the month (1-31).
tod_month
Specifies the month of the year (1-12).
tod_year
Specifies the year.
tod_weekday
Specifies the day of the week (0-6, where 0 is Sunday, 1 is Monday, and so
on).
-----------------------------------------------------------
Pinky: "What are we going to do tonight, Brain?"
Brain: "The same thing we do every night, Pinky :
try to install Windows NT !"
-----------------------------------------------------------
---1614665192-1397718318-895593525=:5288
Content-Type: APPLICATION/OCTET-STREAM; NAME="time.cap"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.3.95.980517221337.12621B@kappa.utc.fr>
Content-Description:
UlRTUwEBAQDOBwUAAAARABIALQAiAN0BzgcAACwAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACfPQIA6gDq
AAAAwILA+AAAwFnDYAgARQAA3E51QACABiO0wKgZAawTAjYMpQCLqQQunzU6
x3xQGCHZ5SAAAAAAALD/U01CcwAAAAAYA4AAAAAAAAAAAAAAAAAAAP7KAAAA
AA11AIQABBEyAAAAAAAAAAEAAAAAAAAA1AAAAEcAAAAAAABXAGkAbgBkAG8A
dwBzACAATgBUACAAMQAzADgAMQAAAAAAVwBpAG4AZABvAHcAcwAgAE4AVAAg
ADQALgAwAAAAAAAE/wAAAAAAAQAhAABcAFwATgBUAFMARQBSAFwASQBQAEMA
JAAAAD8/Pz8/AL8+AgDCAMIAAADAWcNgAADAgsD4CABFAAC0TCJAAH0GKS+s
EwI2wKgZAQCLDKU1Osd8qQQvU1AYII5ydQAAAAAAiP9TTUJzAAAAAJgDgAAA
AAAAAAAAAAAAAAQ4/soAcAAAA3UAeAAAAE8AAFcAaQBuAGQAbwB3AHMAIABO
AFQAIAA0AC4AMAAAAE4AVAAgAEwAQQBOACAATQBhAG4AYQBnAGUAcgAgADQA
LgAwAAAARABNAEUAMgAAAAP/AIgAAQAHAElQQwAAAAB6PwIANgA2AAAAwILA
+AAAwFnDYAgARQAAKE91QACABiNowKgZAawTAjYMpQCLqQQvUzU6yA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