DeviceInUseException.cs
上传用户:wuming6209
上传日期:2013-06-06
资源大小:161k
文件大小:1k
源码类别:

视频捕捉/采集

开发平台:

Visual C++

  1. // ------------------------------------------------------------------
  2. // DirectX.Capture
  3. //
  4. // History:
  5. // 2003-Jan-24 BL - created
  6. //
  7. // Copyright (c) 2003 Brian Low
  8. // ------------------------------------------------------------------
  9. using System;
  10. namespace DirectX.Capture
  11. {
  12. /// <summary>
  13. ///  Exception thrown when the device cannot be rendered or started.
  14. /// </summary>
  15. public class DeviceInUseException : SystemException
  16. {
  17. // Initializes a new instance with the specified HRESULT
  18. public DeviceInUseException(string deviceName, int hResult) : base( deviceName + " is in use or cannot be rendered. (" + hResult + ")" )
  19. {
  20. }
  21. }
  22. }