by Suresh Kumar (1 Submission)
Category: Databases/Data Access/DAO/ADO
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 29th March 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)
FIND OUT APPLICATION DETAILS AND VERSION
API Declarations
I am working on a MDI Project in which there is an automatic e-mail sending program. I would also like to know about the application verion (e.g. to find out what MS Outlook version is using by the user). Could you please send me the codes. Please see below the sample code of Getr User Information. Similar to this, I need MS Outlook version! Please help me.
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public Function NetworkUserName() As String
Dim lpBuff As String * 25
Dim lret As Long
lret = GetUserName(lpBuff, 25)
NetworkUserName = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
End Function
Thanks,
Suresh
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public Function NetworkUserName() As String
Dim lpBuff As String * 25
Dim lret As Long
lret = GetUserName(lpBuff, 25)
NetworkUserName = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
End Function
Thanks,
Suresh