GetSaveAsOptionDefaultString

 

#include “BlackIceDEVMODE.h”

 

BOOL            GetSaveAsOptionDefaultString (BlackIceDEVMODE* pDevMode , SAVEAS_STRINGPROPS iSaveAsProp, LPTSTR pszValue DWORD* pdwSizeInBytes);

Description

This function retrieves the default values of the Save As Option dialog. This function can get the default string values. Use the GetSaveAsOptionDefaultValue function to get the default values of numeric types. The default value means that the Save As dialog uses this value when it will be displayed. For example the SAVEAS_OUTPUTPATHspecifies the default output folder displayed when the Save As dialog appears.

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

SAVE S_STRINGPROPS iSaveAsProp - the string property.

Available values:

SAVEAS_OUTPUTPATH (0)

SAVEAS_PDF_TITLE (2)

SAVEAS_PDF_AUTHOR (3)

SAVEAS_PDF_SUBJECT (4)

SAVEAS_PDF_KEYWORDS (5)

SAVEAS_PDF_USERPWD (6)

SAVEAS_PDF_OWNERPWD (7)

SAVEAS_PDF_FORCEFONT (8)

SAVEAS_PDF_FORBIDFONT (9)

SAVEAS_HTML_OUTPUTDIR (10)

SAVEAS_HTML_FORCEFONT (11)

SAVEAS_HTML_FORBIDFONT (12)

SAVEAS_REDIRECT_PRINTING_LOGFILE (14)

SAVEAS_REDIRECT_PRINTING_LOG (15)

SAVEAS_EMAIL_SMTP_SERVER (16)

SAVEAS_EMAIL_SMTP_PORT (17)

SAVEAS_EMAIL_SMTP_USER (18)

SAVEAS_EMAIL_SMTP_PWD (19)

SAVEAS_EMAIL_SMTP_SSL (20)

SAVEAS_EMAIL_SMTP_SILENT (21)

SAVEAS_EMAIL_SENDER (22)

SAVEAS_EMAIL_TO (23)

SAVEAS_EMAIL_CC (24)

SAVEAS_EMAIL_BCC (25)

SAVEAS_EMAIL_SUBJECT (26)

SAVEAS_EMAIL_BODY (27)

SAVEAS_EMAIL_LOGDIR (28)

SAVEAS_EMAIL_LOG (29)

SAVEAS_EMAIL_CLIENT_TYPE (30)

SAVEAS_SHAREPOINT_SERVER (31)

SAVEAS_SHAREPOINT_DIR (32)

SAVEAS_SHAREPOINT_USER (33)

SAVEAS_SHAREPOINT_PWD (34)

SAVEAS_SHAREPOINT_LOGFILE (35)

SAVEAS_SHAREPOINT_SILENT (36)

SAVEAS_WATERMARK_FILE_PORTRAIT (37)

SAVEAS_WATERMARK_FILE_LANDSCAPE (38)

SAVEAS_WATERMARK_FIRSTFILE_PORTRAIT (39)

SAVEAS_WATERMARK_FIRSTFILE_LANDSCAPE (40)

 

LPTSTR pszValue                           - This will contain the value of the selected property.

Available values:

SAVEAS_OUTPUTPATH: Absolute path of the output folder.

SAVEAS_PDF_TITLE: Title of the PDF on the Description tab of the PDF option dialog.

SAVEAS_PDF_AUTHOR: Author of the PDF on the Description tab of the PDF option dialog.

SAVEAS_PDF_SUBJECT: Subject of the PDF on the Description tab of the PDF option dialog.

SAVEAS_PDF_KEYWORDS: Keywords of the PDF on the Description tab of the PDF option dialog.

SAVEAS_PDF_USERPWD: PDF user password. This value is displayed on the security tab of the PDF option

                                        dialog.

SAVEAS_PDF_OWNERPWD: PDF owner password. This value is displayed on the security tab of the PDF option

                                        dialog.

SAVEAS_HTML_OUTPUTDIR: Output folder of the HTML content. This value is displayed on the General tab of the HTML option dialog.

SAVEAS_REDIRECT_PRINTING_LOGFILE: ‘Log file’ field at ‘Redirect Settings’ dialog. Max length is 255 characters.

SAVEAS_REDIRECT_PRINTING_LOG:

‘Yes’: ‘Enable redirect printing log’ checkbox is checked at ‘Redirect Settings’ dialog.

‘No’: ‘Enable redirect printing log’ checkbox is unchecked at ‘Redirect Settings’ dialog.

