Sweden-Number/dlls/scrrun/scrrun_private.h

52 lines
1.6 KiB
C
Raw Normal View History

2012-06-15 07:17:42 +02:00
/*
* Copyright 2012 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _SCRRUN_PRIVATE_H_
2015-03-04 06:25:52 +01:00
#define _SCRRUN_PRIVATE_H_
2012-06-15 07:17:42 +02:00
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
2012-06-15 07:17:42 +02:00
extern HRESULT WINAPI FileSystem_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
extern HRESULT WINAPI Dictionary_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
2012-06-15 07:17:42 +02:00
typedef enum tid_t
{
NULL_tid,
IDictionary_tid,
IDrive_tid,
2014-02-24 05:16:16 +01:00
IDriveCollection_tid,
IFile_tid,
IFileCollection_tid,
2012-06-15 07:17:42 +02:00
IFileSystem3_tid,
IFolder_tid,
2014-01-03 13:33:43 +01:00
IFolderCollection_tid,
2012-11-10 17:43:39 +01:00
ITextStream_tid,
2012-06-15 07:17:42 +02:00
LAST_tid
} tid_t;
HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
struct provideclassinfo {
IProvideClassInfo IProvideClassInfo_iface;
IUnknown *outer;
const GUID *guid;
};
extern void init_classinfo(const GUID *guid, IUnknown *outer, struct provideclassinfo *classinfo) DECLSPEC_HIDDEN;
2012-06-15 07:17:42 +02:00
#endif