|
| CDesktopUpgradePropertyBag () |
|
STDMETHODIMP | Read (_In_z_ LPCWSTR pszPropName, _Inout_ VARIANT *pvari, _Inout_opt_ IErrorLog *pErrorLog) override |
|
STDMETHODIMP | Write (_In_z_ LPCWSTR pszPropName, _In_ VARIANT *pvari) override |
|
| CBasePropertyBag (DWORD dwMode) |
|
virtual | ~CBasePropertyBag () |
|
STDMETHODIMP | QueryInterface (REFIID riid, void **ppvObject) override |
|
| STDMETHODIMP_ (ULONG) AddRef() override |
|
| STDMETHODIMP_ (ULONG) Release() override |
|
HRESULT | Read ([in] LPCOLESTR pszPropName, [in, out] VARIANT *pVar, [in] IErrorLog *pErrorLog) |
|
HRESULT | RemoteRead ([in] LPCOLESTR pszPropName, [out] VARIANT *pVar, [in] IErrorLog *pErrorLog, [in] DWORD varType, [in] IUnknown *pUnkObj) |
|
HRESULT | Write ([in] LPCOLESTR pszPropName, [in] VARIANT *pVar) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
Definition at line 1010 of file propbag.cpp.
◆ CDesktopUpgradePropertyBag()
CDesktopUpgradePropertyBag::CDesktopUpgradePropertyBag |
( |
| ) |
|
|
inline |
◆ _AlreadyUpgraded()
BOOL CDesktopUpgradePropertyBag::_AlreadyUpgraded |
( |
HKEY |
hKey | ) |
|
|
protected |
Definition at line 1041 of file propbag.cpp.
1042{
1043
1044 DWORD dwValue, cbData =
sizeof(dwValue);
1046}
DWORD WINAPI SHGetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
Referenced by _GetOldDesktopViewStream().
◆ _GetOldDesktopViewStream()
IStream * CDesktopUpgradePropertyBag::_GetOldDesktopViewStream |
( |
| ) |
|
|
protected |
Definition at line 1116 of file propbag.cpp.
1117{
1121
1124 {
1126 if (pOldStream)
1127 {
1132 }
1133
1134 if (!pOldStream)
1136
1138 }
1139
1141 return pOldStream.
Detach();
1142}
#define RegCloseKey(hKey)
VOID _MarkAsUpgraded(HKEY hkey)
BOOL _AlreadyUpgraded(HKEY hKey)
HRESULT WINAPI IStream_Size(IStream *lpStream, ULARGE_INTEGER *lpulSize)
HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create)
IStream *WINAPI SHOpenRegStream2W(HKEY hKey, LPCWSTR pszSubkey, LPCWSTR pszValue, DWORD dwMode)
Referenced by _ReadItemPositions().
◆ _MarkAsUpgraded()
VOID CDesktopUpgradePropertyBag::_MarkAsUpgraded |
( |
HKEY |
hkey | ) |
|
|
protected |
Definition at line 1035 of file propbag.cpp.
1036{
1039}
DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
Referenced by _GetOldDesktopViewStream().
◆ _NewStreamFromOld()
IStream * CDesktopUpgradePropertyBag::_NewStreamFromOld |
( |
IStream * |
pOldStream | ) |
|
|
protected |
Definition at line 1076 of file propbag.cpp.
1077{
1082
1083
1089
1090
1095
1096
1099 if (!pNewStream)
1101
1102
1104
1105
1109
1111 pNewStream->Seek(
li, STREAM_SEEK_SET,
NULL);
1112
1113 return pNewStream.
Detach();
1114}
HRESULT Read([out, size_is(cb), length_is(*pcbRead)] void *pv, [in] ULONG cb, [out] ULONG *pcbRead)
HRESULT CopyTo([in, unique] IStream *pstm, [in] ULARGE_INTEGER cb, [out] ULARGE_INTEGER *pcbRead, [out] ULARGE_INTEGER *pcbWritten)
HRESULT Seek([in] LARGE_INTEGER dlibMove, [in] DWORD dwOrigin, [out] ULARGE_INTEGER *plibNewPosition)
IStream *WINAPI SHCreateMemStream(const BYTE *lpbData, UINT dwDataLen)
Referenced by _ReadItemPositions().
◆ _ReadFlags()
Definition at line 1050 of file propbag.cpp.
1051{
1055 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\DeskView",
1060 {
1062 }
1063
1067}
#define HKEY_CURRENT_USER
_Must_inspect_result_ _In_ ULONG Flags
Referenced by Read().
◆ _ReadItemPositions()
HRESULT CDesktopUpgradePropertyBag::_ReadItemPositions |
( |
VARIANT * |
pvari | ) |
|
|
protected |
Definition at line 1144 of file propbag.cpp.
1145{
1148 if (!pOldStream)
1150
1153 if (pNewStream)
1154 {
1158 }
1159
1161}
IStream * _GetOldDesktopViewStream()
IStream * _NewStreamFromOld(IStream *pOldStream)
Referenced by Read().
◆ Read()
Definition at line 1164 of file propbag.cpp.
1168{
1170
1172
1174 if (
StrCmpW(
L"FFlags", pszPropName) == 0)
1176 else if (
StrCmpNW(
L"ItemPos", pszPropName, 7) == 0)
1178
1180 {
1183 }
1184
1185 return ::VariantChangeType(pvari, pvari, 0,
vt);
1186}
HRESULT _ReadFlags(VARIANT *pvari)
HRESULT _ReadItemPositions(VARIANT *pvari)
INT WINAPI StrCmpNW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen)
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
int WINAPI StrCmpW(LPCWSTR lpszStr, LPCWSTR lpszComp)
#define UNREFERENCED_PARAMETER(P)
void WINAPI VariantInit(VARIANTARG *pVarg)
◆ Write()
The documentation for this class was generated from the following file: