The CheckPath method is used to determine
if the client has permission to access the virtual file or directory,
based on the value of the AccessFlags parameter. For example,
if the AccessFlags parameter has the value httpAccessWrite,
this method will check if the client has write permission for the
file or directory. The method will return a non-zero value if the
client does have the requested permission, or zero if it does not.
Applications that implement their own custom handlers for standard
HTTP commands should use this method to ensure that the client has
the appropriate permissions to access the requested resource. Failure
to check the access permissions for the client can result in the
client being able to access restricted documents and other resources.
It is recommended that most applications use the default command
handlers.
To obtain the path to the local file or directory that the virtual
path is mapped to, use the ResolvePath method.