Exemplo n.º 1
0
 private void InstallDelegates()
 {
     m_pDelLock   = new External.CURLSH_LOCK_DELEGATE(LockDelegate);
     m_pDelUnlock = new External.CURLSH_UNLOCK_DELEGATE(UnlockDelegate);
     m_hThis      = GCHandle.Alloc(this);
     m_ptrThis    = (IntPtr)m_hThis;
     External.curl_shim_install_share_delegates(m_pShare,
                                                m_ptrThis, m_pDelLock, m_pDelUnlock);
 }