System Process... Converting From VB6?

Feb 5, 2010

I noticed when you kill winlongon.exe, you get a BSOD and your computer crashes. I have also noticed that a number of antiviruses including Norton and Kaspersky make their processes access denied, even to administrators! Even if you use a tool like PSKill or Process Explorer, you still can't kill them. For anyone who wants to see this for themselves, get Kaspersky antivirus and then try killing AVP.EXE from any task killing utility. It doesn't work!

I'm making an application which will limit certain processes from running on my computer until a master password has been entered, where upon the access to these processes will be unlocked. I don't want the user to be able to kill the process, but I want them to be able to use other programs (including task manger, etc). I have thought of many solutions to this, including having another process which will restart my main process whenever it is not present, but this brings forth the problem of a user simultaneously killing and then deleting both of the processes, possibly with a tool like Unlocker. I have also thought about disabling task manager, CMD and taskkill, but then I fear my program will become more like a virus than a legitimate piece of software, and also other utilities can be used which will kill processes.

My problem is that I don't want to be too constraining to the user of my application so that they are not able to use every day applications, but I don't want my application to be easy to circumvent, and thus become pointless.

View 11 Replies


ADVERTISEMENT

VS 2005 Windows Services - Process Is Listed As A SYSTEM Process Rather Than A Process Under User Name

Jun 4, 2009

I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).

View 4 Replies

C# - System.Diagnostics.Process From ManagementBaseObject - Executing A Remote Process Using WMI

Sep 9, 2011

I'm executing a remote process using WMI and would like to redirect the StandardOutput of that process back to my program. I have found these code examples:

[Code]...

View 1 Replies

Use System.Diagnostics.Process.Start To Run A Process?

Jun 24, 2009

i use System.Diagnostics.Process.Start to run a process

example :

Dim p As New System.Diagnostics.Process
p = System.Diagnostics.Process.Start("D:ProjectApplication.exe")

it works perfectly during run time. but after i deploy to server.... this code did nothing, it did not call out this process

View 1 Replies

Starting A Process - Converting From .Net To VB6?

Oct 19, 2010

I need to convert the following VB.Net code into VB6:

Dim app1 As Process = New Process()
With app1.StartInfo
.FileName = msFilePath
.Arguments = "/log=" + logname

[code]....

View 1 Replies

Process Of Converting 6 Pages Of Java To .net?

Sep 26, 2011

I'm in the process of converting 6 pages of java to vb.net and today I encountered a line of code that uses "HashSet". I'm currently working in visual studio 2005 and so after googling it, I realized that HashSet is not available for this framework and I would need to use Dictionary.

I'm trying to decide if I should upgrade or not. Performace is going to be a key issue in working with this new application. I suppose it may depend on what use they make of this HashSet in the pages I'm converting. Here's the function I'm currently working on converting:

Public Shared Function locate(ByVal Pnt) As Triangle
Dim triangle As Triangle = mostRecent
If Not contains(triangle) Then
triangle = Nothing
End If

[Code]...

View 8 Replies

C# - Kill Process Started With System.Diagnostic.Process.Start("FileName")

Oct 2, 2010

I am trying to create an app that will perform actions on specific times (much like the Windows Task Scheduler). I am currently using Process.Start() to lunch the file (or exe) required by the task. I am initiating a process by calling a file (an .mp3) and the process starts WMP (since it is the default application), so far so good. Now I wan't to kill that process. I know that it is normal behavior for the Process.Start(string, string) to return nothing (null in C#) in this case. So I am asking how can i close WMP when I called it through Process.Start(string, string)??

[Code]...

View 6 Replies

Use System.diagnostics.process.start("Process.exe")?

Jan 12, 2010

Is it possible to use system.diagnostics.process.start("Process.exe")But the process would not be seen by the user? For example, I want to play an audio in the background using windows media player, the audio will play but wmp won't be visible. Is it possible?

View 1 Replies

Converting System.uri To String

Aug 3, 2010

i am learning vb. net for my IT class. i have been set the task of making a simple web browser. i have been able to insert a web browser window into the form and set the url in the properties tab in the editor. i have inserted a buton and a textbox and have written code so that when clicked the text in the textbox will be set as the url property. below is the code i have used

[Code]...

View 3 Replies

Converting From Binary To Decimal System

Apr 8, 2012

I was given a school project in which I have to make a program that converts numbers between binary,decimal,octal and hexadecimal systems. I have figured out how to make a function to convert binary number to decimal number [code]With this code,a user can enter a number that isn't binary,and program will calculate it. How can I make that program doesn't calculate those numbers or doesn't accept anything else than 0 or 1? This is needed for other cases like octal and hexadecimal system.

View 3 Replies

Converting System.Type To OleDbType?

Feb 5, 2011

Using the code

Dim dr As OleDbDataReader
Dim dbconn As New OleDbConnection
dbconn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & "C:MyData.mdb"

[code]....

I can extract

ColumnName = Item
ColumnSize = 80
DataType = System.String

But to write a Parameter I need to convert this to

UpDateCmd.Parameters.Add("Item", OleDbType.BSTR, 80).Value

