Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / afsapplib / al_messages.h
1 #ifndef AL_MESSAGES_H
2 #define AL_MESSAGES_H
3
4 // WM_COVER_WINDOW is used by CoverWindow() and CoverClient() to ensure that
5 // the proper thread creates a cover window when requested (if any thread
6 // other than g.hMain's thread creates the window, it will be destroyed
7 // automatically when the thread terminates).
8 //
9 // When used to cover a window:
10 //    LPCOVERPARAMS lpCoverParams = (LPCOVERPARAMS)lParam;
11 //
12 // When used to uncover a window:
13 //    HWND hwndToUncover = (HWND)wParam;
14 //
15 #define WM_COVER_WINDOW           (WM_USER + 0x200)
16
17 // WM_CREATE_ERROR_DIALOG is sent by ErrorDialog() to tell g.hMain to
18 // create a dialog; this way, the error dialog is always created by
19 // the main thread.
20 //
21 //    LPERROR_PARAMS = (LPERROR_PARAMS)lParam;
22 //
23 #define WM_CREATE_ERROR_DIALOG    (WM_USER + 0x201)
24
25 // WM_ENDTASK is posted to a window after a task request is created
26 // (via StartTask()).  A background routine handles one request at a time
27 // on an alternate thread, and posts its results to a specified window by
28 // means of an allocated structure.  That structure should be freed using
29 // FreeTaskPacket() when this message is received.
30 //
31 //    LPTASKPACKET ptp = (LPTASKPACKET)lParam;
32 //
33 #define WM_ENDTASK                (WM_USER + 0x202)
34
35 // WM_EXPIRED_CREDENTIALS is sent to the main window when a background
36 // thread detects that the user's credentials have expired.
37 //
38 //    BOOL fExpired = (BOOL)wParam;
39 //
40 #define WM_EXPIRED_CREDENTIALS    (WM_USER + 0x203)
41
42 // WM_CLOSE_DIALOG is sent to a modal dialog when the CloseDialog() routine
43 // is called.
44 //
45 //    HWND hWnd = (HWND)wParam;
46 //    int rc = (int)lParam;
47 //
48 #define WM_CLOSE_DIALOG           (WM_USER + 0x204)
49
50 // WM_PERMTAB_REFRESH is sent to a Permissions tab to cause its contents
51 // to be completely recalculated and redrawn. Any changes the user has
52 // made so far are discarded.
53 //
54 #define WM_PERMTAB_REFRESH        (WM_USER + 0x205)
55
56 // WM_REFRESHED_CREDENTIALS is sent to the main window whenever the
57 // AfsAppLib_SetCredentials to obtain new credentials.
58 //
59 //    LPARAM lp = (LPARAM)hCreds
60 //
61 #define WM_REFRESHED_CREDENTIALS  (WM_USER + 0x206)
62
63
64 #endif
65