|
|
1.1 ! root 1: /* ! 2: * netwatch.h ! 3: * ! 4: * Purpose: ! 5: * main header file ! 6: * ! 7: * Owner: ! 8: * MikeSart ! 9: */ ! 10: ! 11: // max size of strings in STRINGTABLE for LoadString ! 12: #define MAX_STRINGTABLE_LEN 200 ! 13: ! 14: #define FILE_ENUM_ERROR 0x20000000 ! 15: #define TIMERID 1 ! 16: ! 17: // listbox defines ! 18: #define chBOLD TEXT('\b') ! 19: #define chUNDERLINE TEXT('\v') ! 20: #define chTAB TEXT('\t') ! 21: #define chBITMAP TEXT('\001') ! 22: ! 23: #define BMWIDTH 16 ! 24: #define BMHEIGHT 16 ! 25: #define NUMBMPS 9 ! 26: #define RGBREPLACE 0x00FF0000 // solid blue ! 27: ! 28: #define NUMPROPFIELDS 6 ! 29: typedef struct ! 30: { ! 31: WORD rgIDSStart; ! 32: DWORD dwrgBmp; ! 33: TCHAR *rgsz[NUMPROPFIELDS]; ! 34: } PROPERTIES; ! 35: ! 36: #define GlobalFreeNullPtr(_ptr) \ ! 37: if(_ptr) GlobalFreePtr(_ptr) ! 38: ! 39: /* ! 40: * global variables from globals.c ! 41: */ ! 42: extern TCHAR *szAppName; ! 43: extern DWORD dwTimerInterval; ! 44: extern TCHAR *szServerName; ! 45: extern TCHAR szFmtNum[]; ! 46: extern TCHAR szNil[]; ! 47: extern UINT unMenuFlags[]; ! 48: extern TCHAR szBuffer[]; ! 49: extern HINSTANCE ghInst; ! 50: extern HWND hwndMain; ! 51: extern HMENU ghMenu; ! 52: extern DWORD dwNumUsers; // number of users connected to server ! 53: ! 54: /* ! 55: * function prototypes ! 56: */ ! 57: // bitmap.c ! 58: void DrawItem(LPDRAWITEMSTRUCT pDI); ! 59: VOID MeasureItem(HANDLE hwnd, LPMEASUREITEMSTRUCT mis); ! 60: void SetRGBValues(void); ! 61: BOOL InitBmps(HWND hwnd); ! 62: void DeInitBmps(void); ! 63: BOOL LoadBitmapLB(void); ! 64: void BlitIcon(HDC hdc, LONG x, LONG y, int nBitmap); ! 65: ! 66: // datetime.c ! 67: void GetInternational(void); ! 68: ! 69: // netwatch.c ! 70: LRESULT CALLBACK NewLBProc(HWND, UINT, WPARAM, LPARAM); ! 71: LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); ! 72: BOOL CALLBACK SelectDlgProc(HWND, UINT, WPARAM, LPARAM); ! 73: BOOL CALLBACK PropDlgProc(HWND, UINT, WPARAM, LPARAM); ! 74: ! 75: // utils.c ! 76: void RefreshDisplay(HWND hwnd); ! 77: void ShowTitle(HWND hwnd, int nCmdShow); ! 78: DWORD SetWindowTextAndServerName(HWND, LPTSTR); ! 79: void UpdateWindowText(HWND hwnd, BOOL fForceUpdate); ! 80: void PunchTimer(BOOL fNewState); ! 81: BOOL InitNetWatch(BOOL fInit); ! 82: void RestoreWindowPosition(HWND hwnd); ! 83: void SaveWindowPosition(HWND hwnd); ! 84: TCHAR *szFromIDS2(UINT unID); ! 85: TCHAR *szFromIDS1(UINT unID); ! 86: TCHAR *AllocAndLoadString(UINT unID); ! 87: TCHAR *GetSystemErrMessage(DWORD dwError); ! 88: ! 89: // net.c ! 90: void RefreshDisplay(HWND hwnd); ! 91: void HandleWM_VKEY(HWND hwnd, WORD wAction); ! 92: void AddErrorStringToLB(DWORD nas); ! 93: void HandleMenu(HWND hwnd);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.