Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Wednesday, May 29, 2013

Privacy Policy in Charm Bar: the easiest way

When you make a Windows Store App, if it uses any Network connection, you have to specify your Privacy Settings in both Store page and Charm Bar.

But how to do it? What's the simplest way?

So, here's the answers.

Do the following in your App.xaml.cs:

1) Add the namespaces
using Windows.UI.ApplicationSettings;
using Windows.UI.Popups;


2) Add the handler during app initialization (into OnLaunched())
SettingsPane.GetForCurrentView().CommandsRequested += SettingCharmManager_CommandsRequested;


3) Add my handler that shows the privacy text
private void SettingCharmManager_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{

    args.Request.ApplicationCommands.Add(new SettingsCommand("privacypolicy", "Privacy policy", OpenPrivacyPolicy));

}

4) Add OpenPrivacyPolicy method
private async void OpenPrivacyPolicy(IUICommand command)

{

    Uri uri = new Uri("http://my_website/my_privacy.html");
    await Windows.System.Launcher.LaunchUriAsync(uri);

}


Tuesday, May 14, 2013

Free technical e-book on the Microsoft platform


While a lot of information on application development is available on the internet and in books, that information is becoming harder to digest. If you do not enjoy reading several 500+ page books, or scouring the web for relevant blog posts and articles, you have come to the right place.
Syncfusion publishes the Succinctly series concise technical books that target developers working on the Microsoft platform. Each book is around 100 pages and is guaranteed to enlighten you on the topic of interest. Download a copy, get a cup of your favorite beverage, and enjoy!

Monday, February 8, 2010

Create a link from command prompt

To create a link to a file or a folder we generally use the GUI. For particular issues (script, batch files) is possible to use shell commands.

Commands are:

mklink "Link Name" c:\Folder\SubFolder\filename.txt

or

mklink "Link Name" c:\Folder\SubFolder


These commands create a link called "Link Name" that refers to the specified folder or file.

Warning: the link will be created in the folder where the command runs.

Tuesday, January 5, 2010

Windows 7 God Mode

Windows 7 (and also Windows Vista) has an hidden mode called "God Mode". With a small trick is possible to have access to an "Extended Control Panel" with a lot of functions.

I'm speaking about all the personalisation that Microsoft use for their Operating sistems. So, no filters!

The procedure is simple: just create a new folder on the desktop and rename it in:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

At this point a shortcut icon should appears. This icon opens a Grafical Interface for the "God Mode". There is an issue: this trick may not work properly with 64 bit os versions.

Thursday, May 14, 2009

Windows Server 2008 and Shared Folders

Working with shared folders on Windows Server 2008 operating system server, there could be some problems:

The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you.

To work around this problem, make sure that client computers use the cryptography algorithms that are compatible with Windows Server 2008. You may have to request software updates from the product vendors.

If you cannot install software updates because a service outage will occur, follow these steps:

1.       Log on to a Windows Server 2008-based domain controller.

2.       Click Start, click Run, type gpmc.msc, and then click OK.

3.       In the Group Policy Management console, expand Forest: DomainName, expand DomainName, expand Domain Controllers, right-click Default Domain Controllers Policy, and then click Edit.

4.       In the Group Policy Management Editor console, expand Computer Configuration, expand Policies, expand Administrative Templates, expand System, click Net Logon, and then double-click Allow cryptography algorithms compatible with Windows NT 4.0.

5.       In the Properties dialog box, click the Enabled option, and then click OK.

Notes

o        By default, the Not Configured option is set for the Allow cryptography algorithms compatible with Windows NT 4.0 policy in the following Group Policy objects (GPO):

§         Default Domain Policy

§         Default Domain Controllers Policy

§         Local Computer Policy

By default, the behavior for the Allow cryptography algorithms compatible with Windows NT 4.0 policy on Windows Server 2008-based domain controllers is to programmatically prevent connections from using cryptography algorithms that are used in Windows NT 4.0. Therefore, tools that enumerate effective policy settings on a member computer or on a domain controller will not detect the Allow cryptography algorithms compatible with Windows NT 4.0 policy unless you explicitly enable or disable the policy.

o        Windows 2000 Server-based domain controllers and Windows Server 2003-based domain controllers do not have the Allow cryptography algorithms compatible with Windows NT 4.0 policy. Therefore, pre-Windows Server 2008-based domain controllers accept security channel requests from client computers even if the client computers use the old cryptography algorithms that are used in Windows NT 4.0. If security channel requests are intermittently processed by Windows Server 2008-based domain controllers, you will experience inconsistent results.

6.       Install third-party software updates that fix the problem, or remove client computers that use incompatible cryptography algorithms.

7.       Repeat steps 1 through 4.

8.       In the Properties dialog box, click the Disabled option, and then click OK.

Important For security reasons, you should set the option for this policy back to Disabled.