Annotation of mstools/samples/sdktools/winat/winat.h, revision 1.1.1.1

1.1       root        1: //============================================================================
                      2: //
                      3: // Module: WINAT.H
                      4: //
                      5: // Purpose: Header file for WINAT.C
                      6: //
                      7: // Author: Kory Gill
                      8: // Date  : March 1993
                      9: //
                     10: // Copyright: Copyright Microsoft Corporation 1993
                     11: //
                     12: //============================================================================
                     13: 
                     14: 
                     15: //============================================================================
                     16: // defines
                     17: //============================================================================
                     18: #define WM_SPINBUTTON      (WM_USER + 0)
                     19: 
                     20: #define DAYSINWEEK         (7)
                     21: #define DEFAULT_AMPM       "AM"
                     22: #define DEFAULT_HOUR       (12)
                     23: #define DEFAULT_MIN        (0)
                     24: #define DEL_ALL            (1)
                     25: #define DEL_ID             (0)
                     26: #define DEL_ID_CHANGE      (2)
                     27: #define DOWN               (-1)
                     28: #define DWH                (320)
                     29: #define DWW                (570)
                     30: #define DWX                (0)
                     31: #define DWY                (0)
                     32: #define FIRST_TIME         (0)
                     33: #define REG_HKEY                  HKEY_CURRENT_USER                       // old: HKEY_LOCAL_MACHINE
                     34: #define MAXCOMMANDLEN      (128)
                     35: #define MAXCOMPUTERNAMELEN (17)                            // 15 char name, 2 '\'
                     36: #define MAXWHENDAYLEN      (108+TIME_LEN+1)
                     37: #define MAX_ATCMD_LEN      (5+MAXWHENDAYLEN+MAXCOMMANDLEN) //id, tab, when/days, tab, cmd
                     38: #define MAX_SELCOMMANDS    (256)
                     39: #define NUMDAYITEMS        (DAYSINWEEK+31)
                     40: #define NUM_TIMES          (48)
                     41: #define REFRESH_ERROR      (5)
                     42: #define REFRESH_FALSE      (0)
                     43: #define REFRESH_QUERY      (2)
                     44: #define REFRESH_RATE       (15000)
                     45: #define REFRESH_RESTORE    (4)
                     46: #define REFRESH_SAVE       (3)                                        
                     47: #define REFRESH_TRUE       (1)
                     48: #define SCS_BOTTOM                (0)
                     49: #define SCS_NOCHANGE       (1)
                     50: #define SCS_TOP            (2)
                     51: #define SCS_SELINHIGHWORD  (3)
                     52: #define SCS_NONE                  (4)     
                     53: #define SZAPPTITLE                "WINAT"
                     54: #define SZWINDOWTITLE      "Command Scheduler"
                     55: #define SZCREDITS                 "Developed for Microsoft\rby Kory Gill"
                     56: #define SZGENERROR         "Problem accessing computer specified."
                     57: #define SZNOENTRIES        "No entries in list."
                     58: #define SZREGPATH          "Software\\Microsoft\\Resource Kit\\Winat"
                     59: #define TIME_LEN           (5)
                     60: #define UP                 (1)
                     61: 
                     62: 
                     63: //============================================================================
                     64: // user-defined types
                     65: //============================================================================
                     66: 
                     67: typedef struct _ATTIME {
                     68:     UCHAR szTime[TIME_LEN+1];
                     69:     DWORD dwMsSinceMidnight;
                     70: } ATTIME, *PATTIME;
                     71: 
                     72: 
                     73: //============================================================================
                     74: // internal function prototypes
                     75: //============================================================================
                     76: 
                     77: BOOL APIENTRY    AddChangeDlgProc            ( HWND, UINT, UINT, LONG      );
                     78: UINT             AreYouSure                  ( HWND                        );
                     79: LRESULT APIENTRY AmPmProc                    ( HWND, UINT, UINT, LONG      );
                     80: WCHAR *          AsciizToUnicode             ( CHAR *                      );
                     81: LRESULT APIENTRY DownButtonProc                                 ( HWND, UINT, UINT, LONG      );
                     82: void             DrawBitmap                  ( HDC, LONG, LONG, HBITMAP, DWORD );
                     83: LRESULT APIENTRY HourProc                    ( HWND, UINT, UINT, LONG      );
                     84: NET_API_STATUS   JobAdd                      ( VOID                        );
                     85: NET_API_STATUS   JobEnum                     ( DWORD                       );
                     86: NET_API_STATUS   JobDel                      ( UINT, HWND                  );
                     87: DWORD            MessagePrint                ( DWORD, ...                  );
                     88: LRESULT APIENTRY MinProc                     ( HWND, UINT, UINT, LONG      );
                     89: UINT             Refresh                     ( UINT                        );
                     90: BOOL APIENTRY    SelectComputerProc          ( HWND, UINT, UINT, LONG      );
                     91: BOOL             ServiceNotStartedHandler    ( VOID                        );
                     92: INT  APIENTRY   ShellAbout                              ( HWND, LPCSTR, LPCSTR, HICON );
                     93: LRESULT APIENTRY UpButtonProc                           ( HWND, UINT, UINT, LONG      );
                     94: BOOL             ValidateAddChangeArguments  ( HWND                        );
                     95: BOOL APIENTRY    WINATDlgProc                ( HWND, UINT, UINT, LONG      );
                     96: 
                     97: 
                     98: //============================================================================
                     99: // external function prototypes
                    100: //============================================================================
                    101: 
                    102: #define IDC_COMPUTER            100
                    103: #define IDC_ATCOMMANDS          101
                    104: #define IDC_ADD                 102
                    105: #define IDC_CHANGE              103
                    106: #define IDC_REMOVE              105
                    107: #define IDC_HELP                106
                    108: #define IDC_NEWCOMMAND          107
                    109: #define IDC_TODAY               108
                    110: #define IDC_TOMORROW            109
                    111: #define IDC_EVERY               110
                    112: #define IDC_NEXT                111
                    113: #define IDC_DAYS                112
                    114: #define IDC_HOUR                113
                    115: #define IDC_MIN                 114
                    116: #define IDC_AMPM                115
                    117: #define IDC_ADDCHANGEHELP       117
                    118: #define IDC_REFRESH             118
                    119: #define IDC_SELECTCOMPUTER      119
                    120: #define IDM_SAVE_TO_REGISTRY    120
                    121: #define IDM_GET_FROM_REGISTRY   121
                    122: 
                    123: #define IDM_HELPCONTENTS        300
                    124: #define IDM_HELPSEARCH          301
                    125: #define IDM_HELPHELP            302
                    126: #define IDM_ABOUT               303
                    127: #define IDM_SELECTCOMPUTER      304
                    128: #define IDM_EXIT                305
                    129: 
                    130: #define DLG_VERFIRST            400
                    131: #define DLG_VERLAST             404
                    132: 
                    133: #define IDD_UPBUT                              500
                    134: #define IDD_DOWNBUT             501

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.