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
S

ss20

@ss20
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Run another Application out of my Application - with the same rights
    S ss20

    Hi, i'm in testing with the Process and ProcessStartInfo Classes. But it doesn't work as aspected. I want to run another application from my application withe the same rights, i mean with the same user name. Any suggestions? My Code:

    ProcessStartInfo startinfo = new ProcessStartInfo();
    startinfo.FileName = @"C:\Test.exe";

    Process.Start( startinfo );

    I tried to using the UserName Property, but it doesn't work, because i have to use the password also. But i dont know the password of the actuall user. (Keyword: terminal Server) But with the code like the example, the Apllication ist startet as SYSTEM. Can anybody help me?

    C# sysadmin testing beta-testing help tutorial

  • How to get the names of all classes wich are derived from a base class ?
    S ss20

    With this code you can get all derived classes from the current assembly and its referenced assemblies... (this should be all assemblies in the project)

    List<Type> derives = new List<Type>();
    foreach( AssemblyName name in Assembly.GetExecutingAssembly().GetReferencedAssemblies() ) {
      Assembly assembly = Assembly.Load( name );
    
      foreach( Type class in assembly.GetTypes() ) {
        if( class.IsSubclassOf( typeof( BaseClass ) ) ) {
          derives.Add( class );
        }
      }
    }
    
    C# tutorial question
  • Login

  • Don't have an account? Register

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