SystemParametersInfo

L

limhyeam

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
 
A

Armin Zingler

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

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

Top