Fw: How to use ExSystemTimeToLocalTime?

Hi,

I’ve include ntddk.h in my program for using ExSystemTimeToLocalTime.
But the compiler says that ‘undeclared identifier’. What’s wrong with my code? If there anything additional to do?
Thanks in advance.

-Ray Yang
xxxxx@ybwork.com; xxxxx@yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

On Wednesday, March 14, 2001 4:15 AM “Ray Yang” wrote:

I’ve include ntddk.h in my program for using ExSystemTimeToLocalTime.
But the compiler says that ‘undeclared identifier’. What’s wrong with
my code?
If there anything additional to do? Thanks in advance.

ExSystemTimeToLocalTime is declared in ntddk.h as:

NTKERNELAPI
VOID
ExSystemTimeToLocalTime (
IN PLARGE_INTEGER SystemTime,
OUT PLARGE_INTEGER LocalTime
);

So there’s no apparent reason why you shouldn’t be able to use it. If
you’re using
VC++ 6, go to Tools>Options and on the Directories tab select “Show
directories
for include files” and make sure you have something like
‘C:\NTDDK\INC\DDK’
(so that VC will find ntddk.h). Then the #include <ntddk.h> statement
should work.
Also, make sure you’ve typed the name correctly… :wink:

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com
------------------------------------------------------------
«Humour and love are God’s answers
to Human weaknesses»
------------------------------------------------------------


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</ntddk.h>

Yes, I’ve done what you told me. But it still doesn’t work :frowning:
Maybe there is still something wrong… I’ll try again.
BTW: Did you ever used it?
-Ray Yang
EMail: xxxxx@ybwork.com;xxxxx@yahoo.com
ICQ: 26555015
Homepage: http://www.ybwork.com
I like coding :slight_smile:

----- Original Message -----
From: “Miguel Monteiro”
To: “NT Developers Interest List”
Sent: Wednesday, March 14, 2001 6:18 PM
Subject: [ntdev] Re: Fw: How to use ExSystemTimeToLocalTime?

> On Wednesday, March 14, 2001 4:15 AM “Ray Yang” wrote:
> >
> >I’ve include ntddk.h in my program for using ExSystemTimeToLocalTime.
> >But the compiler says that ‘undeclared identifier’. What’s wrong with
> my code?
> >If there anything additional to do? Thanks in advance.
>
> ExSystemTimeToLocalTime is declared in ntddk.h as:
>
> NTKERNELAPI
> VOID
> ExSystemTimeToLocalTime (
> IN PLARGE_INTEGER SystemTime,
> OUT PLARGE_INTEGER LocalTime
> );
>
> So there’s no apparent reason why you shouldn’t be able to use it. If
> you’re using
> VC++ 6, go to Tools>Options and on the Directories tab select “Show
> directories
> for include files” and make sure you have something like
> ‘C:\NTDDK\INC\DDK’
> (so that VC will find ntddk.h). Then the #include <ntddk.h> statement
> should work.
> Also, make sure you’ve typed the name correctly… :wink:
>
> Miguel Monteiro
> xxxxx@criticalsoftware.com
> www.criticalsoftware.com
> ------------------------------------------------------------
> ?Humour and love are God’s answers
> to Human weaknesses?
> ------------------------------------------------------------
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
??.a?h?g?ʋ?~??ɨh??&i?kz??m???j)rj(r???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(</ntddk.h>

If by “program” you mean a kernel mode driver or DLL, you may possibly be
using __cdecl instead of __stdcl, or you may not have included the lib or
path where that lib is located. If by “program” you mean your application is
attempting to call a kernel mode function … you can’t do that, that way.
Period.

Gary

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ray Yang
Sent: Tuesday, March 13, 2001 8:15 PM
To: NT Developers Interest List
Subject: [ntdev] Fw: How to use ExSystemTimeToLocalTime?

Hi,

I’ve include ntddk.h in my program for using ExSystemTimeToLocalTime.
But the compiler says that ‘undeclared identifier’. What’s wrong with my
code? If there anything additional to do?
Thanks in advance.

-Ray Yang
xxxxx@ybwork.com; xxxxx@yahoo.com


You are currently subscribed to ntdev as: xxxxx@delphieng.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I just wrote a small program calling this function. Seems to be compiling
and linking well.

db

Ray Yang wrote:

Yes, I’ve done what you told me. But it still doesn’t work :frowning:
Maybe there is still something wrong… I’ll try again.
BTW: Did you ever used it?
-Ray Yang
EMail: xxxxx@ybwork.com;xxxxx@yahoo.com
ICQ: 26555015
Homepage: http://www.ybwork.com
I like coding :slight_smile:

----- Original Message -----
From: “Miguel Monteiro”
> To: “NT Developers Interest List”
> Sent: Wednesday, March 14, 2001 6:18 PM
> Subject: [ntdev] Re: Fw: How to use ExSystemTimeToLocalTime?
>
> > On Wednesday, March 14, 2001 4:15 AM “Ray Yang” wrote:
> > >
> > >I’ve include ntddk.h in my program for using ExSystemTimeToLocalTime.
> > >But the compiler says that ‘undeclared identifier’. What’s wrong with
> > my code?
> > >If there anything additional to do? Thanks in advance.
> >
> > ExSystemTimeToLocalTime is declared in ntddk.h as:
> >
> > NTKERNELAPI
> > VOID
> > ExSystemTimeToLocalTime (
> > IN PLARGE_INTEGER SystemTime,
> > OUT PLARGE_INTEGER LocalTime
> > );
> >
> > So there’s no apparent reason why you shouldn’t be able to use it. If
> > you’re using
> > VC++ 6, go to Tools>Options and on the Directories tab select “Show
> > directories
> > for include files” and make sure you have something like
> > ‘C:\NTDDK\INC\DDK’
> > (so that VC will find ntddk.h). Then the #include <ntddk.h> statement
> > should work.
> > Also, make sure you’ve typed the name correctly… :wink:
> >
> > Miguel Monteiro
> > xxxxx@criticalsoftware.com
> > www.criticalsoftware.com
> > ------------------------------------------------------------
> > «Humour and love are God’s answers
> > to Human weaknesses»
> > ------------------------------------------------------------
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> †(¹†¡¢ž·*.­úÞ{&¡¢‡(™§]­ë,jØm¶Ÿÿ™¨¥É¨h¡Ê&b‹š­ç.®·§¶\¬¹»®&ÞvÚ’µ×¯jÆáj¸


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</ntddk.h>