windows-7

Unable to install Android SDK 17 [duplicate]

喜欢而已 提交于 2019-12-06 04:59:53
This question already has answers here : Closed 7 years ago . Possible Duplicate: Android: trouble updating to Android SDK Tools, revision 7 I'm trying to install 6 new updates to the Android SDK (to version 17 from 16), I get this err msg: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -= Warning ! =- A folder failed to be moved. On Windows this typically means that a program is using that folder (for examplle Windows Exploder or your anti-virus software.) Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'C:\Program Files (x86

Windows Media Foundation using IMFTransform to decode mp4 movie frames to 2D textures

流过昼夜 提交于 2019-12-06 04:54:54
问题 I'm trying to decode an mp4 video using Windows Media Foundation classes and converting frames in to 2D textures that can be used by a DirectX shader for rendering. I've been able to read the source stream using MFCreateSourceReaderfromURL and been able to read the media type of the stream which has its major type MFMEdiaType_Video and minor type as MFVideoFormat_H264 as expected. I'm now needing to convert this format in to an RGB format that could be used to initialise a D3D11_TEXTURE2D

C# Samples for Windows Parental Controls API

試著忘記壹切 提交于 2019-12-06 04:44:46
问题 Can anyone point me to some C# samples for the Windows Parental Controls API. I want to add some functionality that will allow a user to set the duration their child can be logged on in a day. I want to do this as a F/OSS app so that others can benefit from this too. Cheers. 回答1: An application like that already exists: LimitLogin. Also you could use Limit User Logon Time (would be trivial in C#). Parental Controls WMI Provider API + ManagementClass Class Edit : To logout a user:

Backing up registry using batch

南笙酒味 提交于 2019-12-06 04:42:13
问题 I have windows 7 ultimate 32 bit and and I need a batch script that can backup the registry to a .reg file call "Registry backup" in the same directory as the batch file can any one help me find a code to do this. 回答1: Exporting the whole registry to a single .reg file is not so easy, but you can use the Reg.exe utility that is installed with Windows to export a chosen root key. Documentation for Reg.exe can be found here. For example, to save each of the valid root keys (and all sub-keys) to

.NET Framework 4.0 and drawing on Aero Glass issue

*爱你&永不变心* 提交于 2019-12-06 04:37:29
问题 In my application I have a form which I tweak by using the DWM API's method DwmExtendFrameIntoClientArea to extend the height of the Aero Glass Title Bar so that part of my form client area is drawn on the Aero frame. To achieve this effect, I also draw a black rectangle on the part of the client area which is 'over' the glass frame so that it appears transparent, as many online articles suggest. This worked pretty well under Windows Vista/Windows 7 but as I downloaded VS 2010 and used the

How to install a service on windows 7 without Visual Studio?

主宰稳场 提交于 2019-12-06 04:24:43
问题 Install a windows service: there is a util with Visual Studio: InstallUtil.exe. If I have a service MyService.exe and want to install it on a windows 7 without Visual Studio on it, how can I install it? 回答1: You can try NSSM (Non-Sucking Service Manager) for the times the "sc" doesn't work quite as expected. http://nssm.cc I had an service I built in Go not too long ago that I could not get to run under "sc", nssm worked perfectly. 回答2: One way is to use sc.exe, which is part of OS. Example:

Change h.264 quality when using SinkWriter to encode video

那年仲夏 提交于 2019-12-06 04:24:29
I am using Microsoft Media Foundation to encode a H.264 video file. I am using the SinkWriter to create the video file. The input is a buffer ( MFVideoFormat_RGB32 ) where I draw the frames and the output is a MFVideoFormat_H264 . The encoding works and it creates a video file with my frames in it. But I want to set the quality for that video file. More specifically, I want to set the CODECAPI_AVEncCommonQuality property on the H.264 encoder. In order to get a handle to the H.264 encoder, I call GetServiceForStream on the SinkWriter. Then I set the CODECAPI_AVEncCommonQuality property. The

How can I programmatically distinguish hard links from real files in Windows 7?

别说谁变了你拦得住时间么 提交于 2019-12-06 04:06:57
I have a difference between files size and used disk space (total file size is even more than disk size). I suppose because there are many hard links exist (to WinSxS components) in Windows 7/Vista. But how can I programmatically distinguish hard links from real files in Windows 7? You can't, because all files are hard links. No. Really. A file is just a hard link to a data chunk -- a listing in a directory. (Perhaps you mean symlinks? You can distinguish those...) Use the builtin methods Windows provides for calculating used space instead. EDIT: Reference (emphasis mine) The link itself is

Git config alias doesn't work anymore

梦想的初衷 提交于 2019-12-06 03:54:51
问题 I used command: git config --global alias.st status to add my first alias as suggested by post - How do I alias commands in git? Then, I found it being added to config file at: C:\Users\damodar.bashyal\.gitconfig So, i added bunch of aliases directly on the config file and all worked perfectly until today when I had to restart my computer after installing MYOB software. When i tried to use alias none worked. So, i added another alias using above command, but the file didn't get updated but

How to detect when the user switches to the Log On screen?

好久不见. 提交于 2019-12-06 03:43:41
I need to know when the user switches to the logon screen (as triggered by ctrl-alt-del) in order to circumvent a pesky bug in WPF . I want to work around this bug by reinitializing my GUI after returning from the logon screen. Currently it works, but I have to trigger it manually. I have found SystemEvents.SessionSwitch , but unfortunately this is only triggered when logging off. How can I detect when the logon screen is displayed by forming ctrl-alt-del? The tricky thing is that this is not a session change, but rather just a desktop change. In particular, Ctrl+Alt+Del switches to a secured