Hello,
It seems urlmon is missing a (stubbed) IInternetSecurityManager Interface (see also http://msdn.microsoft.com/workshop/security/szone/reference/ifaces/iinternet... ).
Since I am new to this, I was wondering how I can create a stubbed implementation. As far as I can tell I need to : * update the urlmon.idl (add IInternetSecurityManager) * create a stubbed implemenation in dlls/urlmon/; making sure the stubbed interface also gets registered during 'wineprefixcreate'.
Are there any (wine) pointers on implementing a new (stubbed) COM interface?
Best regards,
Jeroen Janssen
Jeroen Janssen wrote:
Hello,
It seems urlmon is missing a (stubbed) IInternetSecurityManager Interface (see also http://msdn.microsoft.com/workshop/security/szone/reference/ifaces/iinternet... ).
Since I am new to this, I was wondering how I can create a stubbed implementation. As far as I can tell I need to :
- update the urlmon.idl (add IInternetSecurityManager)
- create a stubbed implemenation in dlls/urlmon/; making sure the stubbed
interface also gets registered during 'wineprefixcreate'.
Are there any (wine) pointers on implementing a new (stubbed) COM interface?
You will need to update the corresponding urlmon.h header file too, so that it can be used by C code. You can do this by running "make idl" in the wine/include/ directory. Lionel Ulmer had a script to create a stubbed out COM interface, so maybe he could give you the script or create the interface for you. However, given the relatively small number of methods in IInternetSecurityManager it might be just as easy to create it by hand.
Rob
Are there any (wine) pointers on implementing a new (stubbed) COM interface?
You will need to update the corresponding urlmon.h header file too, so that it can be used by C code. You can do this by running "make idl" in the wine/include/ directory.
Yes, I expected something like that too.. On a side note, why is this not done during the "regular make" process?
Lionel Ulmer had a script to create a stubbed out COM interface, so maybe he could give you the script or create the interface for you.
Any idea why this script is not in the wine tree somewhere? (tools/?) --- Jeroen
On Mon, Jul 19, 2004 at 05:19:36PM +0200, Jeroen Janssen wrote:
Any idea why this script is not in the wine tree somewhere? (tools/?)
Because it was an unmanageable Python hack that worked for me after a lot of tweakings (for DirectX and QUARTZ).
I can see if I can get something clean out of it for submission (but I do not even remember what the inputs were :-) ).
Lionel
Jeroen Janssen wrote:
Since I am new to this, I was wondering how I can create a stubbed implementation. As far as I can tell I need to :
- update the urlmon.idl (add IInternetSecurityManager)
right
- create a stubbed implemenation in dlls/urlmon/; making sure the stubbed
interface also gets registered during 'wineprefixcreate'.
right... though you should only need to add an implementation of URLMON_DllRegisterServerEx to make that work, assuming that wine.inf already tries to register urlmon.dll
Are there any (wine) pointers on implementing a new (stubbed) COM interface?
It's nice to have a test program (usually built on a windows machine) to test your new interface. Make sure you get the right number of methods in the right order, with the right calling convention and arguments. You need to implement IUnknown manually. You probably want to reference another piece of code that already implements a COM interface... there's plenty in dlls/shell32 and dlls/ole32. (eg. dlls/shell32/shelllink.c)
have fun,
Mike