39#include "wpp_private.h"
70#define KWP(p) ((const struct oatype *)(p))
79 const char *kw =
t->name;
128 chat(
"get_type_vt: %p type->name %s\n",
t,
t->name);
194 error(
"handles can't be used in typelibs\n");
212 if(
match(
t->name,
"IUnknown"))
214 if(
match(
t->name,
"IDispatch"))
240 error(
"get_type_vt: functions not supported\n");
244 error(
"get_type_vt: bitfields not supported\n");
251void start_typelib(
typelib_t *typelib_type)
257void end_typelib(
void)
277 importlib->allocated = 0;
278 importlib->version =
header->version;
280 typeinfo_offs = (
int *)(
header + 1);
285 importlib->ntypeinfos =
header->nrtypeinfos;
288 for(
i=0;
i < importlib->ntypeinfos;
i++) {
293 importlib->importinfos[
i].importlib = importlib;
294 importlib->importinfos[
i].flags = (
base->typekind & 0xf)<<24;
295 importlib->importinfos[
i].offset = -1;
296 importlib->importinfos[
i].id =
i;
298 if(
base->posguid != -1) {
302 else memset( &importlib->importinfos[
i].guid, 0,
sizeof(importlib->importinfos[
i].guid));
308 memcpy( importlib->importinfos[
i].name, nameintro + 1,
len );
309 importlib->importinfos[
i].name[
len] = 0;
321 error(
"no PE section found for addr %x\n", rva );
342 error(
"invalid PE file\n" );
352 error(
"invalid PE file\n" );
354 if (!
dir->VirtualAddress || !
dir->Size)
error(
"resource not found in PE file\n" );
356 if (va +
dir->Size >
size)
error(
"invalid resource data in PE file\n" );
361 static const WCHAR typelibW[] = {
'T',
'Y',
'P',
'E',
'L',
'I',
'B'};
367 while (
entry->DataIsDirectory)
374 if (
memcmp(
ptr,
"MSFT", 4 ))
error(
"invalid typelib found in PE file\n" );
390 error(
"Could not find importlib %s.\n", importlib->name);
403 error(
"Wrong or unsupported typelib\n");
424 importlib =
xmalloc(
sizeof(*importlib));
425 memset( importlib, 0,
sizeof(*importlib) );
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
char * xstrdup(const char *s)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
#define MSFT_IMPINFO_OFFSET_IS_GUID
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
char * strmake(size_t *lenp,...)
#define IMAGE_NT_OPTIONAL_HDR32_MAGIC
#define IMAGE_NT_OPTIONAL_HDR64_MAGIC
#define IMAGE_FIRST_SECTION(NtHeader)
#define IMAGE_NT_SIGNATURE
#define IMAGE_DIRECTORY_ENTRY_RESOURCE
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
static const WCHAR typelibW[]
WORD NumberOfNamedEntries
static int type_array_is_decl_as_ptr(const type_t *type)
static enum type_type type_get_type(const type_t *type)
static int type_basic_get_sign(const type_t *type)
static type_t * type_array_get_element_type(const type_t *type)
static enum type_basic_type type_basic_get_type(const type_t *type)
static type_t * type_pointer_get_ref_type(const type_t *type)
static int type_is_alias(const type_t *type)
unsigned int pointer_size
int open_typelib(const char *name)
@ TYPE_PARAMETERIZED_TYPE
@ TYPE_ENCAPSULATED_UNION
@ TYPE_BASIC_ERROR_STATUS_T