We use the Windows COM + service type library (located in C: \ Windows \ system32 \ COMSVCS.dll) to track COM + processes on a remote computer using a service written in C # 3.0 / .NET 3.5. The problem I'm facing is that I get a whole bunch of warnings from the compiler that look something like this:
At least one of the arguments for "IGetAppData.GetApps" cannot be a marshaled runtime marshaler. Thus, such arguments will be passed as a pointer and may require unsafe code to control.
The generated signature of the interaction function for the above method:
void IGetAppData.GetApps(out uint nApps, IntPtr aAppData)
Since the output is already done manually in the calling code (i.e. using Marshall.ReadInt32 and Marshall.PtrToStructure ), is there a way to suppress these warnings?
source share