From: limhyeam on
Hi all,

I am trying to look high and low on this issue. I know that we can use
DeviceInfo to get the UUID, however, I was also trying to get the UUID using
SystemParametersInfo.. I get 1439 Win39Error. I dont know what is wrong with
it as the documentation in MSDN on this is only one line.

Can anyone point out what is wrong with this line? Thanks.

byte[] UUID = new byte[16];
const uint SPI_GETUUID = 263;

SystemParametersInfo(SPI_GETUUID, 0, ref UUID, 0);

Cheers,
Desmond

From: Armin Zingler on
limhyeam schrieb:
> Hi all,
>
> I am trying to look high and low on this issue. I know that we can use
> DeviceInfo to get the UUID, however, I was also trying to get the UUID using
> SystemParametersInfo.. I get 1439 Win39Error. I dont know what is wrong with
> it as the documentation in MSDN on this is only one line.
>
> Can anyone point out what is wrong with this line? Thanks.
>
> byte[] UUID = new byte[16];
> const uint SPI_GETUUID = 263;
>
> SystemParametersInfo(SPI_GETUUID, 0, ref UUID, 0);

What kind of machine? I didn't find SPI_GETUUID in my local MSDN installation,
only online in the "Mobile & Embedded Development" SDK.

--
Armin