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

  • Thread starter Thread starter Lucas Tam
  • Start date Start date
L

Lucas Tam

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 said:
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.
 
'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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top