3 Jan
2004
3 Jan
'04
5:34 a.m.
"Mike Hearn" <mike(a)theoretic.com> wrote:
+ num = sizeof(PrinterName); + if (!GetDefaultPrinterW(PrinterName, &num))
+ WCHAR default_name[255]; + DWORD default_name_size = sizeof(default_name); + + if (GetDefaultPrinterW(default_name, &default_name_size) == 0) {
You should pass the size of buffer in characters, not in bytes to GetDefaultPrinter. -- Dmitry.
8015
Age (days ago)
8015
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov