ANSWERED: How does PrintGetPrinter() work

1
0
-1

PB V12.1

Specifically, where does the PB function "PrintGetPrinter()" go to look in order to determine the current printer?

Thanks,

Olan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UPDATE:  24-MAY-2017 @ 2"38 PM CST.


I >>> THINK <<< the PowerBuilder function "PrintGetPrinter()" calls the Window function "GetPrinter()" using option #4.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd144911(v=vs.85).aspx

Question Tags: 

Answers

Julie Jiang @Appeon answered How does PrintGetPrinter() work

1
0
-1

Hi Olan, 

The PrintGetPrinter function calls the Windows function GetProfileString to get the Windows device information from the win.ini file. In Windows 10, the device information is equivalent to the data value of the Device key in the Windows registry HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows.

Hope it helps!

Best regards,

Julie

Olan Knight's picture

Thank you, Julie!