Hi all,
I’m trying to develop a kind of NFS.
Can anyone know how to convert a UNIX time_t to windows system time ?
I could find a sample for Win32 but couldn’t find any hint for kernel
module.
Thanks in advance.
Best regards,
eddie
Hi all,
I’m trying to develop a kind of NFS.
Can anyone know how to convert a UNIX time_t to windows system time ?
I could find a sample for Win32 but couldn’t find any hint for kernel
module.
Thanks in advance.
Best regards,
eddie
static long
WTtoUT(LARGE_INTEGER *l)
{
vlong t;
t = (vlong)l->LowPart + ((vlong)l->HighPart<<32);
t -= (vlong)10000000*134774*24*60*60;
return (long)(t/10000000);
}
On 7/26/06, EddieShim wrote:
> Hi all,
>
> I’m trying to develop a kind of NFS.
> Can anyone know how to convert a UNIX time_t to windows system time ?
> I could find a sample for Win32 but couldn’t find any hint for kernel
> module.
>
> Thanks in advance.
>
> Best regards,
> eddie
>
>
>
> —
> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Try RtlSecondsSince1970ToTime in the IFS and WDK kits.
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of EddieShim
Sent: Wednesday, July 26, 2006 2:50 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Convert Linux date time to windows system time
Hi all,
I’m trying to develop a kind of NFS.
Can anyone know how to convert a UNIX time_t to windows system time ?
I could find a sample for Win32 but couldn’t find any hint for kernel
module.
Thanks in advance.
Best regards,
eddie
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Now that is a useful call-- if only it were also exposed
to usermode, I could through away code! I like throwing
away code.
Do they have the reverse call?
Thanks,
Joseph
Ken Cross wrote:
Try RtlSecondsSince1970ToTime in the IFS and WDK kits.
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of EddieShim
Sent: Wednesday, July 26, 2006 2:50 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Convert Linux date time to windows system timeHi all,
I’m trying to develop a kind of NFS.
Can anyone know how to convert a UNIX time_t to windows system time ?
I could find a sample for Win32 but couldn’t find any hint for kernel
module.Thanks in advance.
Best regards,
eddie
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@vandyke.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
It is exported in usermode, but it is not documented as such, so you are
using it at your own risk if you elect to use it in usermode.
C:\WINXP\system32>dumpbin /exports ntdll.dll | find /i
“RtlSecondsSince1970ToTime”
778 306 0006238B RtlSecondsSince1970ToTime =
_RtlSecondsSince1970ToTime@8
–
Ken Johnson (Skywing)
Windows SDK MVP
“Joseph Galbraith” wrote in message news:xxxxx@ntfsd…
> Now that is a useful call-- if only it were also exposed
> to usermode, I could through away code! I like throwing
> away code.
>
> Do they have the reverse call?
> Thanks,
>
> Joseph
>
>
> Ken Cross wrote:
>> Try RtlSecondsSince1970ToTime in the IFS and WDK kits.
>>
>> Ken
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of EddieShim
>> Sent: Wednesday, July 26, 2006 2:50 AM
>> To: Windows File Systems Devs Interest List
>> Subject: [ntfsd] Convert Linux date time to windows system time
>>
>> Hi all,
>>
>> I’m trying to develop a kind of NFS.
>> Can anyone know how to convert a UNIX time_t to windows system time ?
>> I could find a sample for Win32 but couldn’t find any hint for kernel
>> module.
>>
>> Thanks in advance.
>>
>> Best regards,
>> eddie —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@comcast.net
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@vandyke.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
I think that time_t is supported on Windows by the C runtime library.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “EddieShim”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, July 26, 2006 10:50 AM
Subject: [ntfsd] Convert Linux date time to windows system time
> Hi all,
>
> I’m trying to develop a kind of NFS.
> Can anyone know how to convert a UNIX time_t to windows system time ?
> I could find a sample for Win32 but couldn’t find any hint for kernel
> module.
>
> Thanks in advance.
>
> Best regards,
> eddie
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com