death to trailing whitespace
[openafs.git] / src / WINNT / afsapplib / al_messages.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
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  */
9
10 #ifndef AL_MESSAGES_H
11 #define AL_MESSAGES_H
12
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).
17 //
18 // When used to cover a window:
19 //    LPCOVERPARAMS lpCoverParams = (LPCOVERPARAMS)lParam;
20 //
21 // When used to uncover a window:
22 //    HWND hwndToUncover = (HWND)wParam;
23 //
24 #define WM_COVER_WINDOW           (WM_USER + 0x200)
25
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.
29 //
30 //    LPERROR_PARAMS = (LPERROR_PARAMS)lParam;
31 //
32 #define WM_CREATE_ERROR_DIALOG    (WM_USER + 0x201)
33
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.
39 //
40 //    LPTASKPACKET ptp = (LPTASKPACKET)lParam;
41 //
42 #define WM_ENDTASK                (WM_USER + 0x202)
43
44 // WM_EXPIRED_CREDENTIALS is sent to the main window when a background
45 // thread detects that the user's credentials have expired.
46 //
47 //    BOOL fExpired = (BOOL)wParam;
48 //
49 #define WM_EXPIRED_CREDENTIALS    (WM_USER + 0x203)
50
51 // WM_CLOSE_DIALOG is sent to a modal dialog when the CloseDialog() routine
52 // is called.
53 //
54 //    HWND hWnd = (HWND)wParam;
55 //    int rc = (int)lParam;
56 //
57 #define WM_CLOSE_DIALOG           (WM_USER + 0x204)
58
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.
62 //
63 #define WM_PERMTAB_REFRESH        (WM_USER + 0x205)
64
65 // WM_REFRESHED_CREDENTIALS is sent to the main window whenever the
66 // AfsAppLib_SetCredentials to obtain new credentials.
67 //
68 //    LPARAM lp = (LPARAM)hCreds
69 //
70 #define WM_REFRESHED_CREDENTIALS  (WM_USER + 0x206)
71
72
73 #endif
74