windows-10

Windows Shell Functions

↘锁芯ラ 提交于 2019-12-24 06:24:05
问题 So I was following this tutorial: https://msdn.microsoft.com/en-us/library/windows/desktop/hh127427(v=vs.85).aspx when I cam across the sentence that casually says "Call the SHChangeNotify function". How do I do this? It is not recognized by powershell. Do I have to import some library in c++ and call it from a c++ program? I am on windows 10. 回答1: I used the following to call a refresh on the desktop from powershell by using C# code: $code = @' [System.Runtime.InteropServices.DllImport(

DPI aware screen capture

时光怂恿深爱的人放手 提交于 2019-12-24 05:54:13
问题 I used AutoIt's _ScreenCapture_Capture() before without any trouble. But on Windows 10 with a 4k resolution screen I'm using DPI scaling at 200%. _ScreenCapture_capture() now gets something 2x zoomed in and half the location I asked for. For instance : _ScreenCapture_Capture("c:\a.bmp", 100, 100, 200, 200) ; Path, X1, Y1, X2, Y2 Does not return a 100x100 pixel square of the screen (at 100,100 to 200,200 ). It returns a 100x100 pixel square (at 50,50 to 100,100 ) instead. I did find a solution

Win 10 virtual desktop

匆匆过客 提交于 2019-12-24 05:35:18
问题 There are a lot of questions about virtual desktop feature in Win 10, but the answers are not satisfying. When I develop a Windows 10 App with UWP, c# and XAML I can't find a way to use this feature. What I like to achieve is the same behaviour that a typical Win 10 App shows, let's say: like Edge. If you open Edge on virtual desktop A, switch to desktop B and start Edge from there, it automagically switches back to desktop A and shows the Edge window. How can this be done with: VS 2015, UWP

Autohotkey: Remap Win key - when pressed alone

﹥>﹥吖頭↗ 提交于 2019-12-24 04:19:11
问题 Because of an insane laptop keyboard layout and the inability to map Fn-combinations I want to do a few remappings. I would like to use the LWin key as modifier (such as LWin+Right ==> End, etc.). It works just fine. However, I want to stop LWin, when pressed and released alone, to bring up the Windows menu (b/c I sometimes press the modifier but then decide not to complete the action) and I still want to be able to access the Windows menu fairly easily, say via LAlt+LWin. (Obviously LWin

How to use windows 10 Parental control APIs?

自古美人都是妖i 提交于 2019-12-24 03:42:39
问题 I am trying to use windows 10 parental control APIs for an application. So, have seen MSDN documentation for the APIs here And also have seen a thread similar to this here on SO. But it does not give me what I need, which is to be able to set up parental control on an account programmatically in my application. I tried looking for code samples in the official documentation like it was suggested in the link above but I could not find any code sample to refer to on this specific topic in the

Accessing COM-port with Windows 10

白昼怎懂夜的黑 提交于 2019-12-24 02:57:19
问题 I have some stupid code to access a Windows COM-port (just some pseudo-code of the most relevant functions): // open device: COMMTIMEOUTS timeouts; DCB ComSettings; memset(&ComSettings,0,sizeof(ComSettings)); ComSettings.DCBlength=sizeof(DCB); *fd=CreateFile(serialParams>port,GENERIC_READ|GENERIC_WRITE,0,0,OPEN_EXISTING,0,0); GetCommState(*fd,&ComSettings); ComSettings.BaudRate=9600; ComSettings.ByteSize=8; ComSettings.Parity=NOPARITY; ComSettings.fParity=0; ComSettings.StopBits=ONESTOPBIT;

How to remove white touch dot on windows 10

ⅰ亾dé卋堺 提交于 2019-12-24 02:02:47
问题 I am creating a kiosk like application for a Windows 10 PC with a touch screen as only interface for input. What I want to remove, is the white touch dot which is displayed as visual touch feedback (mostly together with a circle which can be turned off). Has anyone an idea how to do this. I have already searched the registry if there was a cursor (*.cur) file which is used but did not find any results. Due to that I guess that the touch feedback is displayed differently. Just to make sure - I

How to remove white touch dot on windows 10

こ雲淡風輕ζ 提交于 2019-12-24 02:02:29
问题 I am creating a kiosk like application for a Windows 10 PC with a touch screen as only interface for input. What I want to remove, is the white touch dot which is displayed as visual touch feedback (mostly together with a circle which can be turned off). Has anyone an idea how to do this. I have already searched the registry if there was a cursor (*.cur) file which is used but did not find any results. Due to that I guess that the touch feedback is displayed differently. Just to make sure - I

DirectShow (Stream.h) for Windows 10 Development

大城市里の小女人 提交于 2019-12-24 01:24:19
问题 I just noticed that streams.h is missing, while I was compiling DSVideoLib on my machine. A quick research pointed me to the Windows SDK. https://msdn.microsoft.com/en-us/library/windows/desktop/dd407279(v=vs.85).aspx Well after installing the windows sdk again, I still cannot find those files and folders in my windows sdk folder. Does anybody have an idea where to get the DirectShow library on windows 10? 回答1: Streams.h and and other BaseClasses directory files can be found in Windows SDK 7

Can't execute Ruby file using Powershell

↘锁芯ラ 提交于 2019-12-24 01:14:24
问题 I want to execute a ruby file using windows 10 powershell. In my powershell terminal, when I type ruby test.rb I receive ruby: The term 'ruby' is not recognized as the name of the cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + ruby test.rb +Category Info :ObjectNotFound: (ruby:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException