Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:25:50+00:00 2026-06-11T07:25:50+00:00

I try to create an app that allows the user to register himself for

  • 0

I try to create an app that allows the user to register himself for my service.
The problem is that it is very important that i can limit each user to a very single account
i figured out I could probably do this with the Phone unique id and the windows live id
i also figured out how to get These within the app , but now my problem is how to get them to me!
Can anyone help me on how to send the phone id with the desired username to my email address ?
Thank you

EDIT

I use this code to get the needed values

public static class ExtendedPropertyHelper  
{  
    private static readonly int ANIDLength = 32;  
    private static readonly int ANIDOffset = 2;  
    public static string GetManufacturer()  
    {  
        string result = string.Empty;  
        object manufacturer;  
        if (DeviceExtendedProperties.TryGetValue("DeviceManufacturer", out manufacturer))  
            result = manufacturer.ToString();  

        return result;  
    }  

    //Note: to get a result requires ID_CAP_IDENTITY_DEVICE  
    // to be added to the capabilities of the WMAppManifest  
    // this will then warn users in marketplace  
    public static byte[] GetDeviceUniqueID()  
    {  
        byte[] result = null;  
        object uniqueId;  
        if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))  
            result = (byte[])uniqueId;  

        return result;  
    }  

    // NOTE: to get a result requires ID_CAP_IDENTITY_USER  
    //  to be added to the capabilities of the WMAppManifest  
    // this will then warn users in marketplace  
    public static string GetWindowsLiveAnonymousID()  
    {  
        string result = string.Empty;  
        object anid;  
        if (UserExtendedProperties.TryGetValue("ANID", out anid))  
        {  
            if (anid != null && anid.ToString().Length >= (ANIDLength + ANIDOffset))  
            {  
                result = anid.ToString().Substring(ANIDOffset, ANIDLength);  
            }  
        }  

        return result;  
    }  
}  

Now i need to store thes in variables ( what i cant really get to work ) and then send them to my php script which extracts them

in addition to this i need to ask the user to enter his email address and include this in the POST too ,
can you help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:25:52+00:00Added an answer on June 11, 2026 at 7:25 am

    You can get DeviceExtendedProperties.DeviceUniqueId from Microsoft.Phone.Info namespace.
    Don’t forget to declare in WMAppManifest.xml

    like this:

    <Capabilities>
      <Capability Name="ID_CAP_IDENTITY_DEVICE"/>
      <Capability Name="ID_CAP_IDENTITY_USER"/>
    </Capabilities>
    

    Link to msdn here

    Then, you can send this id to your e-mail:

    var emailComposeTask = new EmailComposeTask
    {
        To = "your-email@domiain.com",
        Subject = "Test Message using EmailComposeTask",
        Body = deviceId
    };
    emailComposeTask.Show();
    

    But this will open an-email client, and I don’t thik that user will be so kind to send you an email. So, you’d better send a POST request to your server

         private void Button_Click(object sender, RoutedEventArgs e)
        {
            //collect all data you need:
            var deviceId = Convert.ToBase64String(ExtendedPropertyHelper.GetDeviceUniqueID());
            var userName = ExtendedPropertyHelper.GetWindowsLiveAnonymousID();
            var manufatcurer = ExtendedPropertyHelper.GetManufacturer();
            //create request string
            //[see the explanation on MSDN][2]
            var requestUrl = string
      .Format("http://myPageUrlAddress.com/script.aspx?deviceid={0}&user={1}&manufacturer={2}",
       deviceId, userName, manufatcurer);
    
    
            System.Uri myUri = new System.Uri(requestUrl);
            //create a request instance
            HttpWebRequest myRequest = (HttpWebRequest)HttpWebRequest.Create(myUri);
            myRequest.Method = "POST";
            myRequest.ContentType = "application/x-www-form-urlencoded";
            //and it will be sent. 
            //Also you need to create GetRequestStreamCallback method to 
            //handle server responce.
            myRequest.BeginGetRequestStream(new
            AsyncCallback(GetRequestStreamCallback), myRequest);
        }
        //this method is empty. You can show tha dialog box about successful sending.
        public void GetRequestStreamCallback(IAsyncResult result) { ; }
    

    What about e-mail – just create a TextBox on the same Page, and save user input to a variable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to create a very simple app using windows API. I've done some
I've create an app with a button that allows airplane mode to be toggled
Here's the scoop: I've created a test app that allows users to create ideas
I'm trying to build an URL-alias app which allows the user create aliases for
I have an app that allows a user to record a video with UIImagePickerController
I'm currently working on an app that allows the user to play (automatically scroll)
I have a Java Google App Engine web application that allows user upload of
The Story: I am making an Android app that allows a user to purchase
I try to create a simple heroku app which clones a git repository, invokes
I try to create 2 buttons inside my app case WM_CREATE:{ hWnd =CreateWindowEx(NULL, LBUTTON,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.