From f1ea0d9e3812d38e40a79f5337c2d2e172d387d6 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 6 May 2011 13:28:11 +0200 Subject: Remove complus (10 years unused). --- complus/regtlb.c | 70 -------------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 complus/regtlb.c (limited to 'complus/regtlb.c') diff --git a/complus/regtlb.c b/complus/regtlb.c deleted file mode 100644 index 4ea1342c..00000000 --- a/complus/regtlb.c +++ /dev/null @@ -1,70 +0,0 @@ -/* regtlb.c - Register a type library - * Copyright (C) 2001 g10 Code GmbH - * - * This file is part of GPGME. - * - * GPGME is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * GPGME 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "xmalloc.h" -#include "oleauto.h" - -int -main (int argc, char **argv) -{ - ITypeLib *pTypeLib; - wchar_t *fname; - HRESULT hr; - size_t n; - - if ( argc != 2 ) { - fprintf (stderr,"usage: regtlb foo.tlb\n"); - return 1; - } - - n = mbstowcs (NULL, argv[1], strlen(argv[1])+1); - fprintf (stderr, "need %d bytes\n", (int)n); - fname = xmalloc ((n+1)*sizeof *fname); - mbstowcs (fname, argv[1], strlen (argv[1])+1); - - hr = CoInitializeEx (NULL, COINIT_MULTITHREADED); - if (hr) - fprintf (stderr, "CoInitializeEx() failed: hr=%lu\n", hr); - - hr = LoadTypeLibEx (fname, REGKIND_REGISTER, &pTypeLib); - if (hr) - fprintf (stderr, "LoadTypeLibEx() failed: hr=%lx\n", hr); - - ITypeLib_Release (pTypeLib); - - CoUninitialize (); - return 0; -} - - - - - - -- cgit v1.2.3