private void ConfigurePusher(IGenericSampleConfig ips) { int hr; source.SetMediaType(ips); // Specify the callback routine to call with each sample hr = ips.SetBitmapCB(source); DsError.ThrowExceptionForHR(hr); }