Is there an easier way of converting DataType = System.String to OleDbType.BSTR than having to make a list with Select Case?Or is there a method to find OleDbType.BSTR rather than reading DataType = System.String?I also tried

SchemaTable = dbconn.GetOleDbSchemaTable(System.Data.OleDb.
OleDbSchemaGuid.Columns, New Object() {Nothing, Nothing, "Auction"})
Dim RowCount As Int32

[code]....

But that also returns DataType = System.String.

View 5 Replies

Converting Text To System Drawing?

May 28, 2010

Private Sub UpdatePictureBox()
pbShowImage.Image = lbAddImage.Text
End Sub

what should it be?

View 4 Replies

Converting A String To System.Drawing.Font

May 8, 2010

I'm saving the font of a label to a text file, and when I open the text file with my program, I want the label to have the same font that is listed within the text file. Now, the only problem I am having is that when I try to write the code for opening the text file, I can't set the font property of the label to a string. Label1.Font=[Font: Name=Microsoft Sans Serif, Size=9.75, Units=3, GdiCharSet=0, GdiVerticalFont= False]Here is what the code to open the text file and set the font of the label looks like:[code]The problem for the code happens at line 6. The error is: "Value of type 'String' cannot be converted to 'System.Drawing.Font'"ing each part of the font in the text file(i.e. Writing Font.Name and Font.Size properties in separate lines and then setting the label's font properties to each line accordingly), but I still get hit with the same error.

View 12 Replies

Converting System.Linq.IorderedEnumerable To DataView?

Oct 13, 2009

I am trying to get the DataView from a linq query expression which is querying a typed dataset. The result lands in a type of System.linq.IOrderedEnumerable. But i'm not able to convert this type to a Dataview although a few examples on the internet say that AsDataView function shoudl work but could you please throw some light on why the method AsDataView is not exposed on the query.

[Code]...

View 1 Replies

Converting The Database Of My System From Ms Access To Xampp

Sep 19, 2011

I'm having a hard time in understanding xampp. I will need to change my database from ms access to xampp. I already test it in a sample program and it works! Now I want to convert my whole system so my first step is to delete the database in my system (ms access) then create a code that will connect my system to xampp, I'm done with those things. The BIG problems are I'm having 98 ERRORS and I cant figure it out. I dont know the equivalent code to xampp. Here's the code that has error. Note that it is just one of 98 errors in my system.

Me.TableAdapterManager1.UpdateOrder = FinalSystem.FinalDatabaseDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete

xampp doesnt have any tableadapater, but what should I do to insertupdatedelete?

View 8 Replies

VS 2005 Converting System.String To Char

Dec 10, 2009

how to convert system.string to char for label text?? Here it my

[Code].....

I need to get the strings from the site and input the fields strings in the label text, so I needs to convert char of system.string but i don't know how to fix it.

View 3 Replies

VS 2008 Converting A String Into A System.IO.DirectoryInfo

Aug 23, 2009

I need to count the number of files in a specific folder. The folder I need is in the directory path of ApplicationData. The only method I could think of to grab the path, is to combine it via a string, like this: vb.net

[Code]...

View 2 Replies

.net - Deserializing XML With Dynamic Types / Converting String To System.Type?

Jun 5, 2009

I'm not sure if i titled this question properly or am asking it properly, but here goes.I've got serialized objects (in XML) stored in a database, along with a string/varchar indicating the type.

[Code]...

View 3 Replies

VS 2010 WebClient Get Error When Converting String To System.Net.IWebProxy

Sep 21, 2011

I am getting an error with this Dim Web As New WebClient Web.Proxy = "69.196.16.237:62159" It says runtime errors may occur when converting string to System.Net.IWebProxy What does that mean?

View 9 Replies

Way To Kill A System Process

May 18, 2009

I am looking for a way to kill a system process.my program is printing a word doc but i have noticed that one it has printed the process Winword.exe is still running in the task manager!does anyone know how once i have printed and closed word i can kill the process?

View 5 Replies

System.Diagnostics.Process.GetProcesses?

Jul 18, 2009

I am fairly new to VB.NET (but have vast professional experience with several other languages) and am completely new to these forums (so please don't burn me if I posted in the wrong place). I have run into a rather odd quirk with System.Diagnostics.Process.GetProcesses. I have a sample application (source posted below) that checks all running processes every second for changes (created and destroyed) and tells the user what has changed, if anything, in the last second. The sample runs for anywhere between 29-72 seconds before issuing an array out of bounds error. It appears that the Windows system processes, SearchProtocolHost.exe and SearchFilterHost.exe explicitly, disappear from the list causing my application to throw the aforementioned exception. Specifically the exception I am receiving is as follows:

Unhandled Exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.I have noted in comments where the exception is thrown in the code below. If any of you would be willing to try this sample on your PC's or could suggest potential issues with my sample that could cause this problem

My sample code:
Imports System
Imports System.Diagnostics

[code]....

View 1 Replies

Working With System.Diagnostics.Process?

Dec 22, 2010

I am tring to build network toolkit for my very computer illiterate techs. What I am trying to accomplish is to embed a command prompt of sorts in a form. I have been sucessful to a point. Here are my main two problems.

1: I cannot read line by line as the output of the process is generated. Rrather I have to wait untill its complete, this is ok for "IPConfig and Maybe "Ping". But for longer diag tests this would take too long and it would look like the app has crashed. So I need to figure out how to redirect the output of the process to my text control.

2: I would like to have the ability to redirect keyboard input to the process. For telnet as an example. I would capture all keyboard commands while my text control has focus and send them to the process and with the problem solved I should be able to establish 2-way IO with the process. Is there a way to do this or am I barking up the wrong tree.

[Code]...

View 3 Replies

" Kill Process Using System Diagnostics?

Sep 20, 2011

I am trying to kill process using following code

Dim ItemProcess() As Process = Process.GetProcessesByName("vlc")
If Not ItemProcess Is Nothing Then
For Each SubProcess As Process In ItemProcess[code]....

Now I have created two sub in the first sub I started a process using process.start(preview.mp3)in the second sub I killed this process using the above code but instead of passing the mp3 file I am using the vlc.exe which is actually processing the fileFor this I have to manually check the task manager and get the process name.So my point is ,is there any way i can write a code that automatically the corresponding exe file that is using it.

View 2 Replies

Dynamic System.Diagnostics.Process.Start?

Jul 6, 2009

I'm having a problem. I have researched this for over a week and have not found what I need. I find a lot of great suggestions but none of them work for me.My code and program works 100% if you put a valid program, process or file name in the box but if you don't, it crashes. Also if the program is not registered or in a known path it will crash.

I've tried My.Computer.FileSystem.FileExists(txtProcessName.Text) and System.IO.File.Exists(txtProcessName.Text)

But every variation I try thinks that none of the files exist.I don't want to hard code any of the paths or file names because I want this to be dynamic. I also want it to be a one file program. I know eventually I will need to get into multiple files but I like basing all my programs on a file that can be copied and pasted to any computer and ran without problems.

NOTE: This is a multi-function program. Not only does it start programs but it also terminates them, looks the process up on the web to see if it's spyware, adware or a valid program and it also is a Task manager.

[Code]...

View 5 Replies

Get Active Process In Taskbar Not System Tray?

Jan 11, 2012

I am trying to create application that monitor application list, not process list, what i mean application list is application process that shown on taskbar (NOT System Tray),how I can retrieve all application list and add them into listbox?

View 2 Replies

System Diagnostics Process - Do Not Want New Window To Be In Front

Dec 23, 2011

I have an windows application from where i start another EXE by using the system.diagnostics.process.

I do as follows:
private myExe as System.Diagnostics.Process
myExe = New System.Diagnostics.Process()
myExe.StartInfo.WorkingDirectory = "...my path ..."
myExe.StartInfo.FileName = "...my exe..."
myExe.Start()

View 8 Replies

System.Diagnostics.Process.Start When File Is Not Associated?

Nov 30, 2009

I'm using System.Diagnostics.Process.Start to open a file using a string stored in a SQL datatable. It works absolutely fine as long as there is an application on the local machine associated with the file type. If there isn't an association, what happens is the "Save as" dialog box pops up. What I'd like to happen is to just bring up a message box or some other prompt that tells the user what the problem is, and to contact the helpdesk. Some users will be confused if they see a "Save as" dialog box, I think.

View 2 Replies

System.Process.Start And TextBox Object?

May 4, 2011

I'm doing, well trying anyway, a calculator that is well fitted for "us analogue/HAM Radio enthusiasts", with basic AC and DC formulas, and a search-engine.... And it's this search-engine that gives me a darn head-ace!I placed a TextBox object at the bottom of the form, and first I just had a Button and a Label, saying "try google?". And a LinkLabel and a Process.Start method.

Dim search As String
LinkLabel.LinkVisited = false
search = TextBoxSearch.Text
System.Diagnostic.Process.Start("IExplorer.exe", "http:google.com/", search)

And I then got in my head that it would be cool if I could add a second TextBox object and the user could simply type in the search-term and when the Process.Starter called i.e. IE6/7/8... would open google, and displayed the result of the search on google, in the browser..But how ever I try, I get only a browser to start with google's url or exception error, though I have a try/catch method ...What I want to achieve is a "google toolbar" on my calculator, I haven't yet learned how to use VB script and it's probably that which fault me..

View 7 Replies

C# - Is SeDebugPrivilege() Api Function The Same As System.Diagnostics.Process.EnterDebugMode

Aug 26, 2009

What the title says. Are they the same? I've noticed that the first does have arguments and such, but are they going to give the same end result?

View 2 Replies

C# - Process.Start Dirquota.exe - The System Cannot Find The File Specified

Sep 9, 2010

I am using a System.Diagnostics.Process to execute dirquota.exe. I catch an exception at .Start() which is "The system cannot find the file specified".

I am now doing:

foreach (var fi in new DirectoryInfo(@"C:WindowsSystem32").GetFiles())
{
Console.WriteLine(fi.Name);
}

This outputs pretty much every file in that directory apart from dirquota.exe.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved