If I have a method that returns an important security call that tells me whether I am entitled to launch the application or not. It is a security hole to access this through a DLL rather than by statically linking to the library?

In what way might this compromise security?

Cheers,
David