General information
Category:
Windows API functions
Title:
How to pass an array by reference to DeviceCapabilities API?
We have the following situation: our program needs to set another printer as the default printer, with a particular user defined paper. Then, we came back to the original default printer. We maneged to do it in a Win95 environment. Now, we're changing to WinNT workstations, with both Win95 and WinNT spoolers. What happens?? The program is not getting the default paper size.
We're trying to use the DeviceCapabilities API (winspool.drv) to determine with papers are available form a printer driver, and after this we must set the correct paper size.
But... To use this API, we need to send an array by reference! How can we do it in FOX?
PS. Is there any difference between using the DECLARE statement and the old Regfn32 in FoxTools.fll? It works only with the second one.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only