APAR status
Closed as user error.
Error description
A LotusScript agent that calls a function from advapi32.dll or wininet.dll on Windows/Domino 64 returns error : "External function not found" The agent works in Win32 with the same version of Domino 8.5. The agent declares a function that calls into a specific Windows DLL file to get the username of the user logged into the OS. Add the following API call into the "Declarations" section of a LotusScript agent: Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (Byval lpBuffer As String, nSize As Long) As Long Add the following codeto the Initialize section or other appropriate area: Dim lpBuff As String * 25 Dim ret As Long ret = GetUserName(lpBuff, 25) UserName = Ucase(Left(lpBuff, Instr(lpBuff, Chr(0)) - 1))
Local fix
Problem summary
Problem conclusion
Temporary fix
Comments
This APAR is associated with SPR# RNOG7JTVDT. Per development: If you are running the Notes client (32-bit code) on a 64-bit windows machine, you want to use C:\WINDOWS\syswow64\ADVAPI32.dll for more information on why there are two copies, see: http://msdn.microsoft.com/en-us/library/aa384187(VS.85).aspx
APAR Information
APAR number
LO46641
Reported component name
DOMINO SERVER
Reported component ID
5724E6200
Reported release
850
Status
CLOSED USE
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-11-25
Closed date
2010-09-10
Last modified date
2010-09-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTMJ","label":"Lotus Domino"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
10 September 2010