Share via


CHandle::Attach

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

void Attach( 
   HANDLE h  
) throw( );

Parameters

  • h
    CHandle will take ownership of the handle h.

Remarks

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.

Requirements

Header: atlbase.h

See Also

Reference

CHandle Class

CHandle::Detach