I am trying to write a COM server that employs the .NET profiling API. This COM server will run on Windows Mobile 6 devices. The purpose of this COM server is to profile .NET applications running on the same device. However, I am not able to find the following header files in the Windows Mobile SDKs:
Does this mean that I need to port these header files using the corresponding versions available in the Windows (Desktop) SDK?
It's these header files which define the family of ICorProfilerCallBack interfaces that are so crucial to using the .NET Profiling API.
I have taken a look at these header files present in the Windows SDK and I have found that they contain a lot of platform specific information related to the object model of the .NET framework and also the format of a PE file representing a .NET assembly. It seems that I require intimate knowledge of the implementation details in these areas of .NET to successfully port. Are there any alternatives ?
The problem you're running into is that you made an incorrect assumption at the outset that the Compact Framework supports any of the ICorProfilerCallBack
interfaces. It does not. If you want to do profiling, a few paths have been followed in the past by other profilers I've seen/used: