Link Error After Adding PsGetVersion

I have a tape driver based on 4mmdat.c sample src and I am attempting to add
the PsGetVerion function. I get a LNK2019 error: unresolved external symbol
_PsGetVerions@16. I am only using tape.lib. What lib supports
PsGetVersion?

Thanks!

> the PsGetVerion function. I get a LNK2019 error: unresolved external
symbol

_PsGetVerions@16. I am only using tape.lib. What lib supports
PsGetVersion?

I realize this isn’t an answer to your question, but: Isn’t PsGetVersion an
obsolete function?

Check out the RtlGetVersion and RtlVerifyVersionInfo if you need to run on
XP or later only.

If you do indeed need to support Win2K, then you will have to use
PsGetVersion. I noticed that you typed “_PsGetVerions@16” above (note the
“S” after version)… I don’t suppose this is the problem, huh?

Peter
OSR

Are you sure you got the right prototype for PsGetVersion?

if you have the wrong prototype, or no prototype, it will cause linkage
problems because of added underscore and/or wrong number of argument bytes
(the @16 bit of the name).


Mats

-----Original Message-----
From: Heck, Steve [mailto:Steve.Heck@am.sony.com]
Sent: Thursday, June 10, 2004 3:16 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Link Error After Adding PsGetVersion

I have a tape driver based on 4mmdat.c sample src and I am
attempting to add
the PsGetVerion function. I get a LNK2019 error: unresolved
external symbol
_PsGetVerions@16. I am only using tape.lib. What lib supports
PsGetVersion?

Thanks!


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com