Thanks, Dave.
GregJ7
Posts
-
Isolated/protected execution environment? -
Isolated/protected execution environment?I have a small game executable (not my game) that, when I close it down, opens my default browser with the game's maker's web site. Presumably it is just opening an http and Windows 11 handles it from there. Is there a way to prevent this from happening? —either to enclose the app's environment from the outside or to create an isolated environment that then executes the game (or some other way)? It would seem a little weird to me if I couldn't prevent that from happening to a specific Windows process. Windows provides a vast array of services to apps, but in terms of security, it might make sense to be able to prohibit certain operations for a process at the OS level. Does Windows provide any control for this?
-
Application.Run C# equivalentThanks. I found what I wanted in the Dispatcher class (which class Application uses). I needed to see more than I thought, because there is so much important code, however, what I originally was looking for was basically the following in Dispatcher.PushFrameImpl():
while(frame.Continue)
{
if (!GetMessage(ref msg, IntPtr.Zero, 0, 0))
break;TranslateAndDispatchMessage(ref msg);
}
From this code I was led to learn about thread Frames and such.
-
Application.Run C# equivalentTyvm!
-
Application.Run C# equivalentWhere did you tell me everything what Application.Run() does and how it does it? If you can't understand my question or don't know the answer to my question, then I would like an answer from someone who does.
-
Application.Run C# equivalentHas anyone that knows what WPF Application.Run() does written a C# function that duplicates what it does? Can you point me to that code? Thanks.
-
Application.Run C# equivalentThat is,
public class Application {
private void Run() {// What code has Microsoft put here? }
}
-
Application.Run C# equivalentThe present WPF equivalent of what used to be:
BOOL bRet;
while( (bRet = GetMessage( &msg, hWnd, 0, 0 )) != 0)
{
if (bRet == -1)
{
// handle the error and possibly exit
}
else
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
} -
Application.Run C# equivalentThat web page does not have the C# code equivalent of WPF's Application.Run() method. i.e., with a loop with GetMessage, DispatchMessage, etc.
-
Application.Run C# equivalentWhere can I find a C# equivalent (code) for the WPF, Microsoft-hidden Application.Run method?
-
How to report a bug privatelyHow do I report a site security bug privately?