开发者

Problem with GetDefaultPrinter() over a VPN c++

开发者 https://www.devze.com 2022-12-28 15:26 出处:网络
I am writing an application that gets its dimensions from the paper ratio of the default printer of the local computer. This all works well unless the default printer is over a VPN. When this is the c

I am writing an application that gets its dimensions from the paper ratio of the default printer of the local computer. This all works well unless the default printer is over a VPN. When this is the case, calling GetDefaultPrinter() takes too long. I need to find a way to put a time constraint on GetDefaultPrinter() and if it exceeds that constraint, break out of the function. 开发者_如何学C

Any possible solutions would be great.

Thanks,

Ian


Would putting this sort of functionality into a separate thread be acceptable?

0

精彩评论

暂无评论...
验证码 换一张
取 消