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.

86 lines
2.0 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 "certmap.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "Font.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCertmap
  10. IMPLEMENT_DYNCREATE(CCertmap, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CCertmap properties
  13. COleFont CCertmap::GetFont()
  14. {
  15. LPDISPATCH pDispatch;
  16. GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  17. return COleFont(pDispatch);
  18. }
  19. void CCertmap::SetFont(LPDISPATCH propVal)
  20. {
  21. SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  22. }
  23. BOOL CCertmap::GetEnabled()
  24. {
  25. BOOL result;
  26. GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  27. return result;
  28. }
  29. void CCertmap::SetEnabled(BOOL propVal)
  30. {
  31. SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  32. }
  33. short CCertmap::GetBorderStyle()
  34. {
  35. short result;
  36. GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  37. return result;
  38. }
  39. void CCertmap::SetBorderStyle(short propVal)
  40. {
  41. SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  42. }
  43. CString CCertmap::GetCaption()
  44. {
  45. CString result;
  46. GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  47. return result;
  48. }
  49. void CCertmap::SetCaption(LPCTSTR propVal)
  50. {
  51. SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CCertmap operations
  55. void CCertmap::SetServerInstance(LPCTSTR szServerInstance)
  56. {
  57. static BYTE parms[] =
  58. VTS_BSTR;
  59. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  60. szServerInstance);
  61. }
  62. void CCertmap::SetMachineName(LPCTSTR szMachineName)
  63. {
  64. static BYTE parms[] =
  65. VTS_BSTR;
  66. InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  67. szMachineName);
  68. }