G
Guest
I've got a (managed) C# class that's called on an interface from a (unmanaged) COM DLL. The method passes a function pointer that I need to call from C# and pass back a couple of parameters. I can find lots of examples about how to go the other direction, that is, provide a C# callback method via delegate to an unmanaged DLL function so the C# gets called back. However, I have not been able to find out how to call a function pointer from C#. Help
Specifically, I'm trying to add property pages to the shell (Explorer) property sheet. My C# code method below is called via an interface from the COM object ..
int IShellPropSheetExt.AddPages (IntPtr /*LPFNADDPROPSHEETPAGE*/ lpfnAddPage, uint /*LPARAM*/ lParam
I need to call back the function "lpfnAddPage" and pass it a couple of parameters and can't figure out how to do that.
Specifically, I'm trying to add property pages to the shell (Explorer) property sheet. My C# code method below is called via an interface from the COM object ..
int IShellPropSheetExt.AddPages (IntPtr /*LPFNADDPROPSHEETPAGE*/ lpfnAddPage, uint /*LPARAM*/ lParam
I need to call back the function "lpfnAddPage" and pass it a couple of parameters and can't figure out how to do that.