469,576 Members | 1,699 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,576 developers. It's quick & easy.

GetType(Object).GUID <- What does the GUID represent?

Hi all,

I'm using the command GetType(MyObject).GUID to return a GUID. Is the GUID
a CRC type calculation on the object, or is it a pre-assigned value on the
object?

I was hoping to have a way to do a CRC type calculation on an object to see
if it has changed or has been tampered with.

Thanks.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #1
2 4062
"Lucas Tam" <RE********@rogers.com> schrieb:
I'm using the command GetType(MyObject).GUID to return a GUID. Is the GUID
a CRC type calculation on the object, or is it a pre-assigned value on the
object?
The returned GUID is type's class identifier (class ID, CLSID). MSDN:

---
Class identifier (CLSID)

A globally unique identifier (GUID) associated with an OLE class object. If
a class object will be used to create more than one instance of an object,
the associated server application should register its CLSID in the system
registry so that clients can locate and load the executable code associated
with the object(s).
---

The class identifier is a pre-assigned value that doesn't have much to do
with the object, but with its type.
I was hoping to have a way to do a CRC type calculation on an object to
see
if it has changed or has been tampered with.


'Type.Guid' is not the right way to do that.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in
news:ON*************@TK2MSFTNGP11.phx.gbl:
I was hoping to have a way to do a CRC type calculation on an object to
see
if it has changed or has been tampered with.


'Type.Guid' is not the right way to do that.


Any built in functions that come to the top of your mind that can generate
a CRC on a DLL (or object)?

Thanks.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Horst Klein | last post: by
3 posts views Thread by johan Goris | last post: by
9 posts views Thread by Yan Vinogradov | last post: by
2 posts views Thread by Razzerroo | last post: by
3 posts views Thread by Michael | last post: by
5 posts views Thread by Matthew | last post: by
3 posts views Thread by Joe Adams | last post: by
3 posts views Thread by Tony Johansson | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.