SAVEAS_EMAIL_SMTP_SERVER: ‘Server’ field at ‘Email Settings’ dialog. Max length is 127 characters.

SAVEAS_EMAIL_SMTP_PORT: ‘Port’ field at ‘Email Settings’ dialog. Max length is 3 characters.

SAVEAS_EMAIL_SMTP_USER: ‘User Name (with domain)’ field at ‘Email Settings’ dialog. Max length is 32 characters.

SAVEAS_EMAIL_SMTP_PWD: ‘Password’ field at ‘Email Settings’ dialog. Max length is 32 characters.

SAVEAS_EMAIL_SMTP_SSL:

‘Yes’: ‘Enable SSL’ checkbox is checked at ‘Email Settings’ dialog.

‘No’: ‘Enable SSL’ checkbox is unchecked at ‘Email Settings’ dialog.

SAVEAS_EMAIL_SMTP_SILENT:

‘Yes’: ‘Send emails silently’ checkbox is checked at ‘Email Settings’ dialog.

‘No’: ‘Send emails silently’ checkbox is unchecked at ‘Email Settings’ dialog.

SAVEAS_EMAIL_SENDER: ‘Sender name’ field at ‘Email Settings’ dialog. Max length is 63 characters.

SAVEAS_EMAIL_TO: ‘To’ addresses at ‘Email Settings’ dialog. Max length is 127 characters.

SAVEAS_EMAIL_CC: ‘Cc’ addresses at ‘Email Settings’ dialog. Max length is 127 characters.

SAVEAS_EMAIL_BCC: ‘Bcc’ addresses at ‘Email Settings’ dialog. Max length is 127 characters.

SAVEAS_EMAIL_SUBJECT: ‘Subject’ field at ‘Email Settings’ dialog. Max length is 63 characters.

SAVEAS_EMAIL_BODY: ‘Body’ field at ‘Email Settings’ dialog. Max length is 515 characters.

SAVEAS_EMAIL_LOGDIR: ‘Log directory’ field at ‘Email Settings’ dialog. Max length is 255 characters.

SAVEAS_EMAIL_LOG:

‘Yes’: ‘Enable logging’ checkbox is checked at ‘Email Settings’ dialog.

‘No’: ‘Enable logging’ checkbox is unchecked at ‘Email Settings’ dialog.

SAVEAS_EMAIL_CLIENT_TYPE:

0: ‘Use default email client’ is selected at ‘Email Settings’ dialog.

1: ‘Use SMTP client’ is selected at ‘Email Settings’ dialog.

SAVEAS_SHAREPOINT_SERVER: ‘Server name’ field at ‘SharePoint Settings’ dialog. Max length is 255 characters.

SAVEAS_SHAREPOINT_DIR: ‘Directory’ field at ‘SharePoint Settings’ dialog. Max length is 255 characters.

SAVEAS_SHAREPOINT_USER: ‘User name’ field at ‘SharePoint Settings’ dialog. Max length is 255 characters.

SAVEAS_SHAREPOINT_PWD: ‘Password’ field at ‘SharePoint Settings’ dialog. Max length is 255 characters.

SAVEAS_SHAREPOINT_LOGFILE: ‘Log file’ field at ‘SharePoint Settings’ dialog. Max length is 255 characters.

SAVEAS_SHAREPOINT_SILENT:

‘Yes’: ‘Silent mode’ checkbox is checked at ‘SharePoint Settings’ dialog.

‘No’: ‘Silent mode’ checkbox is unchecked at ‘SharePoint Settings’ dialog.

SAVEAS_WATERMARK_FILE_PORTRAIT: Path and filename of the portrait watermark image at ‘Choose Watermark’ dialog. Max length is 255 characters.

SAVEAS_WATERMARK_FILE_LANDSCAPE: Path and filename of the landscape watermark image at ‘Choose Watermark’ dialog. Max length is 255 characters.

SAVEAS_WATERMARK_FIRSTFILE_PORTRAIT: Path and filename of the portrait watermark image at the first page on the ‘Choose Watermark’ dialog. Max length is 255 characters.

SAVEAS_WATERMARK_FIRSTFILE_LANDSCAPE: Path and filename of the landscape watermark image at the first page on the ‘Choose Watermark’ dialog. Max length is 255 characters.

 

 

DWORD* pdwSizeInBytes             - Number of maximum bytes can be stored in the pszValue. If this value is zero when the function returns pdwSizeInBytes will contain the required space for pszValue.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None