711{
717
719 sizeof(STGMEDIUM));
720
721 hr = IDataObject_QueryGetData(iface,
722 pformatetcIn);
724 {
725
726
727 if (pformatetcIn->cfFormat ==
This->cfDisplayDevice)
728 {
729 pszRet =
This->pDisplayDevice;
730 DPRINT1(
"CDevSettings::GetData returns display device %ws\n", pszRet);
731 }
732 else if (pformatetcIn->cfFormat ==
This->cfDisplayName)
733 {
734 pszRet =
This->pDisplayName;
735 DPRINT1(
"CDevSettings::GetData returns display name %ws\n", pszRet);
736 }
737 else if (pformatetcIn->cfFormat ==
This->cfDisplayKey)
738 {
739 pszRet =
This->pDisplayKey;
740 DPRINT1(
"CDevSettings::GetData returns display key %ws\n", pszRet);
741 }
742 else if (pformatetcIn->cfFormat ==
This->cfDisplayId)
743 {
744 pszRet =
This->pDisplayId;
745 DPRINT1(
"CDevSettings::GetData returns display id %ws\n", pszRet);
746 }
747 else if (pformatetcIn->cfFormat ==
This->cfMonitorName)
748 {
749 pszRet =
This->pMonitorName;
750 DPRINT1(
"CDevSettings::GetData returns monitor name %ws\n", pszRet);
751 }
752 else if (pformatetcIn->cfFormat ==
This->cfMonitorDevice)
753 {
754 pszRet =
This->pMonitorDevice;
755 DPRINT1(
"CDevSettings::GetData returns monitor device %ws\n", pszRet);
756 }
757 else if (pformatetcIn->cfFormat ==
This->cfExtInterface)
758 {
760
762 sizeof(*pIface));
764 {
767 sizeof(
This->ExtInterface));
768
769 DPRINT1(
"CDevSettings::GetData returns the desk.cpl extension interface\n");
770
771 pmedium->tymed = TYMED_HGLOBAL;
772 pmedium->hGlobal = pIface;
773
775 }
776 else
778 }
779 else if (pformatetcIn->cfFormat ==
This->cfDisplayStateFlags)
780 {
782
784 sizeof(*pdw));
786 {
787 *pdw =
This->StateFlags;
788
789 DPRINT1(
"CDevSettings::GetData returns the display state flags %x\n",
This->StateFlags);
790
791 pmedium->tymed = TYMED_HGLOBAL;
792 pmedium->hGlobal = pdw;
793
795 }
796 else
798 }
799 else if (pformatetcIn->cfFormat ==
This->cfPruningMode)
800 {
802
804 sizeof(*pb));
806 {
807 *pb = (
This->bModesPruned &&
This->bPruningOn);
808
809 pmedium->tymed = TYMED_HGLOBAL;
810 pmedium->hGlobal = pb;
811
813 }
814 else
816 }
817
818
821
825 {
828 {
831 }
832
833 pmedium->tymed = TYMED_HGLOBAL;
834 pmedium->hGlobal = pszBuf;
835
837 }
838 else
840 }
841
843}
static const WCHAR szEmpty[]
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)