PInvoke is safe?
Posted: Tue Aug 29, 2017 7:26 pm
Hello, I am wondering if it is safe to virtualize a Export method and then PInvoke from C# UI program?
Also from my testing if "GetStatusCode" is not virtualized it cannot access other virtualized functions
Example:
C++
Also from my testing if "GetStatusCode" is not virtualized it cannot access other virtualized functions
Example:
C++
Code: Select all
extern "C"
{
__declspec(dllexport) int __cdecl GetStatusCode();
}
// Virtualized.
int GetStatusCode() {
return ProtectMethod(); // Virtualized also
}