Category : guid

I have a function that takes as input an array of unsigned char (16 values exactly) and creates a GUID (from GUID struct) by parsing all values to hexadecimal and passing a guid-formatted string to UuidFromStringA(). My code is as follows: GUID CreateGuid(const uint8_t* data) { createGuidFromBufferData(hexValues, data); int uuidCreationReturnCode = UuidFromStringA((RPC_CSTR)hexValues, &guid); return guid; ..

Read more

I have a method which receives an array of 16 unsigned char values and I need to create a UUID from their respective hexadecimal values. I create a hexadecimal string out of each value and combine them to one GUID string, with which I attempt to use "UuidFromStringA". This methos, however, does nothing and I ..

Read more

Ref: https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-and-exporting-new-guids // lets use this guid 09343630L-AF9F-11D0-929F-00C04FC340B1 DEFINE_GUID( GUID_BUS_TYPE_PCMCIA, 0x09343630L, 0xaf9f, 0x11d0, 0x92,0x9f, 0x00, 0xc0, 0x4f, 0xc3, 0x40, 0xb1 ); Why they are breaking 929F to 0x92,0x9f 00C04FC340B1 to 0x00, 0xc0, 0x4f, 0xc3, 0x40, 0xb1 What can be the reason for such convention? Source: Windows..

Read more

I have this function, it from Microsoft Sample https://docs.microsoft.com/en-us/samples/microsoft/windows-classic-samples/cloudmirror-sample/ class __declspec(uuid("C1F400A4-3F08-11D3-9F0B-006008039E37")) TestExplorerCommandHandler ; and auto contextMenuClassFactory = winrt::make<ClassFactory<TestExplorerCommandHandler>>(); winrt::check_hresult(CoRegisterClassObject(__uuidof(TestExplorerCommandHandler), contextMenuClassFactory.get(), CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &cookie)); why when I change uuid the program return exith code 0. I use c++winrt. I have tried with GUID generator from visual studio and from website that provide GUID generator still got ..

Read more

Working on an inventory project where I need to link a computer to an object in Active Directory. I have an export of all computer objects from Active Directory including some unique identifiers such as objectGUID and objectSID. I now need to query the local device (ideally via powershell) for one of those unique identifiers ..

Read more