windows-10

How is it possible to understand which process deletes a file on the hard drive

别说谁变了你拦得住时间么 提交于 2019-12-01 01:30:13
问题 I have the following problem. I develop an application that keeps the settings in preference files. At some point in time, one of these files is being deleted. This file can not be deleted from my application. How is it possible to understand which process deletes a file on the hard drive under Windows? EDIT: The problem appears rarely. I'm looking for a program that can run as a service or something else so I can do a patch for the application which to monitor in runtime if someone deletes

Maximize UWP app window on launch

本小妞迷上赌 提交于 2019-12-01 00:59:12
问题 Is there a way (either C# or XAML) I can maximize a UWP app window even after I resized and closed it previously on desktop? I have tried with ApplicationViewWindowingMode.FullScreen but this makes the app go entire full screen and covers the Widnows Taskbar too. 回答1: You can use another value PreferredLaunchViewSize from ApplicationViewWindowingMode and then set ApplicationView.PreferredLaunchViewSize but the key is to find out what the size is going to be. Theoretically, you could use a

Can't build UWP in release mode

一曲冷凌霜 提交于 2019-12-01 00:45:53
I have a project that is working well in debug mode, but not working at all in release mode. The solution contains 3 projects Shared project windows phone 8.1 project UWP project here is the error output 2>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(887,5): error : System.InvalidOperationException: Unable to generate a temporary class (result=1). 2>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(887,5): error : error CS0012: The type 'Windows.UI.Xaml.Visibility' is defined in an assembly that is not referenced. You must add

Unable to launch Visual Studio 2015 as a different user

风格不统一 提交于 2019-12-01 00:21:28
问题 In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening another Visual Studio window as my admin account whenever I need to do admin stuff. Both users is members of the local administrator group. About a month ago this stopped working resulting in the below dialog instead of launching Visual Studio. Both option does nothing - no Visual Studio launches.

Just installed Windows 10 and Eclipse no more starts

邮差的信 提交于 2019-12-01 00:03:41
问题 I just upgraded from Windows 8 to Windows 10 (both 64-bit) and my previous Eclipse Juno with ADT-plugin for Android development is no longer starting. All I can see is the mouse pointer showing that something is loading for a few seconds and then nothing else happens. What I tried renamed eclipse.ini to let it recreate it: did not even recreate it, so renamed it back. turned on "Windows 8" compatibility on Eclipse exe. No changes. tried to look at workspaceDir/.metadata/.log . No entries

How to disable Winscard Discovery in Windows 10?

情到浓时终转凉″ 提交于 2019-11-30 23:34:43
I'm testing smart cards using ACR122U. However, when I put a card on it, Windows will automatically send APDU commands to it. According to the question windows 8 disable smartcard plug and play , I disabled Smart Card Plug And Play. But I can still see the PIV selection which is called Winscard Discovery . How can I disable this in Windows 10? You have 3 solutions 1) Edit computer policies Launch gpedit.msc Section Computer Configuration --> Administrative Templates --> Windows Components --> Smart Card Disable Smartcard driver popup: Smart Card Plug and Play service: disable Disable smartcard

Why does GetFileVersionInfo on kernel32.dll in Windows 10 return version 6.2?

感情迁移 提交于 2019-11-30 22:53:08
I am trying to retrieve kernel32.dll version in order to perform a Windows version check. Yet, for some reason, even though kernel32.dll 's version (as seen in file properties) is 10.0.10586.0, the returned version is: 6.2.10586.0 how come? DWORD dwDummy; DWORD dwFVISize = GetFileVersionInfoSize(lpszFilePath, &dwDummy); LPBYTE lpVersionInfo = new BYTE[dwFVISize]; if (GetFileVersionInfo(lpszFilePath, 0, dwFVISize, lpVersionInfo) == 0) { return FALSE; } UINT uLen; VS_FIXEDFILEINFO *lpFfi; BOOL bVer = VerQueryValue(lpVersionInfo, L"\\", (LPVOID *)&lpFfi, &uLen); if (!bVer || uLen == 0) { return

Compile fortran module with f2py and Python 3.6 on Windows 10

痞子三分冷 提交于 2019-11-30 22:29:10
I'm trying (and failing) to compile a fortran module (specifically igrf12.f from the BGS) using f2py and Python 3.6 on Windows 10. Python was installed using Anaconda 4.4.10. My setup: Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32 Windows 10 Enterprise (version 1703) NumPy 1.14.0 I followed f2py directions from the SciPy documentation and a very helpful guide from Dr.Michael Hirsch. Dr.Hirsch has created the pyigrf12 module, but installation through pip failed for me, which is what initially sparked my interest in f2py. I will

Universal Apps template missing in Visual Studio 2015 Community

依然范特西╮ 提交于 2019-11-30 22:17:35
I still cannot create a new Universal App in Visual Studio 2015 Community I have installed. I thought the reason was I was running Windows 8.1. Today I upgraded to Windows 10, but there is no "Universal Apps" templates available. I have installed Windows 10 SDK but nothing changed. How can I fix that? Thank you. You need to install the Windows 10 Developer Tools (select modify and select the Win10 tools + Emulator if wanted). After this you see the template in New Project. PreshOnyee As of March 2016, the VS development tools including the ones for cross platform development with Xamarin ,

Blank WPF child windows on Windows 10

戏子无情 提交于 2019-11-30 22:00:35
I have Windows 10 upgraded from Windows 8.1 (64 bit). In WPF applications (developed by me or by others, like todotxt.net on the screenshots) child windows are blank most of the time. If I move a mouse over the controls, some of them appear (I guess because they handle WM_MOUSEHOVER message to repaint themselves). Sometimes windows are OK (~10-20% of launches). I have temporarily fixed the issue by hiding and showing the controls ( please read below ). Fresh installation of Windows 10 on Hyper-V does not reproduce the error. Has anyone faced with the similar issue? How have you solved it? Here