Are the following facts trivial? Maybe not trivial enough.

In the C and C++ languages, if the name of an array is used in an expression
then it usually converts to a pointer type, but not always. Also array
types in function parameters usually convert. However, if an array is being
defined and storage is being reserved for the elements, then the name of the
array is the name of the array itself, and does not convert to a pointer.

Let's hope those facts are understood by most device driver writers, so that
they don't cause many blue screens. Let's hope. Let's hope those facts are
understood by big software vendors who have been known to write device
drivers. Oops.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/sp_device_interface_detail_data_str.asp
says:
> DevicePath
> Pointer to a NULL-terminated string that specifies the device path.

RE: SP_DEVICE_INTERFACE_DETAIL_DATA by jeffm

jeffm
Wed Feb 08 17:37:45 CST 2006

------=_NextPart_0001_AC717EC3
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Norman,

Thanks for catching that typo. The description for the parameter should
not have included the words 'Pointer to' as you suggest. The error has
been corrected in the documentation for the current DDK. Please see:

SP_DEVICE_INTERFACE_DETAIL_DATA
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_r/h
h/DevInst_r/di-struct_fbf4856e-f570-4024-b4eb-6ac7555d65ca.xml.asp

Thanks!
[MSFT] Jeff McCashland
jeffm@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.



------=_NextPart_0001_AC717EC3
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Norman,
\par
\par Thanks for catching that typo. The description for the parameter should not have included the words 'Pointer to' as you suggest. The error has been corrected in the documentation for the current DDK. Please see:
\par
\par SP_DEVICE_INTERFACE_DETAIL_DATA
\par http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_r/hh/DevInst_r/di-struct_fbf4856e-f570-4024-b4eb-6ac7555d65ca.xml.asp
\par
\par Thanks!
\par [MSFT] Jeff McCashland
\par jeffm@online.microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par
\par
\par }
------=_NextPart_0001_AC717EC3--