<div dir="ltr"><div class="gmail_default" style="font-size:small">dlls/include/mmsystem.h:#define MAXPNAMELEN      32     /* max product name length (including NULL) */<br></div><div class="gmail_default"><br></div><div class="gmail_default">I wanted to know what the reason was for bounding this string to only 32 bytes (actually 31 + null).  We have a situation with identical devices and need to add some differentiating text to that string when multiple identical devices exist so that applications can choose the correct device.  </div><div class="gmail_default"><br></div><div class="gmail_default">Our device product string is "USB PnP Sound Device" (20 chars).</div><div class="gmail_default">mmdevdrv.c:static WCHAR *construct_device_id() then prefixs with either "In: " (4 chars) or "Out: " (5 chars) and concatenates " - USB" (6 chars).</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default"><font face="monospace">In: USB PnP Sound Device - USB</font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace">Out: USB PnP Sound Device - USB</font></div></div></blockquote><div class="gmail_default"><div class="gmail_default"></div></div><div class="gmail_default">Total string length is 30 or 31 characters.  Any additional text added at the end will get truncated and a prefix will cause the existing string to be truncated.</div><div class="gmail_default"><br></div><div class="gmail_default">-Doug-</div><div class="gmail_default"><br></div></div>