23 references to Platform
PresentationFramework (23)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (8)
45
IntPtr functionPtr =
Platform
.GetProcAddress(moduleHandle, typeof(T).Name);
125
_moduleHandle =
Platform
.LoadLibraryExW(System.IO.Path.Combine(_currentModuleDirectory, fileName), IntPtr.Zero, /* LOAD_WITH_ALTERED_SEARCH_PATH */ 8);
142
_GetActivationFactory =
Platform
.GetProcAddress<DllGetActivationFactory>(_moduleHandle);
144
var canUnloadNow =
Platform
.GetProcAddress(_moduleHandle, "DllCanUnloadNow");
166
if ((_moduleHandle != IntPtr.Zero) && !
Platform
.FreeLibrary(_moduleHandle))
203
Marshal.ThrowExceptionForHR(
Platform
.CoIncrementMTAUsage(&mtaCookie));
213
int hr =
Platform
.RoGetActivationFactory(MarshalString.GetAbi(hstrRuntimeClassId), ref iid, &instancePtr);
219
Marshal.ThrowExceptionForHR(
Platform
.CoDecrementMTAUsage(_mtaCookie));
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (9)
43
IntPtr winRTErrorModule =
Platform
.LoadLibraryExW("api-ms-win-core-winrt-error-l1-1-1.dll", IntPtr.Zero, (uint)DllImportSearchPath.System32);
46
getRestrictedErrorInfo =
Platform
.GetProcAddress<GetRestrictedErrorInfo>(winRTErrorModule);
47
setRestrictedErrorInfo =
Platform
.GetProcAddress<SetRestrictedErrorInfo>(winRTErrorModule);
48
roOriginateLanguageException =
Platform
.GetProcAddress<RoOriginateLanguageException>(winRTErrorModule);
49
roReportUnhandledError =
Platform
.GetProcAddress<RoReportUnhandledError>(winRTErrorModule);
53
winRTErrorModule =
Platform
.LoadLibraryExW("api-ms-win-core-winrt-error-l1-1-0.dll", IntPtr.Zero, (uint)DllImportSearchPath.System32);
56
getRestrictedErrorInfo =
Platform
.GetProcAddress<GetRestrictedErrorInfo>(winRTErrorModule);
57
setRestrictedErrorInfo =
Platform
.GetProcAddress<SetRestrictedErrorInfo>(winRTErrorModule);
187
if (
Platform
.WindowsCreateString(message, message.Length, &hstring) != 0)
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (2)
115
char* buffer =
Platform
.WindowsGetStringRawBuffer(__retval, &length);
120
Platform
.WindowsDeleteString(__retval);
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
54
Marshal.ThrowExceptionForHR(
Platform
.WindowsCreateStringReference(
81
Platform
.WindowsDeleteString(hstring);
95
var buffer =
Platform
.WindowsGetStringRawBuffer(value, &length);
107
Platform
.WindowsCreateString(value, value.Length, &handle));