Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / WINNT / afsapplib / al_messages.h
blob8281a7a8d790201b19e1bd7177410357ae12a232
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
10 #ifndef AL_MESSAGES_H
11 #define AL_MESSAGES_H
13 // WM_COVER_WINDOW is used by CoverWindow() and CoverClient() to ensure that
14 // the proper thread creates a cover window when requested (if any thread
15 // other than g.hMain's thread creates the window, it will be destroyed
16 // automatically when the thread terminates).
18 // When used to cover a window:
19 // LPCOVERPARAMS lpCoverParams = (LPCOVERPARAMS)lParam;
21 // When used to uncover a window:
22 // HWND hwndToUncover = (HWND)wParam;
24 #define WM_COVER_WINDOW (WM_USER + 0x200)
26 // WM_CREATE_ERROR_DIALOG is sent by ErrorDialog() to tell g.hMain to
27 // create a dialog; this way, the error dialog is always created by
28 // the main thread.
30 // LPERROR_PARAMS = (LPERROR_PARAMS)lParam;
32 #define WM_CREATE_ERROR_DIALOG (WM_USER + 0x201)
34 // WM_ENDTASK is posted to a window after a task request is created
35 // (via StartTask()). A background routine handles one request at a time
36 // on an alternate thread, and posts its results to a specified window by
37 // means of an allocated structure. That structure should be freed using
38 // FreeTaskPacket() when this message is received.
40 // LPTASKPACKET ptp = (LPTASKPACKET)lParam;
42 #define WM_ENDTASK (WM_USER + 0x202)
44 // WM_EXPIRED_CREDENTIALS is sent to the main window when a background
45 // thread detects that the user's credentials have expired.
47 // BOOL fExpired = (BOOL)wParam;
49 #define WM_EXPIRED_CREDENTIALS (WM_USER + 0x203)
51 // WM_CLOSE_DIALOG is sent to a modal dialog when the CloseDialog() routine
52 // is called.
54 // HWND hWnd = (HWND)wParam;
55 // int rc = (int)lParam;
57 #define WM_CLOSE_DIALOG (WM_USER + 0x204)
59 // WM_PERMTAB_REFRESH is sent to a Permissions tab to cause its contents
60 // to be completely recalculated and redrawn. Any changes the user has
61 // made so far are discarded.
63 #define WM_PERMTAB_REFRESH (WM_USER + 0x205)
65 // WM_REFRESHED_CREDENTIALS is sent to the main window whenever the
66 // AfsAppLib_SetCredentials to obtain new credentials.
68 // LPARAM lp = (LPARAM)hCreds
70 #define WM_REFRESHED_CREDENTIALS (WM_USER + 0x206)
73 #endif