Поделиться через


CHandle::Attach

Call this method to attach the CHandle object to an existing handle.

void Attach(
   HANDLE h 
) throw( );

Параметры

  • h
    CHandle will take ownership of the handle h.

Заметки

Assigns the CHandle object to the h handle. In debugs builds, an ATLASSERT will be raised if h is NULL. No other check as to the validity of the handle is made.

Требования

Header: atlbase.h

См. также

Основные понятия

CHandle Class

CHandle Members

CHandle::Detach