If the application is running under a debugger, the function will throw an exception if it receives either a handle value that is not valid or a pseudo-handle value. This can happen if you close a handle twice, or if you call CloseHandle on a handle returned by the FindFirstFile function instead of calling the FindClose function.
在Release版本,返回失败
在Debug版本下,抛出异常
如果是非法的话这个close不会影响的,release只是会返回失败而已
我用一个COM安全工具测了一下,输入的参数是2147483647, 0, -2147483647时会crash. 这应该要怎么保护?
else 有效;