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