ole32: Add documentation about registered class objects only being visible in the apartment in which they were registered.

This commit is contained in:
Rob Shearman 2007-05-08 00:01:19 +01:00 committed by Alexandre Julliard
parent 7d7f9a59d0
commit 314f9fe509
1 changed files with 9 additions and 0 deletions

View File

@ -1646,6 +1646,11 @@ static HRESULT COM_GetRegisteredClassObject(
* SEE ALSO
* CoRevokeClassObject, CoGetClassObject
*
* NOTES
* In-process objects are only registered for the current apartment.
* CoGetClassObject() and CoCreateInstance() will not return objects registered
* in other apartments.
*
* BUGS
* MSDN claims that multiple interface registrations are legal, but we
* can't do that with our current implementation.
@ -1801,6 +1806,10 @@ static void COM_RevokeAllClasses(struct apartment *apt)
* Success: S_OK.
* Failure: HRESULT code.
*
* NOTES
* Must be called from the same apartment that called CoRegisterClassObject(),
* otherwise it will fail with RPC_E_WRONG_THREAD.
*
* SEE ALSO
* CoRegisterClassObject
*/