IBITSExtensionSetup::EnableBITSUploads method (bitscfg.h)
Use the EnableBITSUploads method to enable BITS upload on the virtual directory to which the ADSI object points. This method sets the BITSUploadEnabled IIS extension property.
Syntax
HRESULT EnableBITSUploads();
Return value
This method returns S_OK for success. Otherwise, the method failed.
Remarks
This method turns off the scripting and execute permissions on the virtual directory; you cannot upload files to a virtual directory that has scripting and execute permissions enabled. If the permissions are restored after calling this method, the upload jobs fail with an error code of BG_E_SERVER_EXECUTE_ENABLED.
The EnableBITSUploads method fails if the Task Scheduler is disabled.
Examples
See the example for the IBITSExtensionSetup interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2003 |
Target Platform | Windows |
Header | bitscfg.h |
DLL | BitsMgr.dll |
Redistributable | BITS 1.5 on Windows XP |