RtlGetVersioin() & vswprintf() in kernel mode

Two Questions:
1.
Does anybody know, why I get this linker error:
“error LNK2001: unresolved external symbol __imp__RtlGetVersion@4” when i
try to use the function
RtlGetVersion(), of course i included ntddk.h

is there any (undocumetned) or other function that implement user mode
function vswprintf() ?

10x in advance.


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

Try linking with libcntpr.lib (NTDDK\libchk\i386)–it contains the printf
family of functions. I don’t know if this is an uncool thing to do, but it
seems to work for _vsnwprintf.

Demyn

----- Original Message -----
From:
To: “File Systems Developers”
Sent: Tuesday, May 15, 2001 4:53 AM
Subject: [ntfsd] RtlGetVersioin() & vswprintf() in kernel mode

> Two Questions:
> 1.
> Does anybody know, why I get this linker error:
> “error LNK2001: unresolved external symbol imp RtlGetVersion@4” when i
> try to use the function
> RtlGetVersion(), of course i included ntddk.h
>
> 2.
> is there any (undocumetned) or other function that implement user mode
> function vswprintf() ?
>
> 10x in advance.
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@hotmail.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


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

Hello !

Why can’t you use swprintf(…) instead ?
Though it’s not defined into ntddk.h you still can use it,
since most printf-like functions are present
into ntoskrnl.

Another question : how can I determine NT version in the kernel-mode ?
Since I have not found something like RtlGetVersion() , I used in my driver NtBuildNumber value
to check if the driver s running NT4 or Win2k.

Best regards,
Paul.

----- Original Message -----
From: “Demyn Plantenberg”
To: “File Systems Developers”
Sent: Friday, May 18, 2001 7:58 PM
Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf() in kernel mode

> Try linking with libcntpr.lib (NTDDK\libchk\i386)–it contains the printf
> family of functions. I don’t know if this is an uncool thing to do, but it
> seems to work for _vsnwprintf.
>
> Demyn
>
> ----- Original Message -----
> From:
> To: “File Systems Developers”
> Sent: Tuesday, May 15, 2001 4:53 AM
> Subject: [ntfsd] RtlGetVersioin() & vswprintf() in kernel mode
>
>
> > Two Questions:
> > 1.
> > Does anybody know, why I get this linker error:
> > “error LNK2001: unresolved external symbol imp RtlGetVersion@4” when i
> > try to use the function
> > RtlGetVersion(), of course i included ntddk.h
> >
> > 2.
> > is there any (undocumetned) or other function that implement user mode
> > function vswprintf() ?
> >
> > 10x in advance.
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@hotmail.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
> —
> You are currently subscribed to ntfsd as: xxxxx@spb.cityline.ru
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>


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

You can use PsGetVersion() for the version number.

Best regards,
Bruce

-----Original Message-----
From: Paul Stepanov [mailto:xxxxx@spb.cityline.ru]
Sent: Monday, May 21, 2001 1:00 PM
To: File Systems Developers
Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf() in kernel mode

Hello !

Why can’t you use swprintf(…) instead ?
Though it’s not defined into ntddk.h you still can use it,
since most printf-like functions are present
into ntoskrnl.

Another question : how can I determine NT version in the kernel-mode ?
Since I have not found something like RtlGetVersion() , I used in my driver
NtBuildNumber value
to check if the driver s running NT4 or Win2k.

Best regards,
Paul.

----- Original Message -----
From: “Demyn Plantenberg” < mailto:xxxxx xxxxx@hotmail.com>
To: “File Systems Developers” < mailto:xxxxx
xxxxx@lists.osr.com>
Sent: Friday, May 18, 2001 7:58 PM
Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf() in kernel mode

