Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

GregJ7

@GregJ7
About
Posts
11
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Isolated/protected execution environment?
    G GregJ7

    Thanks, Dave.

    .NET (Core and Framework) game-dev data-structures security question workspace

  • Isolated/protected execution environment?
    G GregJ7

    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?

    .NET (Core and Framework) game-dev data-structures security question workspace

  • Application.Run C# equivalent
    G GregJ7

    Thanks. 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.

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    Tyvm!

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    Where 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.

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    Has 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.

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    That is,

    public class Application {
    private void Run() {

        // What code has Microsoft put here?
    
    }
    

    }

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    The 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);
    }
    }

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    That web page does not have the C# code equivalent of WPF's Application.Run() method. i.e., with a loop with GetMessage, DispatchMessage, etc.

    WPF csharp wpf question

  • Application.Run C# equivalent
    G GregJ7

    Where can I find a C# equivalent (code) for the WPF, Microsoft-hidden Application.Run method?

    WPF csharp wpf question

  • How to report a bug privately
    G GregJ7

    How do I report a site security bug privately?

    Site Bugs / Suggestions question security help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups