2

我正在为 Honeywell Dolphin 6100 开发一个应用程序,这是一款带有条形码扫描仪的移动计算机,它使用类似 Windows CE 5.0 的操作系统。

我想使用代码行获取设备名称。

有人对此有想法吗?

注意:我在 win7 上使用 C# 使用 VS2008。

4

2 回答 2

0
private const string IDENTITY = @"HKEY_LOCAL_MACHINE\Ident";
private const string NAME = "Name";  

string DeviceName = (string)Registry.GetValue(IDENTITY, NAME, "NAME");
于 2016-10-24T10:47:14.080 回答
0

我们为同一设备开发了一个应用程序,我们使用这个句子来获取设备名称。

Private Sub deviceidt_ParentChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles deviceidt.ParentChanged
        Dim deviceidn As String = System.Net.Dns.GetHostName
        deviceidt.Text = deviceidn
        End If
    End Sub
于 2018-09-13T15:13:12.597 回答