SecurityCOM.h 890 B

12345678910111213141516171819202122
  1. #pragma once
  2. /* part of API1, but provides access to the API2 security settings */
  3. #include <ocidl.h>
  4. class SecurityCOM : public IDispatch
  5. {
  6. public:
  7. STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
  8. STDMETHOD_(ULONG, AddRef)(void);
  9. STDMETHOD_(ULONG, Release)(void);
  10. // *** IDispatch Methods ***
  11. STDMETHOD (GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames, unsigned int cNames, LCID lcid, DISPID FAR* rgdispid);
  12. STDMETHOD (GetTypeInfo)(unsigned int itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
  13. STDMETHOD (GetTypeInfoCount)(unsigned int FAR * pctinfo);
  14. STDMETHOD (Invoke)(DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, EXCEPINFO FAR * pexecinfo, unsigned int FAR *puArgErr);
  15. private:
  16. void SetActionAuthorization(const wchar_t *key, const wchar_t *group, const wchar_t *action, int authorization);
  17. };