windows-8

Get the local login name for the given Microsoft Account returned by NetWkstaUserEnum API on Windows 8 and above

为君一笑 提交于 2019-12-12 03:32:34
问题 I am using NetWkstaUserEnum() to get the local users name and its domain details. Till Windows 7 it used to return only the login name and it worked fine. From Windows 8 onwards Microsoft Account was added and for this type of account the API started returning the Microsoft Account name instead of the local login name. For example it returned username@outlook.com instead of usern_0000 which is the actual Windows local login name. I cannot use NetUserEnum() as it does not return the domain

WinRT library not working in Release mode

浪尽此生 提交于 2019-12-12 03:06:33
问题 I've have been trying to build a desktop application using WinRT libraries in Visual Studio 2012. The code snippet goes as follows. [STAThread] int wmain (Platform :: Array <String ^> ^ args) { wcout << L"Copyright (c) Microsoft Corporation. All rights reserved." << endl; wcout << L"FindPackages sample" << endl << endl; try { auto packageManager = ref new Windows::Management::Deployment::PackageManager(); auto packages = packageManager->FindPackages(); int packageCount = 0; std::for_each

Sorting data in ListView

送分小仙女□ 提交于 2019-12-12 02:58:28
问题 I have a ListView in my XAML: <ListView Margin="10" Name="lvDataBinding"></ListView> In the code I have User class: public class User { public string Name { get; set; } public int Age { get; set; } public override string ToString { return this.Name + ", " + this.Age + " years old"; } } and code that binds the collection of Users to ListView: List<User> items = new List<User>(); items.Add(new User() { Name = "John Doe", Age = 42 }); items.Add(new User() { Name = "Jane Doe", Age = 39 }); items

Button image not visible

北城以北 提交于 2019-12-12 02:57:22
问题 I'm trying to create a Windows 8.1 store app, and I need to add a button to it. The button should display an image. I add the image to the assembly in Solution Exploreras Artwork/Pencil.png I add the button to the UI Using the property editor for the button, I select Foreground image. The designer shows a list of available images from the assembly, I choose the image. The designer shows the selected image (partially). The button remains blank. I tryied playing around with different content

Common Login for multiple WinRT apps

萝らか妹 提交于 2019-12-12 02:31:58
问题 I have two WinRT apps which request same Login service for a session. There is a global HttpClient(along with a cookiecontainer) in each of the apps which saves the cookie for further requests. Currently if a user logs into app A and opens App B, the user has to login again(Even if the session has not timed out). I do not want the user to login again if he has logged into one app. How can I achieve this? How can I share this HttpClient object across apps? Edit: Sessions are being maintained

How to get currently running applications in windows 8 programmatically?

半腔热情 提交于 2019-12-12 02:19:33
问题 I want to create an app for Listing currently running applications in windows 8 using vsExpress 2012 (Windows store C#) I tried to get using System.Diagnostics.Process , but in windows 8 its not supporting "Process" class, if anybody knows, share it . 回答1: Process is available with Windows 8, but not with Windows RT. Are you developing a store application (Windows RT)? If so, there's no way to get the information you want (security!). 回答2: Is there is a way by using System.Threading.task (or)

How do you fix a program from freezing when you move the window in SDL2?

僤鯓⒐⒋嵵緔 提交于 2019-12-12 01:53:10
问题 I'm making a small game with a friend and one problem is that when you drag the window around, it freezes and the program completely stops until you let go. I searched for a simple solution but I only found out that it happens with everything. Also, it screws up the delta time since it acts like a really long frame. Is there any way to either simply have the program continue running while you move it or if that's too complicated, fix the delta time? Thanks? 回答1: Your application is most

Is “Assigned Access” [Windows 8.1 feature] possible in Windows 8 app?

点点圈 提交于 2019-12-12 01:51:26
问题 I want to create an app which will be deployed on tablets as a kiosk in a mall. I searched around for creating app with some restriction like it will be always open, only authenticated uses can close with swipe gesture or Alt+F4. I got one solution but it's related to Win 8.1 and I can't wait till that. So what I want is the app will be always on. Normal users will use the app, they can't close it. App can be close by only authenticated users with password. Anybody have any ideas to do these

Windows Store App and iFrame cookie

蓝咒 提交于 2019-12-12 01:44:11
问题 I have a Javascript Windows Store Application that hosts an iframe. The webpage inside of my iframe is not aware of my app, so it doesn't have any PostMessage interface to my app. The iframe will set a cookie when I 'log in' in the iframe. But in my app, I don't believe that there is a way that I can get the iframe cookie. Is this correct? What if the web page knows about my application? (i.e. I can change the webpage in the iframe) Do I use PostMessage? 回答1: You can use PostMessage that your