コード例 #1
0
ファイル: DeviceNode.cs プロジェクト: RichardTang/UCIS.Core
 public String GetCustomPropertyString(String name)
 {
     Byte[] buffer = GetCustomProperty(name);
     if (buffer == null)
     {
         return(null);
     }
     return(SetupApi.GetAsString(buffer, buffer.Length));
 }
コード例 #2
0
ファイル: DeviceNode.cs プロジェクト: RichardTang/UCIS.Core
 public String GetDevicePropertyString(Guid fmtid, UInt32 pid)
 {
     Byte[] buffer = GetDeviceProperty(fmtid, pid);
     if (buffer == null)
     {
         return(null);
     }
     return(SetupApi.GetAsString(buffer, buffer.Length));
 }
コード例 #3
0
ファイル: DeviceNode.cs プロジェクト: RichardTang/UCIS.Core
 public String GetPropertyString(CMRDP property)
 {
     Byte[] buffer = GetProperty(property);
     if (buffer == null)
     {
         return(null);
     }
     return(SetupApi.GetAsString(buffer, buffer.Length));
 }