Y
youqiang_wu
Guest
reference:
GetDefaultPrinter function (Winspool.h) - Win32 apps
This is a blocking or synchronous function and might not return immediately. How quickly this function returns depends on run-time factors such as network status, print server configuration, and printer driver implementation factors that are difficult to predict when writing an application. Calling this function from a thread that manages interaction with the user interface could make the application appear to be unresponsive.
so how should i simulate the asynchronous scene of GetDefaultPrinter?
i try many times in my pc , it always return immediately!
Continue reading...
GetDefaultPrinter function (Winspool.h) - Win32 apps
This is a blocking or synchronous function and might not return immediately. How quickly this function returns depends on run-time factors such as network status, print server configuration, and printer driver implementation factors that are difficult to predict when writing an application. Calling this function from a thread that manages interaction with the user interface could make the application appear to be unresponsive.
so how should i simulate the asynchronous scene of GetDefaultPrinter?
i try many times in my pc , it always return immediately!
Continue reading...