REM Description: Loads the last file that was edited.
REM WSWin Macro File: loadlast.wmc
REM Created by: Steven Wylie - 11/22/93
REM To automatically load the last file edited when you start WSWin, rename this
REM macro to ONSTART.WMC.
REM Use the Windows function instead of internal.
DECLARE FUNCTION GetPrivateProfileString LIB "kernel" (lpApplicationName AS STRING, lpKeyName AS STRING, lpDefault AS STRING, lpReturnedString AS STRING, nSize As WORD, lpFileName AS STRING) As Integer
CONST IniFile$ = "wsw.ini"
CONST Section$ = "Document History"
CONST Key$ = "WorkDoc1"
cmdLine$ = GetCommandLine$()
IF cmdLine$ = "" THEN
REM See if there's an entry for the first Workdoc.