函数参考


_WinAPI_IsBadStringPtr

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

#Include <WinAPIEx.au3>
_WinAPI_IsBadStringPtr ( $pAddress, $iLength )

参数

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

返回值

Success 1 - 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.
0 Otherwise.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

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.

相关

详情参考

在MSDN中搜索