Partilhar via


IDebugThread2::SetThreadName

Define o nome do segmento.

HRESULT SetThreadName ( 
   LPCOLESTR pszName
);
int SetThreadName ( 
   string pszName
);

Parâmetros

  • pszName
    [in] O nome do segmento.

Valor de retorno

Se bem-sucedida, retorna S_OK; Caso contrário, retorna um código de erro.

Comentários

Para obter o nome do thread, chame o IDebugThread2::GetName método.

Consulte também

Referência

IDebugThread2

IDebugThread2::GetName