Callout Driver Problem

Hi All

I am working on a callout driver by using the sample code of Msnmntr…In
this I want to Inject the stream but for other usease but fails… *
FwpInjectionHandleCreate0* fails and return 0xC022001CL that is
STATUS_FWP_NULL_POINTER
… I am trying to create the injection handle in DriverEntry… My
statement is simple

status =
FwpsInjectionHandleCreate0(AF_INET,FWPS_INJECTION_TYPE_STREAM,injectionHandle);

I am unable to define the problem… Help me to fix this

Thanks

Niraj Jha

Your have luck that the content of ‘injectionHandle’ is zero in your case , otherwise you would have had a nice BSOD. the documentation states that you have to provide a pointer ( where the procedure can store the handle ) , thus :

FwpsInjectionHandleCreate0( … , &injectionHandle);
instead of
FwpsInjectionHandleCreate0( … , injectionHandle);

Christiaan

----- Original Message -----
From: Niraj Jha
To: Windows System Software Devs Interest List
Sent: Tuesday, January 02, 2007 12:12 PM
Subject: [ntdev] Callout Driver Problem

Hi All

I am working on a callout driver by using the sample code of Msnmntr…In this I want to Inject the stream but for other usease but fails… FwpInjectionHandleCreate0 fails and return 0xC022001CL that is STATUS_FWP_NULL_POINTER … I am trying to create the injection handle in DriverEntry… My statement is simple
status = FwpsInjectionHandleCreate0(AF_INET,FWPS_INJECTION_TYPE_STREAM,injectionHandle);

I am unable to define the problem… Help me to fix this

Thanks

Niraj Jha

— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

thanks i think i shoud have to check my eye befor writting the code :slight_smile:

On 1/2/07, Christiaan Ghijselinck
wrote:
>
>
> Your have luck that the content of ‘injectionHandle’ is zero in your case
> , otherwise you would have had a nice BSOD. the documentation states that
> you have to provide a pointer ( where the procedure can store the handle
> ) , thus :
>
> FwpsInjectionHandleCreate0( … , &injectionHandle);
> instead of
> FwpsInjectionHandleCreate0( … , injectionHandle);
>
> Christiaan
>
>
> ----- Original Message -----
> From: Niraj Jha
> To: Windows System Software Devs Interest List
> Sent: Tuesday, January 02, 2007 12:12 PM
> Subject: [ntdev] Callout Driver Problem
>
>
>
> Hi All
>
> I am working on a callout driver by using the sample code of
> Msnmntr…In this I want to Inject the stream but for other usease but
> fails… FwpInjectionHandleCreate0 fails and return 0xC022001CL that
> is STATUS_FWP_NULL_POINTER … I am trying to create the injection handle
> in DriverEntry… My statement is simple
>
> status =
> FwpsInjectionHandleCreate0(AF_INET,FWPS_INJECTION_TYPE_STREAM,injectionHandle);
>
> I am unable to define the problem… Help me to fix this
>
>
>
> Thanks
>
> Niraj Jha
>
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>