Share via


Fonction RouterFreePrinterNotifyInfo (winsplp.h)

La fonction du RouterFreePrinterNotifyInfo spouleur d’impression libère une structure PRINTER_NOTIFY_INFO spécifiée et son tableau de structure PRINTER_NOTIFY_INFO_DATA associé. (Ces structures sont décrites dans la documentation Microsoft Windows SDK.)

Syntaxe

BOOL RouterFreePrinterNotifyInfo(
  [in, optional] PPRINTER_NOTIFY_INFO pInfo
);

Paramètres

[in, optional] pInfo

Pointeur fourni par l’appelant vers une structure de PRINTER_NOTIFY_INFO (décrit dans la documentation SDK Windows).

Valeur retournée

Si l’opération réussit, la fonction retourne TRUE. Sinon, la fonction retourne FALSE.

Remarques

La fonction RefreshPrinterChangeNotification d’un fournisseur d’impression doit appeler RouterFreePrinterNotifyInfo pour libérer les structures précédemment allouées par RouterAllocPrinterNotifyInfo, mais uniquement si RefreshPrinterChangeNotification rencontre une erreur. Si RefreshPrinterChangeNotification réussit, vous devez supposer que l’application cliente libère les structures.

Outre la désaffectation de la structure PRINTER_NOTIFY_INFO spécifiée et de son tableau de structure PRINTER_NOTIFY_INFO_DATA associé, la fonction libère également l’espace tampon pointé par pBuf dans n’importe quel élément du tableau de structure PRINTER_NOTIFY_INFO_DATA.

Pour plus d’informations, consultez Prise en charge des notifications de modification d’imprimante.

Configuration requise

Condition requise Valeur
Plateforme cible Desktop (Expérience utilisateur)
En-tête winsplp.h (inclure Winsplp.h)
Bibliothèque Spoolss.lib
DLL Spoolss.dll

Voir aussi

RefreshPrinterChangeNotification

RouterAllocPrinterNotifyInfo