Condividi tramite


Metodo IShellWindows::Register (exdisp.h)

Registra una finestra aperta come finestra shell; la finestra viene specificata dall'handle.

Sintassi

HRESULT Register(
  [in]  IDispatch *pid,
  [in]  long      hwnd,
  [in]  int       swClass,
  [out] long      *plCookie
);

Parametri

[in] pid

Tipo: IDispatch*

Interfaccia IDispatch della finestra.

[in] hwnd

Tipo: long

Handle che specifica la finestra da registrare.

[in] swClass

Tipo: int

Membro di ShellWindowTypeConstants che specifica il tipo di finestra.

[out] plCookie

Tipo: long*

Cookie della finestra.

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Commenti

Nel contesto dell'insieme windows shell, un cookie è un token che identifica in modo univoco una finestra di Shell registrata.

Usare questo metodo per registrare una finestra aperta; se la finestra è in sospeso, usare invece IShellWindows::RegisterPending .

Requisiti

   
Piattaforma di destinazione Windows
Intestazione exdisp.h
DLL Shdocvw.dll (versione 5.00.2014.0216 o successiva)

Vedi anche

IShellWindows

IShellWindows::RegisterPending

IShellWindows::Revoke