Expand Minimize

WindowsGetStringLen function

Gets the length, in Unicode characters, of the specified string.

Syntax


UINT32 WINAPI WindowsGetStringLen(
  _In_  HSTRING string
);

Parameters

string [in]

Type: HSTRING

The string whose length is to be found.

Return value

Type: UINT32

The number of Unicode characters in string, including embedded null characters, but excluding the terminating null; or 0 if string is NULL.

Remarks

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Winstring.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft