>Hello,
>
>I want to do the following in a FoxPro 2.6 application:
>Get the name of the default printer
>Set the default printer to a specific printer
>Do some reporting
>Set the default printer to the previous setting.
>
>Is there a 16 bit API function that I could use for this purpose?
>
>Thanks for any help in advance!
You can use GetProfileString() and WriteProfileString() to retrieve the information from the Windows section Device entry of the WIN.INI file. This works even if win.ini is actually empty since under Win32 they use the registry entries.
George
Ubi caritas et amor, deus ibi est