Partager via


ITfCompartmentMgr ::GetCompartment, méthode (msctf.h)

Obtient l’objet compartiment pour un compartiment spécifié.

Syntaxe

HRESULT GetCompartment(
  [in]  REFGUID        rguid,
  [out] ITfCompartment **ppcomp
);

Paramètres

[in] rguid

Contient un GUID qui identifie le compartiment.

[out] ppcomp

Pointeur vers un pointeur ITfCompartment pointeur d’interface qui reçoit l’objet compartiment.

Valeur de retour

Cette méthode peut retourner l’une de ces valeurs.

Valeur Description
S_OK
La méthode a réussi.
E_INVALIDARG
ppcomp n’est pas valide.
E_OUTOFMEMORY
Un échec d’allocation de mémoire s’est produit.

Exigences

Exigence Valeur
client minimum pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
serveur minimum pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
plateforme cible Windows
d’en-tête msctf.h
DLL Msctf.dll
redistribuable TSF 1.0 sur Windows 2000 Professionnel

Voir aussi

interface ITfCompartmentMgr, interface ITfCompartment, Compartiments