Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WindowsStringHasEmbeddedNull function

Indicates whether the specified string has embedded null characters.

Syntax


HRESULT WINAPI WindowsStringHasEmbeddedNull(
  _In_  HSTRING string,
  _Out_ BOOL    *hasEmbedNull
);

Parameters

string [in]

Type: HSTRING

The string to test for embedded null characters.

hasEmbedNull [out]

Type: BOOL*

TRUE if string has one or more embedded null characters; otherwise, FALSE. FALSE if string is NULL or the empty string.

Return value

Type: HRESULT

This function can return one of these values.

Return codeDescription
S_OK

The test completed successfully.

E_INVALIDARG

hasEmbedNull 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:
© 2015 Microsoft