Post the declaration you are using and the code calling it. I can't suggest anything without seeing the code you are using.
Ok.. Thanks.
// DLL side:
========
private const uint SPI_GETUUID = 263;
private byte[] MSUUID;
public MSAPIWrapper(bool Device)
{
MSUUID = new byte[256];
}
public bool MS_GetUUID()
{
bool ret_value;
ret_value = SystemParametersInfoUUID(SPI_GETUUID, 256, MSUUID, 0);
return ret_value;
}
//Interface
public string sUUID
{
get
{
StringBuilder sb = new StringBuilder("");
sb.Append(String.Format("{0:X2}{1:X2}{2:X2}{3:X2}-{4:X2}{5:X2}-{6:X2}{7:X2}-{8:X2}{9:X2}-{10:X2}{11:X2}{12:X2}{13:X2}{14:X2}{15:X2}",
MSUUID[0],
MSUUID[1],
MSUUID[2],
MSUUID[3],
MSUUID[4],
MSUUID[5],
MSUUID[6],
MSUUID[7],
MSUUID[8],
MSUUID[9],
MSUUID[10],
MSUUID[11],
MSUUID[12],
MSUUID[13],
MSUUID[14],
MSUUID[15]));
return (sb.ToString());
}
}
[DllImport("coredll.dll", EntryPoint = "SystemParametersInfo", SetLastError=true)]
private static extern bool SystemParametersInfoUUID(uint uiAction,
UInt16 uiParam,
byte[] pvParam,
uint fWinIni);
Calling in Basic4ppc:
===============
WriteToTBInformation(CRLF & "*** MS UUID ***", False)
If (MSApiObj.MS_GetUUID = True) Then
WriteToTBInformation("MS UUID : " & MSApiObj.sUUID, False)
Else
WriteToTBInformation("MS UUID : Unknown " & MSApiObj.sWin32Error, False)
End If
Did I miss out anything?? :sign0089: