Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinRT as a replacement of Win32 API

Over internet there are many blogs saying that winrt is a replacement of win32 api. IS this is really true? Even i read that application developed for Metro Application uses winrt. So do i understand correctly, those application which are metro application they has to go through winrt & classic applications has to go through win32 api's. Please someone validate my conclusions.

like image 566
Bidyut Mondal Avatar asked Feb 20 '12 06:02

Bidyut Mondal


People also ask

Does WinRT replace Win32?

What is WinRT(Windows Runtime)? In simple words, Windows Runtime Library (WinRT) is the default application programming interface (API) used by Windows 8. It does not replace the Win32 API that has been running underneath all Windows applications, but rather augments it.

Is WinRT based on Win32?

Technology. WinRT is implemented in the programming language C++ and is object-oriented by design. Its underlying technology, the Windows API (Win32 API), is written mostly in the language C.

What is WinRT used for?

C++/WinRT is an entirely standard modern C++17 language projection for Windows Runtime (WinRT) APIs, implemented as a header-file-based library, and designed to provide you with first-class access to the modern Windows API.

Will Win32 be deprecated?

WinRT spans across other architectures. Win32 might not get deprecated, however, the relevance of desktops may diminish.


2 Answers

Disclaimer: I am not involved in any way in the design or implementation of Windows 8, and I have only kept up on the Windows 8 news. I possess no privileged information.

winrt is a replacement of win32 api

Microsoft has made clear that WinRT is not a replacement for Win32, but another way to develop applications. That said, there is no Win32 implementation on ARM (at least that third-party developers can access). Windows on ARM will only support WinRT, and not Win32, as Steve Sinofsky explains here.

those application which are metro application they has to go through winrt & classic applications has to go through win32 api's

Absolutely correct.

like image 175
Adam Mihalcin Avatar answered Dec 06 '22 04:12

Adam Mihalcin


Win32 still exists. WinRt wraps them and converts their types to be native for the consuming language. C++ metro application can still access a limited set of Win32 APIs

like image 20
Jerry Nixon Avatar answered Dec 06 '22 06:12

Jerry Nixon