Writing your own version of windows [closed] - c++

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Recently, I've been thinking about how there are multiple versions of linux and how they are all built on a similar kernel. And I was wondering if it was possible with Windows. In this case I am thinking of having the first program loaded after the kernel has booted up and started all the devices, would be the what pops up instead of the windows login screen.
The reason for this is because I was wondering if it was possible to have the system render all the objects on the screen in a distint styling, but still process it as if it were running on a normal windows machine.
Any Thoughts?

Initially I thought this was a naive question, but Mooing Duck's link in the comments proved insightful. There are projects that do just this: EmergeDesktop, SharpE, even the KDE.
They're open and on sourceforge, go get them and dink around to your hearts content.
I'm not sure that the login screen is part of the shell however. So your alternate shell would only show up after you log in.
However, in the long run, alternate shells have no hope of competition. Microsoft controls the environment and they don't play too nice with competition.

Related

How can I run Win10 Camera application via command? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
This is the Win10 built-in Camera application.
We usually can run a normal Windows applicaion via command like
notepad
calc
in cmd or powerShell.
For the camera APP, I inspected the process via spy++
The process is ApplicationFrameHost.exe and with -Embedding parameter.
However, I run this command in PowerShell and turned out not work.
ApplicationFrameHost -Embedding
How do I run the Win10 camera APP via command line? Or I use C++, which function can achieve that?
Type follwing command in cmd.
start microsoft.windows.camera:

Setup Openframework in Codeblock in Windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to configure OpenFramework IDE in my codeblock. I want to build an app which prints the line on screen.
If the only thing you want is to just print a line of text you can use std::cout that prints to basic output onto your console window when the application runs. This is the most basic and easiest way to solve this.
If need to do something more complex than that, like program with GUI instead of console app, I would suggest you to use something other than OpenFrameworks, like f.e. Qt, that has a support for things like this. OpenFrameworks has the capability of doing all that, it just isn't it's main goal. You can download various addons that implement things like UI elemenets, but they are usually pretty simple.
Edit: I've just realized that by line you probably didn't mean a line of text...
Well, OpenFrameworks has no longer an Code Blocks support, you can still though download an older version from http://openframeworks.cc/download/older/

Limiting the monitor to a region in Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a laptop with a broken 13 inch display. The left half of the display is completely black and I cant's fix it for now. I was wondering if it's possible to write a program in any language to limit the display to the right, that means either:
Changing the resolution to have half of the width it currently has or
Keep the aspect ratio but zoom out the display and send it to the right.
I am preferably looking for a method that can be used in Linux (Windows will be in second priority)
The language is not an issue (though I am assuming C++ would be the way to go) and I'm looking for some hints.
Thanks in advance.
maybe (if xrandr don't make you happy) you could use Xnest, position the Xnest root window appropriately, and run all other X11 applications inside that Xnest.
You can change resolution using xrandr Linux command.

Looking to develop my own small C++ browser that basically will display HTML, Javascript, and Flash, where to start? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm looking to start developing a browser (operating system isn't an issue, but preferring Linux or Windows). I'm just trying to figure out where to start. I know Visual Studio lets you drop a lightweight IE component into it, but I don't want IE's issues. I was hoping to start with a very basic mozilla build, but I cant seem to find one anywhere.
Does anyone know where I can find a good open source starting point OR how to start this on my own?
If you're not opposed to using Qt, then Qt's Webkit implementation could be a fairly clean start for cross-platform work:
http://doc.qt.nokia.com/4.7-snapshot/examples-webkit.html
Note in particular the "Fancy Browser" sample:
http://doc.qt.nokia.com/4.7-snapshot/webkit-fancybrowser.html
There are many customizations possible and ways of hooking the engine. There's also support for Flash, though I've not tried that:
http://www.qtcentre.org/threads/31547-Flash-support-for-QT-Webkit-4-6
Although you can use Qt with other compilers/IDEs, the quickest way to get started is with Qt Creator. After installing it there should only be a few clicks needed to get the QtWebkit examples building, on either Windows or Linux:
http://qt.nokia.com/products/developer-tools

How to code a new Windows Shell? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How would I go about coding a new Windows Vista Shell?
Everything you need to do as shell has never been documented, so there are some issues with file change notifications etc. The basics are:
SystemParametersInfo(SPI_SETMINIMIZEDMETRICS,...MINIMIZEDMETRICS) with (undocumented?) flag 8
Register as the shell (SetShellWindow,SetProgmanWindow,ShellDDEInit,RegisterShellHook etc)
Hide welcome screen by setting a signal ("msgina: ShellReadyEvent" and "ShellDesktopSwitchEvent")
Start registry run key, start menu\startup and ShellServiceObjects
Set registry Explorer\SessionInfo
The good thing is, you are not the first to write a new shell, if you look around, you can find some obscure required info. Here is a list to get you started:
https://web.archive.org/web/2019/http://www.lsdev.org/doku.php
http://bb4win.cvs.sourceforge.net/bb4win/blackbox/Blackbox.cpp?revision=1.49&view=markup
http://xoblite.net/source/Blackbox.cpp.html
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/
http://www.geoffchappell.com/viewer.htm?doc=studies/windows/shell/explorer/index.htm&tx=36
A good place to start would be investigating how to build a command line parser, something that can tokenize and interpret the inputs. There are tools that can help with this like ANTLR, or you might like to try building your own.
Once you've parsed the inputs you need to decide what actions to take - launching processes, piping between processes, redirecting output - and making those system calls.
If you're just after a more powerful shell rather than interested in building one, give PowerShell a try.