Has anyone created a new directory from C# with Encrypting File System switched on?
Additionally any information on doing this from an install would be helpful too.<
The managed methods File.Encrypt() and FileInfo.Encrypt() both simply call the native EncryptFile() that is shown in the other answer.
EncryptFile()
So, no need to go to all the trouble to declare the p/invoke API. Just use the built-in methods.