Import wix as of r89086

This commit is contained in:
Zachary Ware
2017-05-22 13:38:44 -05:00
parent 3e5123d4b4
commit dfc13f5681
211 changed files with 50331 additions and 0 deletions

89
sdk/inc/rssutil.h Normal file
View File

@@ -0,0 +1,89 @@
#pragma once
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
#ifdef __cplusplus
extern "C" {
#endif
#define ReleaseRssChannel(p) if (p) { RssFreeChannel(p); }
#define ReleaseNullRssChannel(p) if (p) { RssFreeChannel(p); p = NULL; }
struct RSS_UNKNOWN_ATTRIBUTE
{
LPWSTR wzNamespace;
LPWSTR wzAttribute;
LPWSTR wzValue;
RSS_UNKNOWN_ATTRIBUTE* pNext;
};
struct RSS_UNKNOWN_ELEMENT
{
LPWSTR wzNamespace;
LPWSTR wzElement;
LPWSTR wzValue;
RSS_UNKNOWN_ATTRIBUTE* pAttributes;
RSS_UNKNOWN_ELEMENT* pNext;
};
struct RSS_ITEM
{
LPWSTR wzTitle;
LPWSTR wzLink;
LPWSTR wzDescription;
LPWSTR wzGuid;
FILETIME ftPublished;
LPWSTR wzEnclosureUrl;
DWORD dwEnclosureSize;
LPWSTR wzEnclosureType;
RSS_UNKNOWN_ELEMENT* pUnknownElements;
};
struct RSS_CHANNEL
{
LPWSTR wzTitle;
LPWSTR wzLink;
LPWSTR wzDescription;
DWORD dwTimeToLive;
RSS_UNKNOWN_ELEMENT* pUnknownElements;
DWORD cItems;
RSS_ITEM rgItems[1];
};
HRESULT DAPI RssInitialize(
);
void DAPI RssUninitialize(
);
HRESULT DAPI RssParseFromString(
__in_z LPCWSTR wzRssString,
__out RSS_CHANNEL **ppChannel
);
HRESULT DAPI RssParseFromFile(
__in_z LPCWSTR wzRssFile,
__out RSS_CHANNEL **ppChannel
);
// Adding this until we have the updated specstrings.h
#ifndef __in_xcount
#define __in_xcount(size)
#endif
void DAPI RssFreeChannel(
__in_xcount(pChannel->cItems) RSS_CHANNEL *pChannel
);
#ifdef __cplusplus
}
#endif