Understanding an NDR wide char string
Scott Warfield
smw at malamber.org
Fri Sep 9 11:56:29 GMT 2005
I hope this is the appropriate forum for something like this, but I am
trying to understand some NDR strings. I've read through
http://www.opengroup.org/onlinepubs/9629399/chap14.htm a bit. A wchar_t *
as I understand it would be represented as follows;
DWORD FormatLabel
DWORD MaxCount
DWORD Offset
DWORD ActualCount
WORD Character[ActualCount]
Is this correct? A real world example would be;
28 13 00 01 0F 00 00 00 00 00 00 00 0F 00 00 00
5C 00 5C 00 66 00 6F 00 6F 00 5C 00 62 00 61 00 72 00 5C 00 66 00 30 00 30
00 64 00 00 00 00 00
\.\.f.o.o.\.b.a.r.\.f.0.0.d.
The format label is "28 13 00 01"
The offset is 0
The max and actual count is 15
Is my understanding here correct or is there something missing?
Thanks all
-------------------------------------------------------
Scott Warfield
smw at malamber.org
PGP Key: 0x70AB7F3D
-------------------------------------------------------
More information about the samba-technical
mailing list