+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D9\r
- {\r
- ref class Direct3D;\r
-\r
- /// <summary>Contains information identifying an adapter.</summary>\r
- /// <unmanaged>D3DADAPTER_IDENTIFIER9</unmanaged>\r
- public ref class AdapterDetails\r
- {\r
- private:\r
- int adapter;\r
- System::String^ description;\r
- int deviceId;\r
- System::Guid deviceIdentifier;\r
- System::String^ deviceName;\r
- System::String^ driverName;\r
- System::Version^ driverVersion;\r
- int revision;\r
- int subsystemId;\r
- int vendorId;\r
- int whqlLevel;\r
-\r
- internal:\r
- AdapterDetails( IDirect3D9 *direct3D, unsigned int adapter, bool checkWhql );\r
-\r
- public:\r
- /// <summary>\r
- /// Gets the adapter ordinal.\r
- /// </summary>\r
- property int Adapter\r
- {\r
- int get() { return adapter; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets a friendly description string for the adapter.\r
- /// </summary>\r
- property System::String^ Description\r
- {\r
- System::String^ get() { return description; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the identifier of the adapter chip set.\r
- /// </summary>\r
- property int DeviceId\r
- {\r
- int get() { return deviceId; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets a unique identifier for the adapter/chip set pair.\r
- /// </summary>\r
- property System::Guid DeviceIdentifier\r
- {\r
- System::Guid get() { return deviceIdentifier; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the name of the adapter.\r
- /// </summary>\r
- property System::String^ DeviceName\r
- {\r
- System::String^ get() { return deviceName; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the name of the driver running on the adapter.\r
- /// </summary>\r
- property System::String^ DriverName\r
- {\r
- System::String^ get() { return driverName; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the version of the driver running on the adapter.\r
- /// </summary>\r
- property System::Version^ DriverVersion\r
- {\r
- System::Version^ get() { return driverVersion; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the revision level of the chip set.\r
- /// </summary>\r
- property int Revision\r
- {\r
- int get() { return revision; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the subsystem identifier for the chip set.\r
- /// </summary>\r
- property int SubsystemId\r
- {\r
- int get() { return subsystemId; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets the manufacturer identifier.\r
- /// </summary>\r
- property int VendorId\r
- {\r
- int get() { return vendorId; }\r
- }\r
-\r
- /// <summary>\r
- /// The Windows Hardware Quality Labs validation level for the driver/device pair.\r
- /// </summary>\r
- property int WhqlLevel\r
- {\r
- int get() { return whqlLevel; }\r
- }\r
-\r
- /// <summary>\r
- /// Gets a value indicating whether the adapter is WHQL certified.\r
- /// </summary>\r
- property bool Certified\r
- {\r
- bool get() { return WhqlLevel != 0; }\r
- }\r
- \r
- /// <summary>\r
- /// Gets a value indicating when the adapter was WHQL certified.\r
- /// A value of DateTime.MinValue indicates that the adapter is certified, but no specific date\r
- /// information is available. A value of DateTime.MaxValue indicates that the driver is not\r
- /// WHQL certified.\r
- /// </summary>\r
- property System::DateTime CertificationDate \r
- {\r
- System::DateTime get();\r
- }\r
- };\r
- }\r
-}
\ No newline at end of file