I want to write a delphi function to register a DLL. I want to check the function to see if the Ole InstallI was already called before doing this. I think I am trying to avoid the consequences of starting twice because I'm not sure what they can be. I'm worried that my function will not handle as a different kind of DLL as the RailwaySoft 32.exe.
Take a look at this:
Return value
[...]
S_FALSE- The COM library is already started on this apartment.
... and also:
Usually, the COM library is only started on an apartment once the latter calls will succeed They do not attempt to change the concurrency model of the apartment, but
S_FALSE.
Comments
Post a Comment