delegate HRESULT _method1(int); _method1^ method1; [DllImport("Libreria.dll", EntryPoint = "MethodName")] static HRESULT Init(short index, _method1^ ptr);