please dont rip this site Prev Next

PrinterMessageBox info  Overview  Group

The PrinterMessageBox function displays a message box that lets an application that is printing notify the user of a printing job error. If the owner of the job is logged on remotely, the function sends a net popup to the owner. If the user selects Cancel in the message box, the function cancels the print job; otherwise, the function clears the job error status, and the system tries to print the job again.

HPRINTER PrinterMessageBox (

    HANDLE hPrinter,

// handle of printer

    DWORD Error,

// error identifier

    HWND hWnd,

// handle of owner window

    LPTSTR pText,

// pointer to message box text

    LPTSTR pCaption,

// pointer to message box title

    DWORD dwType 

// style of message box

   );

Parameters

hPrinter
Identifies the printer to which the job was sent.
Error
Specifies the error that occurred. This parameter can be one of the following values:

Value

Meaning

ERROR_OUT_OF_PAPER

The printer is out of paper.

ERROR_NOT_READY

The printer is not ready.

hWnd
Identifies an owner window for the message box the function creates. If this parameter is NULL, the message box has no owner window.
pText
Points to a null-terminated string that specifies the message to be displayed.
pCaption
Points to a null-terminated string that specifies the dialog box title. If this parameter is NULL, the function uses the default title “Error”.
dwType
Specifies the contents and behavior of the dialog box. This parameter can be a combination of any of the values accepted by the MessageBox function’s fourth parameter; however, it is recommended that an application use the following combination:
   MB_ICONSTOP | MB_RETRYCANCEL | MB_SETFOREGROUND 

 

Return Values

If PrinterMessageBox sends a net popup, the return value is IDOK. Otherwise, the function returns the value returned by the message box the function displays. Two typical return values are the following:

Value

Meaning

IDCANCEL

Cancel button was selected.

IDRETRY

Retry button was selected.

For a more complete list of message box return values, see MessageBox.

See Also

MessageBox 


file: /Techref/os/win/api/win32/func/src/f68_10.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/12/26 00:32,
TOP NEW HELP FIND: 
18.117.151.198:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f68_10.htm"> PrinterMessageBox</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .