Domino Code Fragment

Code Name*
API Call, How to Make Windows API Calls, Taking the Windows Version into Account
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.222.69.152
Description*
Windows API calls usually differ, depending upon the Windows version that is in use when the call is made. The following example illustrates how to call the Windows API GetPrivateProfileString function while taking into account the Windows version in use:
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:

Check the Windows version using the NotesSession Platform property before making the API call. In some cases, it may be necessary to also include the optional Alias statement when declaring the function. This argument allows you to declare two different functions that accomplish the same result, based upon the Windows version in use.

The following example illustrates how to call the Windows API GetPrivateProfileString function while taking into account the Windows version in use: