Solved

CoCreateGuid content

Posted on 1998-12-30
10
311 Views
Last Modified: 2008-01-16
Does anyone know if the code used in 'CoCreateGuid' is public domain? if so, where can I get it? (I need a GUID or similar mechanism in a infrastructure library that should not link with MFC/OLE).
Thanks,
Uri
0
Comment
Question by:uris
  • 4
  • 4
  • 2
10 Comments
 

Author Comment

by:uris
ID: 1181291
Adjusted points to 50
0
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 1181292
The code isn't public domain, but the function isn't included in MFC/OLE lib's, it simply maps to 'UuidCreate()' from rpcrt4.dll (available on every Win32 system)
0
 

Author Comment

by:uris
ID: 1181293
Thanks, but again, is the code of 'UuidCreate' available for me? I want to write it (if possible) in my own library without having to link ANY other library.

Thanks
0
 
LVL 86

Expert Comment

by:jkr
ID: 1181294
I'm searching my archives at the moment - i know i have some examples here, but can't locate them at the moment. But be sure, if i find something, i'll post it for you ;-)
0
 
LVL 11

Expert Comment

by:alexo
ID: 1181295
ftp://ftp.hkstar.com/.1/netinfo/internet-drafts/draft-leach-uuids-guids-01.txt

Hint: do not accept an answer until you are satisfied with the solution.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 86

Expert Comment

by:jkr
ID: 1181296
alexo - the original (and 'official') source of the document you mentioned is
'http://www.ietf.org/internet-drafts/draft-leach-uuids-guids-01.txt'
BTW: I almost forgot - the source code for 'uuid_create()' (OSF DCE RPC) is available with the Linux sources, so i'll search them when i have time to reboot ;-)
0
 

Author Comment

by:uris
ID: 1181297
Thanks guys. By the way, I am trying the code suggested at the end of this article, and there is something missing. They use includes and types defined in "MD5.h". Do you know what it is, and again, where can I get it?

Thanks again,
uris
0
 
LVL 11

Expert Comment

by:alexo
ID: 1181298
>> the original (and 'official') source of the document you mentioned [...]
Yea I know, it was temporarily unavailable due to some reason so I did an ftp search on the name.
0
 

Author Comment

by:uris
ID: 1181299
Thanks guys. By the way, I am trying the code suggested at the end of this article, and there is something missing. They use includes and types defined in "MD5.h". Do you know what it is, and again, where can I get it?

Thanks again,
uris
0
 
LVL 86

Expert Comment

by:jkr
ID: 1181300
md5.h is usually used for encryption purposes - it's quite small, so you'll find it below ;-)

/* MD5.H - header file for MD5C.C
 */

/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.

License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.

License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.
 */

/* MD5 context. */
typedef struct {
  UINT4 state[4];                                   /* state (ABCD) */
  UINT4 count[2];        /* number of bits, modulo 2^64 (lsb first) */
  unsigned char buffer[64];                         /* input buffer */
} MD5_CTX;

void MD5Init PROTO_LIST((MD5_CTX *));
void MD5Update PROTO_LIST((MD5_CTX *, unsigned char *, unsigned int));
void MD5Final PROTO_LIST((unsigned char [16], MD5_CTX *));

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now