Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can PInvoke (platform invoke) methods be obfuscated?

0
Posted

Can PInvoke (platform invoke) methods be obfuscated?

0

Yes, this is possible if the PInvoke method is completely described. For example in case of this code: [DllImport(“Gdi32.dll”)] internal static extern int CombineRgn(IntPtr dest, IntPtr src1, IntPtr src2, int flags); The method will not be obfuscated. If the method is completely described (so that the name of method is present in the EntryPoint declaration of the DllImport): [DllImport(“Gdi32.dll”, EntryPoint = “CombineRgn”, CharSet=CharSet.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123