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.
 
 
 
 
 
 

47 lines
1.2 KiB

// DOScope.cpp - The polymorphic DataObject object for Dynamic
// Scope items.
//
// Copyright (c) 1998-1999 Microsoft Corporation
#include "StdAfx.h"
#include "DataObj.h"
#include "DataSrc.h"
/*
* CreateDisplayName - Return the DisplayName string in lpMedium's
* hGlobal pointer.
*
* History: a-jsari 9/28/97 Initial version
*/
HRESULT CScopeDataObject::CreateDisplayName(LPSTGMEDIUM)
{
return E_FAIL;
}
/*
* CreateNodeTypeData - Return the NodeType for a dynamic scope item in
* lpMedium's hGlobal pointer.
*
* History: a-jsari 9/28/97 Initial version
*
* Note: The caller is responsible for freeing pMedium's hGlobal.
*/
HRESULT CScopeDataObject::CreateNodeTypeData(LPSTGMEDIUM pMedium)
{
return Create(reinterpret_cast<const void *>(&cNodeTypeDynamic), sizeof(GUID), pMedium);
}
/*
* CreateNodeTypeStringData - Return the NodeType for a dynamic scope
* item as an LPWSTR in lpMedium's hGlobal pointer.
*
* History: a-jsari 9/28/97 Initial version
*
* Note: The caller is responsible for freeing pMedium's hGlobal.
*/
HRESULT CScopeDataObject::CreateNodeTypeStringData(LPSTGMEDIUM pMedium)
{
USES_CONVERSION;
return Create(WSTR_FROM_CSTRING(cszNodeTypeDynamic),
((_tcslen(cszNodeTypeDynamic) + 1) * sizeof(WCHAR)), pMedium);
}