' Function declarations to get and set strings in .INI files.
Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedSTRING As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpSTRING As String, ByVal lplFileName As String) As Integer
'**************
' VbvLinkPoke
'**************
' Poke some values into a DDE link.
' Parameters:
' DDELink - a text box (not necessarily visible!) which is used to
' link to DDE. The form containing this text box must be loaded.
' LinkItem$ - a string identifying which property is being poked.
' Text$ - a string containing the value being poked.
'********************
' VbvSetDestination
'********************
' Set the destination name and number in the fax manager.
' Parameters:
' DDELink - a text box (not necessarily visible!) which is used to
' link to DDE. The form containing this text box must be loaded.
' DestinationNumber$ - the fax number being dialed.
' RecipientName$ - the name of the fax's recipient.
'****************
' VbvGetPrinter
'****************
' Get the current default printer for the system.
' Returns:
' A string describing the current printer settings in WIN.INI.
'********************
' VbvActivateWinFax
'********************
' Read WinFax settings from WIN.INI and set it as the default device.
'****************
' VbvSetPrinter
'****************
' Set a printer description as the default printer.
'***************
' VbvPrintFile
'***************
' Print off a given file to the WinFax fax manager. Note that it is assumed
' by this function that the file is already formatted as expected. Thus text
' files are assumed to have been formatted already with page breaks and
' margins. If this is not the case, an preprocessing function of some sort
' should be created to format the text file into a temporary text file
' first. This temporary text file should then be printed instead.
'*************
' VbvSendFax
'*************
' Send a file to the fax manager. This function is the entry point into the
' fax transmission portion of the library.
' Parameters:
' DDELink - a text box (not necessarily visible!) which is used to
' link to DDE. The form containing this text box must be loaded.
' RecipientName$ - the name of the fax's recipient.
' DestinationNumber$ - the fax number being dialed.
' FaxFile$ - the ascii file being transmitted.
' CoverFile$ - the ascii text file used as a cover sheet.
'**************
' VbvFaxSetup
'**************
' This function should be called once at the beginning of your program to
' establish a DDE link with WinFax. The calling function should check for an
' error return in case we had a more serious problem than the fax manager
' not being loaded.
' Parameters:
' DDELink - a text box (not necessarily visible!) which is used to
' link to DDE. The form containing this text box must be loaded.
'*****************
' VbvFaxShutdown
'*****************
' This function should be called once at the end of your program to terminate
' the DDE link to WinFax's manager.
' Parameters:
' DDELink - a text box (not necessarily visible!) which is used to
' link to DDE. The form containing this text box must be loaded.
Sub VbvActivateWinFax ()
Dim WinFaxSettings$ 'string containing WinFax's settings
Dim retStr As String * 255 'buffer for string returned from win.ini