#include <windows.h>

#include "resource.h"

typedef struct _TypeInfoBlock {
	TCHAR name [128] ;
	CLSID clsid ;
	BOOL bByName ;
	unsigned short wVerMajor ;
	unsigned short wVerMinor ;
} TYPEINFOBLOCK ;



# define UNUSED(X) (X)

#define DIM(X) (sizeof(X) / sizeof(X[0]))


BOOL    InitTypeLib (LPTYPELIB, HWND) ;
void	InitTypeInfo (LPTYPEINFO, HWND) ;

void 	SetSelectedType(LPTYPELIB, DWORD, HWND) ;
void    FillMemberList(ITypeInfo FAR *, TYPEATTR FAR *, int cltid);
void    SetSelectedMember(LPTYPEINFO, DWORD, HWND);
void 	SetSelectedParameter(LPTYPEINFO, DWORD, DWORD, HWND) ;
void 	GetFuncTypeName (INVOKEKIND ik, LPTSTR cp, int length) ;
void 	GetVarTypeName (TYPEDESC, LPTSTR cp) ;

BOOL CALLBACK  TypeBrowseProc (HWND hDlg,UINT message,	WPARAM wParam,	LPARAM lParam) ;
BOOL CALLBACK  TypeInfoDlgProc (HWND hDlg,UINT message,	WPARAM wParam,	LPARAM lParam) ;
BOOL CALLBACK  MainDlgProc (HWND, UINT, WPARAM, LPARAM) ;   

