Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6379

What does attribute WCHAR Name[1] means in Windows Kernel?

$
0
0

I was wondering what does this structure means

typedef struct _VOLSNAP_NAME {  USHORT  NameLength;  WCHAR   Name[1];} VOLSNAP_NAME, *PVOLSNAP_NAME;

I'm not understanding why the structure has a NameLength value since the Name length seems to be always 1.
I also don't get why is the WCHAR Name[1] size present : should'nt

WCHAR Name;

be enough ?


Viewing all articles
Browse latest Browse all 6379

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>