diff options
author | Werner Koch <[email protected]> | 2001-07-30 17:46:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-07-30 17:46:07 +0000 |
commit | 8c4d2ca60968377bbfa587ec0dd7bfd17e5baae8 (patch) | |
tree | 63c96cd5979fd58d6cd354ce294580176cdcdbdf /complus/debug.c | |
parent | Timos fixes (diff) | |
download | gpgme-8c4d2ca60968377bbfa587ec0dd7bfd17e5baae8.tar.gz gpgme-8c4d2ca60968377bbfa587ec0dd7bfd17e5baae8.zip |
Encryption basically works.
Removed system specific files becuase they are now part of Mingw32/CPD
Diffstat (limited to 'complus/debug.c')
-rw-r--r-- | complus/debug.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/complus/debug.c b/complus/debug.c new file mode 100644 index 00000000..d7cb0a08 --- /dev/null +++ b/complus/debug.c @@ -0,0 +1,40 @@ +/* debug.c - COM+ debug helpers + * 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 <stdio.h> +#include <stdlib.h> +#include <windows.h> +#include <ole2.h> + + +const char * +debugstr_guid (const GUID *id) +{ + static char str[100]; + + if (!id) + return "(null)"; + sprintf( str, "{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", + id->Data1, id->Data2, id->Data3, + id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], + id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); + return str; +} + |