What is the difference between the OnCreateFileC and OnOpenFileC callbacks?

This is a single file system request divided into two user-mode callbacks based on the value of the CreateDisposition parameter. The request is interpreted as the OnCreateFileC callback when CreateDisposition is equal to CREATE_NEW. In other cases, it is interpreted as the OnOpenFileC callback. In both cases, it is better to handle the callbacks identically, because a new file may be created with a CREATE_ALWAYS or TRUNCATE_EXISTING flag set as well.

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now