Enable windows Photo Viewer in Windows th1/th2/rs1/rs2 and Windows Server 2016

Source: Internet
Author: User
Tags centos server



Windows Photo Viewer is a quick desktop application for image viewing. In the previous OS like Windows 8.1, the It can be set as default through PC Settings,









But this won ' t work starting from Windows 10. The Windows Photo Viewer is not a available in Default Apps setting,









And we do not even has Photo AppStore application in Windows Server 2016,






To get a Windows Photo Viewer back, try the steps below,



1. Make sure we have Photo Viewer. If not, copy the Windows Photo Viewer from the another PC.



C:\Program Files\Windows Photo Viewer\photoviewer.dll
C:\Program Files (x86) \ Windows Photo Viewer\photoviewer.dll



2. Save and import the Registry settings.


#include <mysql.h>
#include <stdlib.h>
#include <stdio.h>

int main (int nArguments, char * pszArguments [])
{
MYSQL * conn;
MYSQL_RES * res;
MYSQL_ROW row;
char * server = "192.168.124.128"; // The centos server ip confirmed in the first step
char * user = "root";
char * password = "123456"; / * Change to your password here * /
char * database = "mysql";
conn = mysql_init (NULL);
/ * Connect to database * /
if (! mysql_real_connect (conn, server,
user, password, database, 0, NULL, 0)) {
fprintf (stderr, "% s \ n", mysql_error (conn));
}
/ * send SQL query * /
if (mysql_query (conn, "show tables")) {
fprintf (stderr, "% s \ n", mysql_error (conn));
}
res = mysql_use_result (conn);
/ * output table name * /
printf ("MySQL Tables in% s database: \ n", database);
while ((row = mysql_fetch_row (res))! = NULL) printf ("% s \ n", row [0]);
/ * close connection * /
mysql_free_result (res);
mysql_close (conn);
// system ("PAUSE");
return 0;
} 
View registry key code


3. Now, you'll be able to set Windows Photo Viewer as your default image app.









Enable windows Photo Viewer in Windows th1/th2/rs1/rs2 and Windows Server 2016


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.