How can I prevent my public VB6 classes from being Implementable?



How do I prevent my public classes in my application DLL's from being
implementable? As it stands now, anyone could reference one of my
application DLL's, Implement its public class interfaces, and deploy a DLL
to 'masquerade' as one of my own application DLL's. With this approach,
anyone could get their hands on any internal application data passing across
a COM interface boundary. This doesn't seem very secure to me. (Or is what
I'm suggesting impossible?)

I know that it must be possible from a COM perspective to block unauthorized
implementation, since if I try to Implement ADODB.Recordset, for example, I
get the following error:

Compile error:

Bad interface for Implements: Interface is derived from another pure
interface with non-restricted methods.

To tell you the truth, I'm not sure what this means exactly, but the end
result seems to be that ADODB.Recordset is a public class interface which
can be accessed, but not Implemented. This is what I'd like to achieve for
some of my VB6 classes. Can this be done with VB6?

Thanks for your help!

- Joe Geretz -


.



Relevant Pages

  • Re: How can I prevent my public VB6 classes from being Implementable?
    ... application DLL's, Implement its public class interfaces, and deploy a DLL ... Bad interface for Implements: Interface is derived from another pure ... The ability to 'fake' or 'masquerade' a component is a normal security hole ... There are licensing mechanisms to control how others might attempt ...
    (microsoft.public.vb.com)
  • Re: hide php code
    ... > to provide the users with some public classes which they may use use ... > I want the code to be accessable via an interface ... > How do I make php code which are hidden but are free to use by my ... and to "see" the class bodies, ...
    (comp.lang.php)
  • Re: hide php code
    ... > I have a webserver which some user have their own accounts on. ... > to provide the users with some public classes which they may use use ... > I want the code to be accessable via an interface ... > How do I make php code which are hidden but are free to use by my ...
    (comp.lang.php)
  • Re: keep interface private to dll?
    ... Dushan, ... a typelib and reference that typelib in your dll. ... able to use your interface but you'll be able to use it on public classes. ...
    (microsoft.public.vb.general.discussion)