Desktop Functions: Smart Device Functions:
|
Search Results for "GetCurrentProcess" in [All]user32
AllowSetForegroundWindow(System.Diagnostics.Process.GetCurrentProcess().Id)
IntPtr hInstance = Process.GetCurrentProcess().Handle;
return GetGuiResources(Process.GetCurrentProcess().Handle, 0);
return GetGuiResources(Process.GetCurrentProcess().Handle, 1); 4: IsIconic
Process[] p = Process.GetProcessesByName( Process.GetCurrentProcess().ProcessName , Environment.MachineName );
Process thisProcess = Process.GetCurrentProcess();
using (Process process = Process.GetCurrentProcess()) SetWindowText(Process.GetCurrentProcess().MainWindowHandle, "Amazing!"); 7: ShowWindow
IntPtr handle = Process.GetCurrentProcess( ).MainWindowHandle;
IntPtr handle = Process.GetCurrentProcess( ).MainWindowHandle;
Process procCurrent = Process.GetCurrentProcess(); psapi10: EmptyWorkingSet
Dim Proc As Process = Process.GetCurrentProcess()
Call EmptyWorkingSet(Process.GetCurrentProcess().Handle)
private static extern IntPtr GetCurrentProcess();
IntPtr currentProcessHandle = GetCurrentProcess(); kernel32
Dim proc As Process = Process.GetCurrentProcess()
return GetParentProcess(Process.GetCurrentProcess().Id);
public static extern int GetCurrentProcessorNumber();
Declare Function GetCurrentProcessorNumber Lib "kernel32.dll" (TODO) As TODO
static extern uint GetCurrentProcessId();
Declare Function GetCurrentProcessId Lib "kernel32" () As Integer
public static extern uint GetCurrentProcessId();
uint MyID = FindMyself.GetCurrentProcessId();
Process.GetCurrentProcess().Id Another way: Process.GetCurrentProcess().MainModule.FileName GetProcessHandleCount(Process.GetCurrentProcess().Handle, ref handles);
if (GetProcessIoCounters(Process.GetCurrentProcess().Handle, out info) == false) 19: IsProcessInJob public static extern IntPtr GetCurrentProcess();
AssignProcessToJobObject(Job, GetCurrentProcess());
IsProcessInJob (GetCurrentProcess (), Job, out Is);
IsProcessInJob (GetCurrentProcess (), IntPtr.Zero, out Is); 20: IsWow64Process There is no need to call CloseProcess or to use a SafeHandle if you get the handle using GetCurrentProcess as it returns a pseudohandle.
SafeProcessHandle processHandle = GetProcessHandle((uint)System.Diagnostics.Process.GetCurrentProcess().Id);
'Dim processHandle As Long = GetProcessHandle(System.Diagnostics.Process.GetCurrentProcess().Id)
If IsWow64Process(GetCurrentProcess(), retVal) Then 21: Module32First
int procIDDDDDDDDDDDDD = Process.GetCurrentProcess().Id; 22: Module32Next
int procIDDDDDDDDDDDDD = Process.GetCurrentProcess().Id; int sessionId = System.Diagnostics.Process.GetCurrentProcess().SessionId; 24: SetPriorityClass
SetPriorityClass(Process.GetCurrentProcess.Handle, PriorityClass.PROCESS_MODE_BACKGROUND_BEGIN)
IntPtr handle = Process.GetCurrentProcess().Handle;
SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1) ;
SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1) 27: VirtualQuery
int result = VirtualQueryEx(System.Diagnostics.Process.GetCurrentProcess().Handle, (IntPtr)address, out m, (uint)Marshal.SizeOf(typeof(MEMORY_BASIC_INFORMATION))); 28: VirtualQueryEx
int result = VirtualQueryEx(System.Diagnostics.Process.GetCurrentProcess().Handle, (IntPtr)address, out m, (uint)Marshal.SizeOf(typeof(MEMORY_BASIC_INFORMATION))); Constants
IntPtr pId = (Process.GetCurrentProcess().Handle); advapi32
internal static extern IntPtr GetCurrentProcess();
IntPtr hproc = GetCurrentProcess();
var currentProcess = NativeMethods.GetCurrentProcess();
internal static extern IntPtr GetCurrentProcess();
Dim hProc As IntPtr = Process.GetCurrentProcess().Handle ntdll
IntPtr hProc = OpenProcess(0x001F0FFF, false, Process.GetCurrentProcess().Id);
IntPtr hProc = OpenProcess((ProcessAccessFlags)0x001F0FFF, false, Process.GetCurrentProcess().Id); coredll32: TerminateProcess Obviously, you need a Process ID to kill. If you want to kill yourself (kill the current process), you'll need GetCurrentProcessId, but as GetCurrentProcessId() is an *inline* function defined in kfuncs.h in Microsoft's "Windows CE Tools" SDK, you can't call it with PInvoke. Use OpenNETCF's implementation, or read the function's inline definition from kfuncs.h and reimplement it in C#.
/* GetCurrentProcessId() and constants translated from kfuncs.h (SmartPhone2003) to C# */
IntPtr GetCurrentProcessId()
TerminateProcess(GetCurrentProcessId(), (IntPtr)0); dbghelp
static extern IntPtr GetCurrentProcess();
static extern uint GetCurrentProcessId();
MiniDumpWriteDump( GetCurrentProcess(), GetCurrentProcessId(), file.SafeFileHandle.DangerousGetHandle(), MiniDumpWithFullMemory, ref info, IntPtr.Zero, IntPtr.Zero ); ole32 |