The win32 function you are looking for is called the Application Desktop Toolbars - this allows your application to interact with the shell and reserve space from the side, similar to the taskbar.
If you want to implement this yourself, you probably have to use Win32 somehow.
It looks like there is a python shell for this: python and appbar search is enabled by wxAppBar , which seems to be a python shell for it.
source share