<div class="content" name="RPC_UNICODE_STRING" uuid="94a16bb6-c610-4cb9-8db6-26f15f560061"><p>The RPC_UNICODE_STRING structure specifies a <a href="a66edeb1-52a0-4d64-a93b-2f5c833d7d92#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode string</a>. This
structure is defined in <a href="a66edeb1-52a0-4d64-a93b-2f5c833d7d92#gt_73177eec-4092-420f-92c5-60b2478df824" data-linktype="relative-path">IDL</a>
as follows:</p><dl>
<dd>
<div><pre> typedef struct _RPC_UNICODE_STRING {
   unsigned short Length;
   unsigned short MaximumLength;
   [size_is(MaximumLength/2), length_is(Length/2)] 
     WCHAR* Buffer;
 } RPC_UNICODE_STRING,
  *PRPC_UNICODE_STRING;
</pre></div>
</dd></dl><p><b>Length:</b>  The length, in bytes, of
the string pointed to by the <b>Buffer</b> member. The length MUST be a
multiple of 2. The length MUST equal the entire size of the buffer.</p><p><b>MaximumLength:</b>  The maximum size, in
bytes, of the string pointed to by <b>Buffer</b>. The size MUST be a multiple
of 2. If not, the size MUST be decremented by 1 prior to use. This value MUST
not be less than <b>Length</b>.</p><p><b>Buffer:</b>  A pointer to a string
buffer. The string pointed to by the buffer member MUST NOT include a
terminating null character.</p></div>