SourceDirectory Property
Directory to be compressed into a self-decrypting archive.
Syntax
ANSI (Cross Platform) char* GetSourceDirectory();
int SetSourceDirectory(const char* lpszSourceDirectory); Unicode (Windows) LPWSTR GetSourceDirectory();
INT SetSourceDirectory(LPCWSTR lpszSourceDirectory);
@property (nonatomic,readwrite,assign,getter=sourceDirectory,setter=setSourceDirectory:) NSString* sourceDirectory; - (NSString*)sourceDirectory; - (void)setSourceDirectory:(NSString*)newSourceDirectory;
#define PID_SDA_SOURCEDIRECTORY 9 IPWORKSOPENPGP_EXTERNAL void* IPWORKSOPENPGP_CALL IPWorksOpenPGP_SDA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSOPENPGP_EXTERNAL int IPWORKSOPENPGP_CALL IPWorksOpenPGP_SDA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
This property specifies the name of the directory containing the files to be compressed. This may be a local or absolute path. If the RecurseSubdirectories property is true, all the subdirectories under SourceDirectory will be recursed into, and those files will also be compressed.
Example (Creating a Self-Decrypting Archive)
class.ArchiveFile = "c:\test.exe" class.RecurseSubdirectories = true class.SourceDirectory = "c:\foo\" class.CaptionText = "Testing SDA" class.BannerText = "Press continue to decompress the archive." class.CreateSDA() class.ArchiveFile = "c:\test.exe" class.SourceFile = "c:\foo\bar.dat" class.CaptionText = "Testing SDA" class.BannerText = "Press continue to decompress the archive." class.CreateSDA()
Data Type
String