首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

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

2012-02-24 
新手求解几个函数的用法 谢谢IsBadReadPtrIsBadWritePtrIsBadCodePtrIsBadStringPtr如果判断*P这个指针怎

新手求解几个函数的用法 谢谢
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.

热点排行