Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DocumentProperties anyone?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010251
Message ID:
01011484
Views:
19
>No, the third parameters is pointer to PRINTER_INFO_x structure where in that structure lies the pointer to DEVMODE structure.
>
>You see this code from the example at the above link:
>
>pi2->pDevMode = pDevMode
>
Okay, but the point is that VFP doesn't handle pointers very well. I'm still not sure what to put in the third parameter.

>
>It is not SendMessage() though. It's SendMessageTimeout:
>
>SendMessageTimeout(HWND_BROADCAST, WM_DEVMODECHANGE, 0L,
>   (LPARAM)(LPCSTR)pPrinterName, SMTO_NORMAL, 1000, NULL);
>
Hmmm... looks like that 4th parameter is a pointer again. That's what's really causing me problems. Maybe I'm better off sticking to figuring out what's wrong with my DocumentProperties command!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform