Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 3085

What happens if I don't pass a pCreateExParams to CreateFile2?

$
0
0

The final pCreateExParams parameter to the CreateFile2 function is optional. What happens if I pass NULL?

If you pass NULL as the pCreateExParams parameter, then the function behaves as if you had passed a pointer to this structure:

CREATEFILE2_EXTENDED_PARAMETERS defaultCreateExParams =
{
 sizeof(defaultCreateExParameters), // dwSize
 0, // dwFileAttributes
 0, // dwFileFlags
 0, // dwSecurityQosFlags
 NULL, // lpSecurityAttributes
 NULL, // hTemplateFile
};

Viewing all articles
Browse latest Browse all 3085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>