const int ERROR_MORE_DATA = 234; // winerror.h
string value;
+#if MOBILE
+ value = ADP.MachineName();
+#else
if (IsPlatformNT5) {
int length = 0; // length parameter must be zero if buffer is null
// query for the required length
else {
value = ADP.MachineName();
}
+#endif
return value;
}
[ResourceExposure(ResourceScope.None)] // SxS: we use this method for TDS login only
[ResourceConsumption(ResourceScope.Process, ResourceScope.Process)]
static internal int GetCurrentProcessIdForTdsLoginOnly() {
+#if MOBILE
+ return 0;
+#else
return SafeNativeMethods.GetCurrentProcessId();
+#endif
}