Solved

c# app id

Posted on 2014-01-07
3
408 Views
Last Modified: 2014-01-07
Hi Experts,

I'm trying to find the c# app id that my application will get, can't find it.   Where is it?

I need it to plug into windows to configure a certificate for HTTPS to get HttpListener working.

Thanks,
Mike
0
Comment
Question by:thready
3 Comments
 
LVL 9

Accepted Solution

by:
s_chilkury earned 500 total points
ID: 39763211
Use System.Reflection to get the same.

stackoverflow.com/questions/502303/how-do-i-programmatically-get-the-guid-of-an-application-in-net2-0

And another way is ApplicationSecurityInfo class :

http://msdn.microsoft.com/en-us/library/system.applicationid.aspx
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39763293
If you are talking about process ID you may use the following code:

        private void button9_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process pro = System.Diagnostics.Process.GetCurrentProcess();

            MessageBox.Show(pro.Id.ToString() + " / " + pro.ProcessName + " / " +pro.ToString());
        }

Open in new window

0
 
LVL 1

Author Closing Comment

by:thready
ID: 39763516
Thank you! :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question