Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

.Net Profiler - Passing the reference to Helper function as argument

$
0
0

Hi,


I am injecting my helper function into 

void FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, ref RequestNotificationStatus status)
Here I am need the 3rd argument to be passed as a argument(CEE_LDARG_3) to my helper function. How to do that.?

I can take the 2nd arguement by passing it as ELEMENT_TYPE_OBJECT as it's CorElementType.

But the third argument here is a reference . Can i use ELEMENT_TYPE_BYREF ?  But the web application is getting crashed (guess it cannot find the function probe).

I am giving the signature as 

COR_SIGNATURE sigFunctionProbe[] = {

IMAGE_CEE_CS_CALLCONV_DEFAULT,      

0x01,                              

ELEMENT_TYPE_VOID,                  

ELEMENT_TYPE_BYREF ,                

};

Looking forward for a correct way to pass the 3rd argument in the FinishRequestNotification(..)

Thanks ,

./Selva




Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>