Syntax:
INT LsMailConfigurationDialog (HWND hWndParent, LPCTSTR pszSubkey, UINT nFlags, INT nLanguage);
Task:
Opens a configuration dialog for the mail parameters. Can be used if the CMMX29.DLL is used for sending export results by mail.
The settings will be saved in the registry under "HKEY_CURRENT_USER\software\combit\cmbtmx\<pszSubkey>\<User|Computer>".
Parameter:
hWndParent: Parent window handle for the dialog.
pszSubkey: Subkey that is used for saving the values in the registry. You should use your application's executable name (excluding the path and file extension) here. The values will then be set automatically.
Alternatively, a complete registry key like "HKEY_CURRENT_USER\..." or "HKEY_LOCAL_MACHINE\..." can be passed.
nFlags: Any combination of LS_MAILCONFIG_USER and LS_MAILCONFIG_GLOBAL (at least one must be specified). Optionally LS_MAILCONFIG_PROVIDER can be added for storing the transport provider (added/'or'ed). The data of the transport provider are user specific unless the flag LS_MAILCONFIG_USER was not specified.
Value |
Meaning |
LS_MAILCONFIG_USER |
User-specific data |
LS_MAILCONFIG_GLOBAL |
Computer-specific data |
LS_MAILCONFIG_PROVIDER |
Provider selection (SMAPI, SMTP, ...) |
All data (also the computer specific data) is saved user-specifically – the flags just define a logical separation for the dialog (server settings and user information).
nLanguage: Language for the dialog
Value |
Meaning |
CMBTLANG_DEFAULT |
System language |
CMBTLANG_GERMAN |
German |
CMBTLANG_ENGLISH |
English |
Other values can be found in the declaration files.
Return value:
Error code
See also:
-