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.

67 lines
1.4 KiB

  1. #ifndef _AZAPPLICATION_HXX_
  2. #define _AZAPPLICATION_HXX_
  3. #define URL_AUTH_OPERATION_NAME L"AccessURL"
  4. class AZ_APPLICATION
  5. {
  6. public:
  7. AZ_APPLICATION( IAzApplication * pApplication )
  8. {
  9. VariantInit( &_vOperations );
  10. _pIApplication = pApplication;
  11. }
  12. ~AZ_APPLICATION()
  13. {
  14. VariantClear( &_vOperations );
  15. if ( _pIApplication != NULL )
  16. {
  17. _pIApplication->Release();
  18. _pIApplication = NULL;
  19. }
  20. }
  21. HRESULT
  22. Create(
  23. VOID
  24. );
  25. static
  26. HRESULT
  27. Initialize(
  28. VOID
  29. );
  30. static
  31. VOID
  32. Terminate(
  33. VOID
  34. );
  35. HRESULT
  36. DoAccessCheck(
  37. EXTENSION_CONTROL_BLOCK * pecb,
  38. WCHAR * pszScopeName,
  39. BOOL * pfAccessGranted
  40. );
  41. private:
  42. HRESULT
  43. BuildValueArray(
  44. EXTENSION_CONTROL_BLOCK * pecb,
  45. VARIANT * pValueArray
  46. );
  47. IAzApplication * _pIApplication;
  48. VARIANT _vOperations;
  49. static BSTR sm_bstrOperationName;
  50. static CHAR * sm_rgParameterNames[];
  51. static VARIANT sm_vNameArray;
  52. static DWORD sm_cParameterCount;
  53. };
  54. #endif