Function Reference


_WinAPI_IsBadStringPtr

Verifies that the calling process has read access to the specified range of memory

#include <WinAPIMem.au3>
_WinAPI_IsBadStringPtr ( $pAddress, $iLength )

Parameters

$pAddress A pointer to a null-terminated string, either Unicode or ASCII.
$iLength The maximum size of the string, in TCHARs.

Return Value

True: the calling process does not have read access to all characters up to the string's terminating null
character or up to the number of specified characters.
False: the calling process have read access.

Remarks

This function checks for read access in all characters up to the string's terminating null character or up to the
number of characters specified by this parameter, whichever is smaller.

See Also

Search IsBadStringPtr in MSDN Library.