• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版8207 (tree)
时间2019-09-21 17:58:44
作者(del#24082)

Log Message

VS2005でビルドが通るようにした。

更改概述

差异

--- branches/comportinfo/teraterm/ttpcmn/devpkey_teraterm.h (revision 8206)
+++ branches/comportinfo/teraterm/ttpcmn/devpkey_teraterm.h (revision 8207)
@@ -1,3 +1,15 @@
1+#if _MSC_VER == 1400
2+
3+typedef ULONG DEVPROPTYPE, *PDEVPROPTYPE;
4+
5+typedef GUID DEVPROPGUID, *PDEVPROPGUID;
6+typedef ULONG DEVPROPID, *PDEVPROPID;
7+
8+typedef struct _DEVPROPKEY {
9+ DEVPROPGUID fmtid;
10+ DEVPROPID pid;
11+} DEVPROPKEY, *PDEVPROPKEY;
12+
113 #undef DEFINE_DEVPROPKEY
214 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
315
@@ -5,3 +17,20 @@
517 DEFINE_DEVPROPKEY(DEVPKEY_Device_InstanceId, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 256); // DEVPROP_TYPE_STRING
618 DEFINE_DEVPROPKEY(DEVPKEY_Device_Manufacturer, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 13); // DEVPROP_TYPE_STRING
719 DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverVersion, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 3); // DEVPROP_TYPE_STRING
20+
21+#if 0
22+extern "C" const DEVPROPKEY __declspec(selectany) DEVPKEY_Device_FriendlyName = { { 0xa45c254e, 0xdf1c, 0x4efd, { 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0 } }, 14 };
23+extern "C" const DEVPROPKEY __declspec(selectany) DEVPKEY_Device_InstanceId = { { 0x78c34fc8, 0x104a, 0x4aca, { 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57 } }, 256 };
24+extern "C" const DEVPROPKEY __declspec(selectany) DEVPKEY_Device_Manufacturer = { { 0xa45c254e, 0xdf1c, 0x4efd, { 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0 } }, 13 };
25+extern "C" const DEVPROPKEY __declspec(selectany) DEVPKEY_Device_DriverVersion = { { 0xa8b865dd, 0x2e3d, 0x4094, { 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6 } }, 3 };
26+#endif
27+
28+#else
29+#undef DEFINE_DEVPROPKEY
30+#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
31+
32+DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14); // DEVPROP_TYPE_STRING
33+DEFINE_DEVPROPKEY(DEVPKEY_Device_InstanceId, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 256); // DEVPROP_TYPE_STRING
34+DEFINE_DEVPROPKEY(DEVPKEY_Device_Manufacturer, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 13); // DEVPROP_TYPE_STRING
35+DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverVersion, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 3); // DEVPROP_TYPE_STRING
36+#endif
Show on old repository browser