P/Invoke declarations should not be safe-critical
- by Bobrovsky
My code imports following native methods:
DeleteObject, GetFontData and SelectObject from gdi32.dll
GetDC and ReleaseDC from user32.dll
I want to run the code in full trust and medium trust environments (I am fine with exceptions being thrown when these imported methods are indirectly used in medium trust environments).
When I run Code…