From: Maxim on
I am trying to allocate memory in a STORPORT miniport driver via
StorPortAllocatePool. I am suing WDK6000. The function is defined in
storport.h as a wrapper around StorPortExtendedFunction. At compile time, I
get:

error LNK2019: unresolved external symbol __imp__StorPortExtendedFunction
referenced in function _StorPortAllocatePool(a)16
objchk_wnet_x86\i386\vtms_stor.sys : fatal error LNK1120: 1 unresolved
externals

I also saw on MSDN that AllocatePool could be referenced via a pointer from
STORPORT_EXTENDED_FUNCTIONS structure which could be retrieved by calling
StorPortNotification with GetExtendedFunctionsTable and a pointer to a
pointer to this structure. If I do that, the pointer stays as NULL.

Whats going on?
From: Andrew Sha on
AFAIK, this API is for Vista only, not sure about WS03SP2

"Maxim" wrote:

> I am trying to allocate memory in a STORPORT miniport driver via
> StorPortAllocatePool. I am suing WDK6000. The function is defined in
> storport.h as a wrapper around StorPortExtendedFunction. At compile time, I
> get:
>
> error LNK2019: unresolved external symbol __imp__StorPortExtendedFunction
> referenced in function _StorPortAllocatePool(a)16
> objchk_wnet_x86\i386\vtms_stor.sys : fatal error LNK1120: 1 unresolved
> externals
>
> I also saw on MSDN that AllocatePool could be referenced via a pointer from
> STORPORT_EXTENDED_FUNCTIONS structure which could be retrieved by calling
> StorPortNotification with GetExtendedFunctionsTable and a pointer to a
> pointer to this structure. If I do that, the pointer stays as NULL.
>
> Whats going on?
From: Maxim on
I see. Any idea how I can allocate memory in a StorPort miniport driver
prior to Vista?

"Andrew Sha" wrote:

> AFAIK, this API is for Vista only, not sure about WS03SP2

From: Andrew Sha on
try StorPortGetUncachedExtension

"Maxim" wrote:

> I see. Any idea how I can allocate memory in a StorPort miniport driver
> prior to Vista?
>
> "Andrew Sha" wrote:
>
> > AFAIK, this API is for Vista only, not sure about WS03SP2
>
From: Maxim on
thanks!

"Andrew Sha" wrote:

> try StorPortGetUncachedExtension
>
> "Maxim" wrote:
>
> > I see. Any idea how I can allocate memory in a StorPort miniport driver
> > prior to Vista?
> >
> > "Andrew Sha" wrote:
> >
> > > AFAIK, this API is for Vista only, not sure about WS03SP2
> >