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.

40 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name :
  4. appsecdll.h
  5. Abstract :
  6. Defines the MACROS used in appsecdll.c
  7. Author :
  8. Sriram (t-srisam) June 1999
  9. --*/
  10. #define APPCERT_IMAGE_OK_TO_RUN 1
  11. #define APPCERT_CREATION_ALLOWED 2
  12. #define APPCERT_CREATION_DENIED 3
  13. #define FENABLED_KEY L"fEnabled"
  14. #define LEARN_ENABLED_KEY L"LearnEnabled"
  15. #define AUTHORIZED_APPS_LIST_KEY L"ApplicationList"
  16. #define TRACK_LIST_KEY L"ApplicationList"
  17. #define POWER_USERS_KEY L"PowerUsers"
  18. #define APPS_REGKEY L"System\\CurrentControlSet\\Control\\Terminal Server\\AuthorizedApplications"
  19. #define LIST_REGKEY L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Terminal Server"
  20. NTSTATUS CreateProcessNotify ( LPCWSTR lpApplicationName,ULONG Reason ) ;
  21. BOOL check_list( HKEY hkey , LPWSTR appname ) ;
  22. BOOL add_to_list( HKEY hkey, LPCWSTR appname ) ;
  23. VOID ResolveName ( LPCWSTR appname, WCHAR *ResolvedName ) ;
  24. BOOL IsPowerUser(VOID);
  25. HANDLE g_hMutex = NULL ;
  26. LPCTSTR MUTEX_NAME = L"Global\\CPN_mutex" ;