. DirectXtras Home

DirectCommunication Xtra
DirectConnection Xtra
DirectControl Xtra
DirectEmail Xtra
DirectFTP Xtra
DirectImage Xtra
DirectInteraction Xtra
DirectOS Xtra
License Agreement
Licensing Fees
Order Form
DirectSMS Xtra
DirectSound Xtra
DirectTransition Xtra
DirectTransition3D Xtra Set I
DirectTransition3D Xtra Set II
DirectTransition3D Xtra Set III
DirectTTS Xtra
DirectXport Xtra


Special Discounted Bundles

The Gallery
How To Order
Order Form
Check for Upgrades

Sign in
Change Your Profile

Contact Us

Xtra Power for Director & Authorware

DirectOS Xtra
 Directing Windows and MacOS. The OS at your fingertips!

Authorware 4.x Compatible Authorware 5.x CompatibleAuthorware 6.x CompatibleAuthorware 7.x CompatibleDirector 5.x Compatible Director 6.x CompatibleDirector 7.x Compatible Director 8.x CompatibleDirector MX Compatible     MacOS 8.x and 9.x CompatibleMacOS X CompatibleWindows Compatible   

dosEncryptFile(string FileName, string EncryptedFileName, string Key)

Encrypts the file specified by FileName and stores the encrypted contents of the file in the file specified by EncryptedFileName. The encryption is done with the use of Key. The encrypted file may be decrypted using the dosDecryptFile() method with Key having the same value as when the dosEncryptFile() method was called to encrypt FileName.

Parameters :

FileName : A string specifying the full path name of the file to encrypt.
EncryptedFileName : A string specifying the full path name of the target encrypted file. If this string is the same as FileName then the encrypted file will overwrite the original file.
Key : A string specifying the key to encrypt with. Key may be of any length. If Key is an empty string no encryption will be made and the target file specified by EncryptedFileName will be identical to the source file specified by FileName.

Return Value : An integer indicating whether the method was successful or not. If 1 is returned, the method was successful. If 0 is returned, the method was not successful in which case dosGetLastError() should be called to determine the cause of the error. 

Possible Returned Error Codes via dosGetLastError() :
10016 : Invalid file name specified. 
10020 : File is write disabled. Could not write encrypted code back to file. 

DirectXtras Inc.
P.O Box 2645, Menlo Park, CA, 94026, U.S.A
Voice: +1-415-5058249, Fax: +1-801-8585841
Toll Free: 1-800-4453093
E-mail General Information: info@directxtras.com
E-mail Technical Support: support@directxtras.com

Copyright 1996-2004 DirectXtras Inc. All Rights Reserved.
WebMaster: tamar@directxtras.com
Last Updated: 2/24/2002 1:31:52 PM.