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