private static string getErrorMsg(uint errorCode) {
string errorMsg = null; switch (errorCode) {
case 0x80040200: //VFW_E_INVALIDMEDIATYPE errorMsg = "An invalid media type was specified"; break; case 0x80040201: //VFW_E_INVALIDSUBTYPE errorMsg = "An invalid media subtype was specified"; break; case 0x80040202: //VFW_E_NEED_OWNER errorMsg = "This object can only be created as an aggregated object"; break; case 0x80040203: //VFW_E_ENUM_OUT_OF_SYNC errorMsg = "The enumerator has become invalid"; break; case 0x80040204: //VFW_E_ALREADY_CONNECTED errorMsg = "At least one of the pins involved in the operation is already connected"; break; case 0x80040205: //VFW_E_FILTER_ACTIVE errorMsg = "This operation cannot be performed because the filter is active"; break; case 0x80040206: //VFW_E_NO_TYPES errorMsg = "One of the specified pins supports no media types"; break; case 0x80040207: //VFW_E_NO_ACCEPTABLE_TYPES errorMsg = "There is no common media type between these pins"; break; case 0x80040208: //VFW_E_INVALID_DIRECTION errorMsg = "Two pins of the same direction cannot be connected together"; break; case 0x80040209: //VFW_E_NOT_CONNECTED errorMsg = "The operation cannot be performed because the pins are not connected"; break; case 0x80040210: //VFW_E_NO_ALLOCATOR errorMsg = "No sample buffer allocator is available"; break; case 0x80040211: //VFW_E_NOT_COMMITTED errorMsg = "Cannot allocate a sample when the allocator is not active"; break; case 0x80040212: //VFW_E_SIZENOTSET errorMsg = "Cannot allocate memory because no size has been set"; break; case 0x80040213: //VFW_E_NO_CLOCK errorMsg = "Cannot lock for synchronization because no clock has been defined"; break; case 0x80040214: //VFW_E_NO_SINK errorMsg = "Quality messages could not be sent because no quality sink has been defined"; break; case 0x80040215: //VFW_E_NO_INTERFACE errorMsg = "A required interface h
|