Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. #define OEMRESOURCE
  2. #include <windows.h>
  3. #include <ccstock.h>
  4. #include <debug.h>
  5. BOOL InitApplication(HANDLE);
  6. BOOL InitInstance(HANDLE, int);
  7. LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
  8. BOOL RunOnceFill(HWND hWnd);
  9. LRESULT CALLBACK dlgProcRunOnce(
  10. HWND hWnd, // window handle
  11. UINT message, // type of message
  12. WPARAM uParam, // additional information
  13. LPARAM lParam); // additional information
  14. void WashCreate(HWND hwndParent);
  15. BOOL CreateGlobals(HWND hwndCtl);
  16. BOOL CenterWindow (HWND hwndChild, HWND hwndParent);
  17. BOOL TopLeftWindow(HWND hwndChild, HWND hwndParent);
  18. extern SIZE g_SizeTextExt;
  19. extern int g_cxIcon;
  20. extern int g_cyIcon;
  21. extern int g_cxSmIcon;
  22. extern int g_cySmIcon;
  23. extern HFONT g_hfont;
  24. extern HBRUSH g_hbrBkGnd;
  25. extern HFONT g_hBoldFont;
  26. extern HINSTANCE hInst;
  27. extern HWND g_hWash;
  28. #define MAX_TITLE 32
  29. #define MAX_TEXT 128
  30. typedef struct tagTASK
  31. {
  32. TCHAR Text[MAX_TEXT+1];
  33. WORD wHeight;
  34. HICON hIcon;
  35. TCHAR Cmd[MAX_PATH+1];
  36. } TASK, * PTASK;
  37. // Bit fields for command line switches.
  38. #define CMD_DO_CHRIS 1
  39. #define CMD_DO_REBOOT 2
  40. #define CMD_DO_RESTART 4