> Try linking with libcntpr.lib (NTDDK\libchk\i386)–it contains the printf
> family of functions. I don’t know if this is an uncool thing to do, but
it
> seems to work for _vsnwprintf.
>
> Demyn
>
> ----- Original Message -----
> From: < mailto:xxxxx xxxxx@yahoo.com>
> To: “File Systems Developers” < mailto:xxxxx
xxxxx@lists.osr.com>
> Sent: Tuesday, May 15, 2001 4:53 AM
> Subject: [ntfsd] RtlGetVersioin() & vswprintf() in kernel mode
>
>
> > Two Questions:
> > 1.
> > Does anybody know, why I get this linker error:
> > “error LNK2001: unresolved external symbol imp RtlGetVersion@4” when
i
> > try to use the function
> > RtlGetVersion(), of course i included ntddk.h
> >
> > 2.
> > is there any (undocumetned) or other function that implement user mode
> > function vswprintf() ?
> >
> > 10x in advance.
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: mailto:xxxxx
xxxxx@hotmail.com
> > To unsubscribe send a blank email to
mailto:leave-ntfsd- leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
> —
> You are currently subscribed to ntfsd as: mailto:xxxxx
xxxxx@spb.cityline.ru
> To unsubscribe send a blank email to
mailto:leave-ntfsd- leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
You are currently subscribed to ntfsd as: xxxxx@SERENA.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original
message.



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

>Since I have not found something like RtlGetVersion() , I used in my driver
NtBuildNumber

PsGetVersion.

Max


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

10x for your help.
I will use PsGetVersion().

For General knowledge - Do you have any idea why
RtlGetVersion() doesn’t work ?

Alon.

— Bruce Engle wrote:
> You can use PsGetVersion() for the version number.
>
> Best regards,
> Bruce
>
>
> -----Original Message-----
> From: Paul Stepanov [mailto:xxxxx@spb.cityline.ru]
> Sent: Monday, May 21, 2001 1:00 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf()
> in kernel mode
>
>
> Hello !
>
> Why can’t you use swprintf(…) instead ?
> Though it’s not defined into ntddk.h you still can
> use it,
> since most printf-like functions are present
> into ntoskrnl.
>
> Another question : how can I determine NT version in
> the kernel-mode ?
> Since I have not found something like
> RtlGetVersion() , I used in my driver
> NtBuildNumber value
> to check if the driver s running NT4 or Win2k.
>
>
> Best regards,
> Paul.
>
>
> ----- Original Message -----
> From: “Demyn Plantenberg” <
> mailto:xxxxx xxxxx@hotmail.com>
> To: “File Systems Developers” <
> mailto:xxxxx
> xxxxx@lists.osr.com>
> Sent: Friday, May 18, 2001 7:58 PM
> Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf()
> in kernel mode
>
> > Try linking with libcntpr.lib
> (NTDDK\libchk\i386)–it contains the printf
> > family of functions. I don’t know if this is an
> uncool thing to do, but
> it
> > seems to work for _vsnwprintf.
> >
> > Demyn
> >
> > ----- Original Message -----
> > From: < mailto:xxxxx
> xxxxx@yahoo.com>
> > To: “File Systems Developers” <
> mailto:xxxxx
> xxxxx@lists.osr.com>
> > Sent: Tuesday, May 15, 2001 4:53 AM
> > Subject: [ntfsd] RtlGetVersioin() & vswprintf() in
> kernel mode
> >
> >
> > > Two Questions:
> > > 1.
> > > Does anybody know, why I get this linker error:
> > > “error LNK2001: unresolved external symbol
> imp RtlGetVersion@4” when
> i
> > > try to use the function
> > > RtlGetVersion(), of course i included ntddk.h
> > >
> > > 2.
> > > is there any (undocumetned) or other function
> that implement user mode
> > > function vswprintf() ?
> > >
> > > 10x in advance.
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> mailto:xxxxx
> xxxxx@hotmail.com
> > > To unsubscribe send a blank email to
> mailto:leave-ntfsd-
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > >
> >
> > —
> > You are currently subscribed to ntfsd as:
> mailto:xxxxx
> xxxxx@spb.cityline.ru
> > To unsubscribe send a blank email to
> mailto:leave-ntfsd-
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> > —
> You are currently subscribed to ntfsd as:
> xxxxx@SERENA.com
> To unsubscribe send a blank email to
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>

