###User Defined Function###
_WinAPI_EncryptionDisable

###Description###
Disables or enables encryption of the specified directory and the files in it.

###Syntax###
#include <WinAPIFiles.au3>
_WinAPI_EncryptionDisable ( $sDir, $fDisable )


###Parameters###
@@ParamTable@@
$sDir
	The name of the directory for which to enable or disable encryption. If this parameter specifies
	a file, the attempt will fail.
$fDisable
	Specifies whether to disable or enable encryption, valid values:
	True     - Disable.
	False    - Enable.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	True.
Failure 	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
If encryption is disabled, the function will write the following to the Desktop.ini file in the directory
(creating it if necessary):

[Encryption]
Disable=1

The user can also manually add or edit the above lines in the Desktop.ini file and produce the same effect.
Thereafter, _WinAPI_EncryptFile() function will fail on the directory and the files in it, and the last error
code will be ERROR_DIR_EFS_DISALLOWED (6010). This function does not affect encryption of subdirectories
within the given directory.

If encryption is enabled, the function will write the following to the Desktop.ini file:

[Encryption]
Disable=0


###Related###
_WinAPI_EncryptFile


###See Also###
@@MsdnLink@@ EncryptionDisable
