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.

74 lines
1.4 KiB

  1. #ifndef __EXTS_h__
  2. #define __EXTS_h__
  3. typedef struct
  4. {
  5. LPTSTR key;
  6. DWORD value;
  7. } ELEMENT, *PELEMENT;
  8. typedef struct
  9. {
  10. ULONG cnt;
  11. PELEMENT element;
  12. } MATCHTABLE, *PMATCHTABLE;
  13. extern MATCHTABLE modetype, yesno, typetype;
  14. extern DWORD tasync, period, mode;
  15. extern DWORD type;
  16. extern BOOLEAN fService;
  17. extern BOOLEAN fStatus;//note to localizers - this flag is used mostly to print internal msgs
  18. extern DWORD timesource;//for flag from LanmanServer\Parameters\timesource in registry
  19. extern TCHAR primarysource[10*UNCLEN];
  20. extern TCHAR *primarysourcearray[14];//15 entries possible for now
  21. extern int arraycount;
  22. extern TCHAR secondarydomain[DNLEN];
  23. extern DWORD logging;
  24. #ifdef TAPI
  25. extern HINSTANCE thandle;
  26. extern FARPROC lineinitialize, lineshutdown;
  27. extern HLINEAPP hLineApp;
  28. extern HINSTANCE hInstance;
  29. extern VOID CallBack(DWORD hDevice, DWORD dwMsg, DWORD dwCallbackInstance, DWORD dwParam1, DWORD dwParam2, DWORD dwParam3);
  30. extern DWORD NumDevs;
  31. #endif //TAPI
  32. #ifdef CHICO
  33. extern WORD base;
  34. #define NetApiBufferFree(x) // don't need this on CHICAGO
  35. #endif
  36. #ifdef PERF
  37. extern __int64 perffreq;
  38. #endif
  39. //
  40. // Declared Shared Procedures/Functions
  41. //
  42. VOID StopTimeService(DWORD dwNum);
  43. VOID TimeInit();
  44. VOID TimeCreateService(DWORD dwType);
  45. VOID LogTimeEvent(WORD type, DWORD dwNum);
  46. LPTSTR
  47. FindPeriodByPeriod(
  48. DWORD period
  49. );
  50. LPTSTR
  51. FindTypeByType(
  52. DWORD type
  53. );
  54. #endif