Beispiel #1
0
        public void IterateLookupTable(IterateLookupTableCallback callback, object userData)
        {
            ManagedIterateLookupTableCallback cb = new ManagedIterateLookupTableCallback(callback, userData);

            ErrorCode ret = NativeMethods.IterateLookupTable(_ptr, 0, cb.NativeFunc, IntPtr.Zero);

            WimLibException.CheckWimLibError(ret);
        }
Beispiel #2
0
        public ManagedIterateLookupTableCallback(IterateLookupTableCallback callback, object userData)
        {
            _callback = callback;
            _userData = userData;

            // Avoid GC by keeping ref here
            NativeFunc = NativeCallback;
        }
Beispiel #3
0
 public void IterateLookupTable(IterateLookupTableCallback callback) => IterateLookupTable(callback, null);