Leaked source code of windows server 2003
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.

73 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. onestop.hxx
  5. Abstract:
  6. This file contains the common definitions for code that notifies
  7. OneStop of logon/logoff events.
  8. Author:
  9. Gopal Parupudi <GopalP>
  10. [Notes:]
  11. optional-notes
  12. Revision History:
  13. GopalP 4/29/1998 Start.
  14. --*/
  15. #ifndef __ONESTOP_HXX__
  16. #define __ONESTOP_HXX__
  17. //
  18. // Constants
  19. //
  20. #define AUTOSYNC_ON_STARTSHELL 0x00000001
  21. #define AUTOSYNC_ON_LOGOFF 0x00000002
  22. #define AUTOSYNC_ON_SCHEDULE 0x00000004
  23. #define SENSLOGN "[SENSLOGN] "
  24. #define SYNC_MANAGER_LOGON SENS_STRING("mobsync.exe /logon")
  25. #define SYNC_MANAGER_LOGOFF SENS_STRING("mobsync.exe /logoff")
  26. #define AUTOSYNC_FLAGS SENS_STRING("Flags")
  27. #define AUTOSYNC_KEY SENS_STRING("Software\\Microsoft\\Windows\\CurrentVersion\\") \
  28. SENS_STRING("Syncmgr\\AutoSync")
  29. #ifdef DETAIL_DEBUG
  30. #define LogMessage(_X_) SensPrintToDebugger (SENS_DBG, _X_)
  31. #else // DETAIL_DEBUG
  32. #define LogMessage(_X_)
  33. #endif // DETAIL_DEBUG
  34. HRESULT
  35. SensNotifyOneStop(
  36. HANDLE hToken,
  37. TCHAR *pCommandLine,
  38. BOOL bSync
  39. );
  40. BOOL
  41. IsAutoSyncEnabled(
  42. HANDLE hToken,
  43. DWORD dwMask
  44. );
  45. #endif // __ONESTOP_HXX__