DeviceInUseException.cs
Upload User: wuming6209
Upload Date: 2013-06-06
Package Size: 161k
Code Size: 1k
Category:

Video Capture

Development Platform:

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. }