c# Programming Glossary: proc
How do you de-elevate privileges for a child process http://stackoverflow.com/questions/1173630/how-do-you-de-elevate-privileges-for-a-child-process do you de elevate privileges for a child process I know how to launch a process with Admin privileges from.. privileges for a child process I know how to launch a process with Admin privileges from a process using proc.StartInfo.UseShellExecute.. know how to launch a process with Admin privileges from a process using proc.StartInfo.UseShellExecute true proc.StartInfo.Verb..
Sending an array of values to Oracle procedure to use in WHERE IN clause http://stackoverflow.com/questions/13580245/sending-an-array-of-values-to-oracle-procedure-to-use-in-where-in-clause an array of values to Oracle procedure to use in WHERE IN clause I have a stored procedure in.. procedure to use in WHERE IN clause I have a stored procedure in Oracle as shown below CREATE PROCEDURE MY_TEST_PROC.. that I can have a VARCHAR2 input parameter in my stored proc make a comma separated string from the list items send it to..
What are the pros and cons to keeping SQL in Stored Procs versus Code http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code script to update queries Easier to port to another DB no procs to port Advantages for Stored Procs Performance Security c#.. Procs Performance Security c# sql sql server stored procedures share improve this question I am not a fan of stored.. share improve this question I am not a fan of stored procedures Stored Procedures are MORE maintainable because You don't..
Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C# http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c-sharp hookedLowLevelKeyboardProc summary HookCallbackAsync procedure that calls accordingly the KeyDown or KeyUp events. summary.. 260 public static IntPtr SetHook LowLevelKeyboardProc proc using Process curProcess Process.GetCurrentProcess using ProcessModule.. return SetWindowsHookEx WH_KEYBOARD_LL proc GetModuleHandle curModule.ModuleName 0 DllImport user32.dll..
Are there good reasons not to use an ORM? [closed] http://stackoverflow.com/questions/194147/are-there-good-reasons-not-to-use-an-orm in the every database call should be through a stored procedure mentality. Why would an ORM make things harder to debug.. You'll get the same result whether it comes from a stored proc or from the ORM. I guess the only real detriment that I can..
How do I send ctrl+c to a process in c#? http://stackoverflow.com/questions/283128/how-do-i-send-ctrlc-to-a-process-in-c do I send ctrl c to a process in c# I'm writing a wrapper class for a command line executable... ctrl c press in c# code sending the kill command to a .Net process object. I've tried calling Process.kill but that doesn't.. but that doesn't seem to give me anything in the process's StandardOutput StreamReader. Might there be anything I'm..
Simulating Key Press c# http://stackoverflow.com/questions/3047375/simulating-key-press-c-sharp hWnd STAThread static void Main while true Process processes Process.GetProcessesByName iexplore foreach Process proc.. Process.GetProcessesByName iexplore foreach Process proc in processes SetForegroundWindow proc.MainWindowHandle SendKeys.SendWait.. iexplore foreach Process proc in processes SetForegroundWindow proc.MainWindowHandle SendKeys.SendWait..
C# Service cannot execute batch file? http://stackoverflow.com/questions/361097/c-sharp-service-cannot-execute-batch-file to launch the batch file is System.Diagnostics.Process proc new System.Diagnostics.Process Declare New Process proc.StartInfo.FileName.. proc new System.Diagnostics.Process Declare New Process proc.StartInfo.FileName fileName proc.StartInfo.WindowStyle System.Diagnostics.ProcessWindowStyle.Hidden.. Declare New Process proc.StartInfo.FileName fileName proc.StartInfo.WindowStyle System.Diagnostics.ProcessWindowStyle.Hidden..
Using Process.Start() to start a process as a different user from within a Windows Service http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo Process.Start to start a process as a different user from within a Windows Service I'd like.. service running with logic to decide what the target process is and when to run it. The target process is started in the.. what the target process is and when to run it. The target process is started in the following manner The Windows Service is..
Redirect console output to textbox in separate program C# http://stackoverflow.com/questions/415620/redirect-console-output-to-textbox-in-separate-program-c-sharp This works for me void RunWithRedirect string cmdPath var proc new Process proc.StartInfo.FileName cmdPath set up output redirection.. void RunWithRedirect string cmdPath var proc new Process proc.StartInfo.FileName cmdPath set up output redirection proc.StartInfo.RedirectStandardOutput.. proc.StartInfo.FileName cmdPath set up output redirection proc.StartInfo.RedirectStandardOutput true proc.StartInfo.RedirectStandardError..
Process.start: how to get the output? http://stackoverflow.com/questions/4291912/process-start-how-to-get-the-output to show a progress bar with time elapsed c# .net mono process.start share improve this question When you create your.. create your Process object set StartInfo appropriately var proc new Process StartInfo new ProcessStartInfo FileName program.exe.. true CreateNoWindow true then start the process and read from it proc.Start while proc.StandardOutput.EndOfStream..
Different ways of passing sqlCommand parameters http://stackoverflow.com/questions/4624811/different-ways-of-passing-sqlcommand-parameters sure. And if your length doesn't match what the stored proc really expects you might see conversion and other unpleasant..
Does Entity Framework Code First support stored procedures? http://stackoverflow.com/questions/4845246/does-entity-framework-code-first-support-stored-procedures Entity Framework Code First support stored procedures I've watched several presentations of EF Code First and.. EF Code First and haven't seen how EFCF works with stored procedures. How can I declare a method that will use some sp Can.. to support them in future c# entity framework stored procedures code first share improve this question @gsharp and..
How to pass table value parameters to stored procedure from .net code http://stackoverflow.com/questions/5595353/how-to-pass-table-value-parameters-to-stored-procedure-from-net-code to pass table value parameters to stored procedure from .net code I have an MS SQL Server 2005 database... .net code I have an MS SQL Server 2005 database. In a few procedures I have table parameters that I pass to a stored proc as.. procedures I have table parameters that I pass to a stored proc as an nvarchar separated by commas and internally divide into..
64 bit C# with a 32 bit VB6 COM object http://stackoverflow.com/questions/611651/64-bit-c-sharp-with-a-32-bit-vb6-com-object bit C# with a 32 bit VB6 COM object I have a 32 bit in proc STA VB6 dll. I sadly cannot do anything about this. My C# component.. to call interface with this 32 bit dll from my 64 bit process Any sort of wrapper or anything c# com vb6 interop share.. direct way you can do this. Since you can't port the VB6 inproc dll I'd suggest you write a 32bit out of process server that..
How to get memory available or used in C# http://stackoverflow.com/questions/750574/how-to-get-memory-available-or-used-in-c-sharp share improve this question You can use Process proc Process.GetCurrentProcess To get the current process and use.. Process proc Process.GetCurrentProcess To get the current process and use proc.PrivateMemorySize64 To get the private memory.. To get the current process and use proc.PrivateMemorySize64 To get the private memory usage. For more..
Get a screenshot of a specific application [duplicate] http://stackoverflow.com/questions/891345/get-a-screenshot-of-a-specific-application to get you started public void CaptureApplication string procName var proc Process.GetProcessesByName procName 0 var rect.. started public void CaptureApplication string procName var proc Process.GetProcessesByName procName 0 var rect new User32.Rect.. string procName var proc Process.GetProcessesByName procName 0 var rect new User32.Rect User32.GetWindowRect proc.MainWindowHandle..
|