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
|
|
|
|
|
|
|
extern HRESULT WINAPI FileSystem_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
2012-09-20 06:02:16 +02:00
|
|
|
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,
|
2012-09-20 06:02:16 +02:00
|
|
|
IDictionary_tid,
|
2014-02-25 06:25:33 +01:00
|
|
|
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,
|
2012-11-04 22:59:00 +01:00
|
|
|
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;
|
|
|
|
|
2012-11-04 22:59:00 +01:00
|
|
|
static inline void *heap_alloc(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL heap_free(void *mem)
|
|
|
|
{
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|
|
|
|
|
2012-06-15 07:17:42 +02:00
|
|
|
#endif
|