guido
Thu May 12 03:58:06 CDT 2005
Thanks for your reply.
The WMI code has one problem: it requires Windows XP or newer. Since I need
Windows 2000 support WMI does not work for me. However, I found the
SetDefaultPrinter function in the Win32 API (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_027m.asp )
This works for Windows 2000 and above.
Guido
""Peter Huang" [MSFT]" wrote:
> Hi
>
> Here is a link for your reference including the sample code.
>
>
http://groups.google.co.jp/group/microsoft.public.dotnet.distributed_apps/br
> owse_thread/thread/dafccb4b376cb368/686aaae2ea164cd0?q=SetDefaultPrinter++%2
> 2C%23%22&rnum=3&hl=zh-CN#686aaae2ea164cd0
>
> Best regards,
>
> Peter Huang
> Microsoft Online Partner Support
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>