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.

99 lines
2.3 KiB

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "certauth.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "font.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCertAuth
  10. IMPLEMENT_DYNCREATE(CCertAuth, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CCertAuth properties
  13. COleFont CCertAuth::GetFont()
  14. {
  15. LPDISPATCH pDispatch;
  16. GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  17. return COleFont(pDispatch);
  18. }
  19. void CCertAuth::SetFont(LPDISPATCH propVal)
  20. {
  21. SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  22. }
  23. short CCertAuth::GetBorderStyle()
  24. {
  25. short result;
  26. GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  27. return result;
  28. }
  29. void CCertAuth::SetBorderStyle(short propVal)
  30. {
  31. SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  32. }
  33. BOOL CCertAuth::GetEnabled()
  34. {
  35. BOOL result;
  36. GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  37. return result;
  38. }
  39. void CCertAuth::SetEnabled(BOOL propVal)
  40. {
  41. SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  42. }
  43. CString CCertAuth::GetCaption()
  44. {
  45. CString result;
  46. GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  47. return result;
  48. }
  49. void CCertAuth::SetCaption(LPCTSTR propVal)
  50. {
  51. SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CCertAuth operations
  55. void CCertAuth::SetMachineName(LPCTSTR szMachineName)
  56. {
  57. static BYTE parms[] =
  58. VTS_BSTR;
  59. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  60. szMachineName);
  61. }
  62. void CCertAuth::SetServerInstance(LPCTSTR szServerInstance)
  63. {
  64. static BYTE parms[] =
  65. VTS_BSTR;
  66. InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  67. szServerInstance);
  68. }
  69. void CCertAuth::DoClick(long dwButtonNumber)
  70. {
  71. static BYTE parms[] =
  72. VTS_I4;
  73. InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  74. dwButtonNumber);
  75. }
  76. void CCertAuth::AboutBox()
  77. {
  78. InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  79. }