mirror of https://github.com/tongzx/nt5src
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.
18 lines
480 B
18 lines
480 B
// Copyright (c) 2000 Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Helpers for implementation of ISpecifyPropertyPages and IPersistStream
|
|
//
|
|
|
|
#include "PropertyHelp.h"
|
|
|
|
HRESULT PropertyHelp::GetPages(const CLSID &rclsidPropertyPage, CAUUID * pPages)
|
|
{
|
|
pPages->cElems = 1;
|
|
pPages->pElems = static_cast<GUID *>(CoTaskMemAlloc(sizeof(GUID)));
|
|
if (pPages->pElems == NULL)
|
|
return E_OUTOFMEMORY;
|
|
|
|
*(pPages->pElems) = rclsidPropertyPage;
|
|
|
|
return S_OK;
|
|
}
|