读书人

新手求解几个函数的用法 多谢

发布时间: 2012-02-24 16:30:38 作者: rapoo

新手求解几个函数的用法 谢谢
IsBadReadPtr
IsBadWritePtr
IsBadCodePtr
IsBadStringPtr

如果判断 *P 这个指针 怎么判断他的合法性

谢谢各位

[解决办法]
The IsBadReadPtr function verifies that the calling process has read access to the specified range of memory.


BOOL IsBadReadPtr(
const VOID* lp,
UINT_PTR ucb
);

Parameters
lp
[in] Pointer to the first byte of the memory block.
ucb
[in] Size of the memory block, in bytes. If this parameter is zero, the return value is zero.

读书人网 >C++

热点推荐