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.

57 lines
1.6 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // PASSPORT.H - Header for the implementation of CPassport
  7. //
  8. // HISTORY:
  9. //
  10. // 1/27/99 a-jaswed Created.
  11. //
  12. #ifndef _PASSPORT_H_
  13. #define _PASSPORT_H_
  14. #include <windows.h>
  15. #include <assert.h>
  16. #include <oleauto.h>
  17. class CPassport : public IDispatch
  18. {
  19. private:
  20. ULONG m_cRef;
  21. BSTR m_bstrID;
  22. BSTR m_bstrPassword;
  23. BSTR m_bstrLocale;
  24. //GET functions
  25. HRESULT get_PassportID (BSTR* pbstrVal);
  26. HRESULT get_PassportPassword (BSTR* pbstrVal);
  27. HRESULT get_PassportLocale (BSTR* pbstrVal);
  28. //SET functions
  29. HRESULT set_PassportID (BSTR bstrVal);
  30. HRESULT set_PassportPassword (BSTR bstrVal);
  31. HRESULT set_PassportLocale (BSTR bstrVal);
  32. public:
  33. CPassport ();
  34. ~CPassport ();
  35. // IUnknown Interfaces
  36. STDMETHODIMP QueryInterface (REFIID riid, LPVOID* ppvObj);
  37. STDMETHODIMP_(ULONG) AddRef ();
  38. STDMETHODIMP_(ULONG) Release ();
  39. //IDispatch Interfaces
  40. STDMETHOD (GetTypeInfoCount) (UINT* pcInfo);
  41. STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo** );
  42. STDMETHOD (GetIDsOfNames) (REFIID, OLECHAR**, UINT, LCID, DISPID* );
  43. STDMETHOD (Invoke) (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo, UINT* puArgErr);
  44. };
  45. #endif