> This email and any files transmitted with it are
> confidential and
> intended solely for the use of the individual or
> entity to whom they
> are addressed. Any unauthorized review, use,
> disclosure or distribution
> is prohibited. If you are not the intended
> recipient, please contact
> the sender by reply e-mail and destroy all copies of
> the original
> message.
>

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

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


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

It’s because this routine is exported by NTDLL.DLL,
so it’s only for user mode clients.
Another thing you should know is that this routine exists since W2K.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Alon Elhanani
Sent: Tuesday, May 22, 2001 9:09 AM
To: File Systems Developers
Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf() in kernel mode

10x for your help.
I will use PsGetVersion().

For General knowledge - Do you have any idea why
RtlGetVersion() doesn’t work ?

Alon.

— Bruce Engle wrote:
> You can use PsGetVersion() for the version number.
>
> Best regards,
> Bruce
>
>
> -----Original Message-----
> From: Paul Stepanov [mailto:xxxxx@spb.cityline.ru]
> Sent: Monday, May 21, 2001 1:00 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf()
> in kernel mode
>
>
> Hello !
>
> Why can’t you use swprintf(…) instead ?
> Though it’s not defined into ntddk.h you still can
> use it,
> since most printf-like functions are present
> into ntoskrnl.
>
> Another question : how can I determine NT version in
> the kernel-mode ?
> Since I have not found something like
> RtlGetVersion() , I used in my driver
> NtBuildNumber value
> to check if the driver s running NT4 or Win2k.
>
>
> Best regards,
> Paul.
>
>
> ----- Original Message -----
> From: “Demyn Plantenberg” <
> mailto:xxxxx xxxxx@hotmail.com>
> To: “File Systems Developers” <
> mailto:xxxxx
> xxxxx@lists.osr.com>
> Sent: Friday, May 18, 2001 7:58 PM
> Subject: [ntfsd] Re: RtlGetVersioin() & vswprintf()
> in kernel mode
>
> > Try linking with libcntpr.lib
> (NTDDK\libchk\i386)–it contains the printf
> > family of functions. I don’t know if this is an
> uncool thing to do, but
> it
> > seems to work for _vsnwprintf.
> >
> > Demyn
> >
> > ----- Original Message -----
> > From: < mailto:xxxxx
> xxxxx@yahoo.com>
> > To: “File Systems Developers” <
> mailto:xxxxx
> xxxxx@lists.osr.com>
> > Sent: Tuesday, May 15, 2001 4:53 AM
> > Subject: [ntfsd] RtlGetVersioin() & vswprintf() in
> kernel mode
> >
> >
> > > Two Questions:
> > > 1.
> > > Does anybody know, why I get this linker error:
> > > “error LNK2001: unresolved external symbol
> imp RtlGetVersion@4” when
> i
> > > try to use the function
> > > RtlGetVersion(), of course i included ntddk.h
> > >
> > > 2.
> > > is there any (undocumetned) or other function
> that implement user mode
> > > function vswprintf() ?
> > >
> > > 10x in advance.
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> mailto:xxxxx
> xxxxx@hotmail.com
> > > To unsubscribe send a blank email to
> mailto:leave-ntfsd-
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > >
> >
> > —
> > You are currently subscribed to ntfsd as:
> mailto:xxxxx
> xxxxx@spb.cityline.ru
> > To unsubscribe send a blank email to
> mailto:leave-ntfsd-
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> > —
> You are currently subscribed to ntfsd as:
> xxxxx@SERENA.com
> To unsubscribe send a blank email to
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>

> This email and any files transmitted with it are
> confidential and
> intended solely for the use of the individual or
> entity to whom they
> are addressed. Any unauthorized review, use,
> disclosure or distribution
> is prohibited. If you are not the intended
> recipient, please contact
> the sender by reply e-mail and destroy all copies of
> the original
> message.
>

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

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


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


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