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.
 
 
 
 
 
 

31 lines
1.0 KiB

#ifndef __PCH_H__
#define __PCH_H__
#include <windows.h>
#include <shpriv.h>
#include <shlguid.h>
#include <shobjidl.h>
#include <shlwapi.h>
#include <shlwapip.h>
#include <debug.h>
#include "ccstock.h"
#include "wmsdk.h"
#include "wmsdkidl.h"
PSTR DuplicateWideStringAsMultibyte(LPCWSTR pwszSource);
HRESULT CoerceProperty(PROPVARIANT *pvar,VARTYPE vt);
HRESULT WMTFromPropVariant(BYTE *buffer, WORD *cbLen, WMT_ATTR_DATATYPE *pdatatype, PROPVARIANT *pvar);
HRESULT PropVariantFromWMT(UCHAR *pData, WORD cbSize, WMT_ATTR_DATATYPE attrDataType, PROPVARIANT *pvar, VARTYPE vt);
// try-except wrappers for wmvcore.dll functions
#define WMCreateEditor WMCreateEditorWrap
#define WMCreateIndexer WMCreateIndexerWrap
#define WMCreateProfileManager WMCreateProfileManagerWrap
#define WMCreateReader WMCreateReaderWrap
#define WMCreateWriterFileSink WMCreateWriterFileSinkWrap
#define WMCreateWriterNetworkSink WMCreateWriterNetworkSinkWrap
#define WMCreateWriter WMCreateWriterWrap
#define WMCreateCertificate WMCreateCertificateWrap
#endif