public int[] QueryAvailableLocales()
{
string methodName = "IOPCCommon.QueryAvailableLocales";
try
{
IOPCCommon server = BeginComCall<IOPCCommon>(methodName, true);
// query for available locales.
int count = 0;
IntPtr pLocaleIDs = IntPtr.Zero;
server.QueryAvailableLocaleIDs(out count, out pLocaleIDs);
// unmarshal results.
return ComUtils.GetInt32s(ref pLocaleIDs, count, true);
}
catch (Exception e)
{
ComCallError(methodName, e);
return null;
}
finally
{
EndComCall(methodName);
}
}