|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Current Program's Process IDHi all,
How would I go about detecting the current applications Process ID? I know I could do this by checking the EXE against the process list and getting the ID, however I can't guarantee that there won't be another process that isn't running with the exact same name. So I need another way to get the Process ID. Thanks in advance, Steve Hello Steven,
GetCurrentProcess to get Process instance and then call Process.ID SN> Hi all, SN> SN> How would I go about detecting the current applications Process ID? SN> I know I could do this by checking the EXE against the process list SN> and SN> getting the ID, however I can't guarantee that there won't be SN> another SN> process that isn't running with the exact same name. So I need SN> another SN> way to get the Process ID. SN> Thanks in advance, SN> Steve --- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour "At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche
Other interesting topics
Effective strategy for using VSS in a development team?
Getting Event of Lock Windows OS Application Idle - Good or bad practice? Why won't you give me your scrollbars?! I hate you, TreeView! C++ class in DLL to be imported to C# How to: Access the Managed HTML Document Object Model Getting text box value on key press? Visual C# FileIO and Environment Permission How select from 2 ADO.NET DataTables? PP: Orphan Assemblies List |
|||||||||||||||||||||||