[quote user="Vincent Fatica"]
What is (WM_FM_FORMBASE + 12)? That's 2836. My extension receives it during Pmail shutdown.
Thanks.
[/quote]
There's an official shutdown message sent by Pegasus Mail:
WM_FM_LOGEVENT = (WM_FM_FORMBASE + 9);
using he following wParam value:
WLOG_SHUTDOWN = 32; { See below }
{ ** Note: requires extension manager v1.12 (WinPMail v4.1) or later }
{ This message is sent to extensions once or twice, depending on how }
{ the user exits from the program. If the user presses Alt+F4, chooses }
{ "Quit" from the "File" menu, or clicks the close button on the }
{ Pegasus Mail main window, then this message will be sent to the }
{ extension with "lParam" set to 1: in this case, the extension can }
{ return WPM_PROHIBIT to prevent Pegasus Mail from exiting. The second }
{ time the message is sent is during WM_ENDSESSION processing, in which }
{ case lParam will be set to 0, and program shutdown cannot be cancelled. }
{ If the user shuts Windows down without exiting from Pegasus Mail, only }
{ the second message will be received by the extension. An extension must }
{ not attempt to initiate any user-interface operations if "lParam" is }
{ set to 0 in this message. }
[quote user="Vincent Fatica"]<p>What is (WM_FM_FORMBASE + 12)?&nbsp; That's 2836.&nbsp; My extension receives it during Pmail shutdown.</p><p>Thanks.</p><p>[/quote]</p><p>There's an official shutdown message sent by Pegasus Mail:
</p><p>WM_FM_LOGEVENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; (WM_FM_FORMBASE + 9);</p><p>using he following wParam value:</p><p>WLOG_SHUTDOWN = 32;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp; See below }
</p><p>{&nbsp; ** Note: requires extension manager v1.12 (WinPMail v4.1) or later }
{&nbsp; This message is sent to extensions once or twice, depending on how }
{&nbsp; the user exits from the program. If the user presses Alt+F4, chooses }
{&nbsp; "Quit" from the "File" menu, or clicks the close button on the }
{&nbsp; Pegasus Mail main window, then this message will be sent to the }
{&nbsp; extension with "lParam" set to 1: in this case, the extension can }
{&nbsp; return WPM_PROHIBIT to prevent Pegasus Mail from exiting. The second }
{&nbsp; time the message is sent is during WM_ENDSESSION processing, in which }
{&nbsp; case lParam will be set to 0, and program shutdown cannot be cancelled. }
{&nbsp; If the user shuts Windows down without exiting from Pegasus Mail, only }
{&nbsp; the second message will be received by the extension. An extension must }
{&nbsp; not attempt to initiate any user-interface operations if "lParam" is }
{&nbsp; set to 0 in this message. }
</p>
Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C