ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2025 feature!
Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
EmailAppGetArchitecture (Function)
In french: EmailAppliRécupèreArchitecture
Gets the architecture (32 or 64-bit) of a computer's default email client.
Reminder: To launch the default email client, both the WINDEV application and the MAPI client must be 32-bit or 64-bit. If the client is a 32 or 64-bit application, it will only be supported by 32 or 64-bit applications, respectively.. The EmailAppGetArchitecture function gets the execution mode of the default email client. Depending on the MAPI client's architecture, you can also launch a 32 or 64-bit application to run the client.
Example
nArchitecture is int = EmailAppGetArchitecture()
IF ErrorOccurred THEN
	Error("Unable to determine default email client architecture.")
	RETURN
END
<COMPILE IF Configuration32>
	IF nArchitecture = arch32 THEN
		EmailRunApp()
	ELSE
		// Launch a WINDEV 64-bit executable to run the email client
		ExeRun(fExeDir() + [fSep()] + "LaunchEmailClient_64.exe")
	END
	RETURN
<END>
<COMPILE IF Configuration64>
	IF nArchitecture = arch64 THEN
		EmailRunApp()
	ELSE
		// Launch a WINDEV 64-bit executable to run the email client
		ExeRun(fExeDir() + [fSep()] + "LaunchEmailClient_64.exe")
	END
	RETURN
<END>
Error("Unable to determine application architecture")
Syntax
<Result> = EmailAppGetArchitecture()
<Result>: Integer constant
Architecture of the computer's default email client: Available constants:
arch32The default email client is a 32-bit program.
arch64The default email client is a 64-bit program.
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/03/2024

Send a report | Local help