VERSION 5.00 Begin VB.Form AboutForm BorderStyle = 3 'Fixed Dialog Caption = "About Word Diff" ClientHeight = 3150 ClientLeft = 45 ClientTop = 330 ClientWidth = 4680 ControlBox = 0 'False LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3150 ScaleWidth = 4680 ShowInTaskbar = 0 'False StartUpPosition = 1 'CenterOwner Begin VB.CommandButton cmdClose Cancel = -1 'True Caption = "OK" Default = -1 'True Height = 375 Left = 1560 TabIndex = 1 Top = 2640 Width = 1215 End Begin VB.TextBox AboutText Appearance = 0 'Flat BackColor = &H8000000F& BorderStyle = 0 'None Height = 2415 Left = 120 Locked = -1 'True MultiLine = -1 'True TabIndex = 0 Text = "AboutForm.frx":0000 Top = 120 Width = 4335 End End Attribute VB_Name = "AboutForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 End Type Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long Private Sub cmdClose_Click() Unload Me End Sub Private Sub Form_Load() AboutText.Text = "Diff plugin for Microsoft Word." & vbCrLf & vbCrLf & _ "Version: " & DLLVersion() & vbCrLf & _ "Windows Version: " & WindowsVersion() & vbCrLf & vbCrLf & _ "Copyright 2015 Robert Cowham" & vbCrLf & _ "http://www.vaccaperna.co.uk" Screen.MousePointer = vbDefault Exit Sub End Sub Public Function DLLVersion() As String DLLVersion = CStr(VB.App.Major) & "." & CStr(VB.App.Minor) & "." & CStr(VB.App.Revision) End Function 'Returns Version of Windows as a String. 'NOTE: Win95 returns "4.00", WIn98 returns "4.10" Public Function WindowsVersion() As String Dim osInfo As OSVERSIONINFO Dim Msg As String Dim build As String, ver_major As String, ver_minor As String osInfo.dwOSVersionInfoSize = Len(osInfo) GetVersionEx osInfo Select Case osInfo.dwPlatformId Case 0 Msg = Msg & "Windows 32s " Case 1 Msg = Msg & "Windows 95/98 " Case 2 Msg = Msg & "Windows NT " End Select ver_major = osInfo.dwMajorVersion ver_minor = osInfo.dwMinorVersion build = osInfo.dwBuildNumber Msg = Msg & ver_major & "." & ver_minor Msg = Msg & " (Build " & build & ")" WindowsVersion = Msg End Function