windows-7

Windows 7 Access is Denied

为君一笑 提交于 2019-12-13 20:09:05
问题 I'm trying to build the boost examples. I get the following error: Access is denied. Access is denied. ...found 9 targets... ...updating 2 targets... gcc.compile.c++ bin\gcc\debug\hello.o Access is denied. "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o "bin\gcc\debu g\hello.o" "hello.cpp" ...failed gcc.compile.c++ bin\gcc\debug\hello.o... ...skipped <pbin\gcc\debug>hello.exe for lack of <pbin\gcc\debug>hello.o... ...failed updating 1 target... ...skipped 1 target... I'm not

Winlogon screen capturing in Windows 7/10

泄露秘密 提交于 2019-12-13 17:17:09
问题 I need to capture a winlogon screen in WinXP/Win7/10. For WinXP I'm using a mirror driver and a standard methodic like this: ... extern "C" __declspec(dllexport) void SetActiveDesktop() { if ( currentDesk != NULL ) CloseDesktop( currentDesk ); currentDesk = OpenInputDesktop( 0, FALSE, GENERIC_ALL ); BOOL ret = SetThreadDesktop( currentDesk ); int LASTeRR = GetLastError(); } extern "C" __declspec(dllexport) HBITMAP CaptureAnImage( int width, int height, int bitsPerPixel ) { HBITMAP hbmScreen;

How to change my computer's cultureInfo

坚强是说给别人听的谎言 提交于 2019-12-13 16:48:53
问题 I am running a site on IIS that reads the culture info from Thread.CurrentThread.CurrentCulture. This comes from the System culture info from what I understand. I need it set to a certain value and I've been unable to change it at the OS level. My windows 7 computer was initially set up in the en-GB culture, and I now need to switch it to en-US. I have changed it in the Region and Language control panel. In the Formats tab, The Format is English (United States), In the Location tab, the

Update the Local Computer Policy in Windows 7 with IGroupPolicyObject

六眼飞鱼酱① 提交于 2019-12-13 16:35:56
问题 I just want to be able to programmatically do what gpedit.msc does. I'm trying to set the value of these keys to 1 and Update the Local Group Registry. In gpedit.msc: Local Computer Policy/Computer Configuration/Administrative Templates/System/Removable Storage Access ValueName: All Removable Storage classes: Deny all access Value: 1 (set this to 1) Local Computer Policy/Computer Configuration/Administrative Templates/Windows Components/AutoPlay Policies ValueName : Turn off Autoplay Value: 1

Displaying HBITMAP

强颜欢笑 提交于 2019-12-13 16:28:30
问题 I apologize upfront; I'm new to c and I really don't know what I'm doing. I am trying to capture and display a screen shot using Windows 7 and c. I know it sounds dumb, eventually I will need each of these functions in different programs, the one that captures the screen will send the image to the one that displays it but for now I am just trying to get them both to work in one program. Here is the code I've put together so far: #include <windows.h> bool ScreenCapture(int x, int y, int width,

Unable to properly install binary edition of Apache Ant

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:09:45
问题 I'm following this tutorial to install the binary edition of Apache Ant. Unfortunately, when I get to the "optional" step 5, I'm unable to get some resources. That is, an error occurs while processing the Maven artifact tasks. When I try to navigate to the servers, it appears that they are either down, or non-existent. Anyone else encounter this problem? And I just found this piece of information regarding the HTTP 403 response code, This response is returned by the Apache web server when

Windows 7 Create Folder in “Program Files” failing in C# code even thought I have admin rights!

萝らか妹 提交于 2019-12-13 15:49:16
问题 I am unable to create a file under "program files" folder on my Windows 7 64-bit machine in VS 2008 WPF C# code. The error I get on the following code myFile = File.Create(logFile); is the following. (this is the innerException stack trace). at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES

Enable Internet Connection Sharing programmatically

走远了吗. 提交于 2019-12-13 15:09:14
问题 I can do it manually by right-clicking on a network connection, opening the Sharing tab, clicking on the "Allow other network users to connect through this computer's Internet connection" check box, and selecting a "Home networking connection". While poking around this problem I have found multiple sets of COM interfaces: 1) Internet Connection Sharing and Internet Connection Firewall Interfaces with INetSharingManager Its documentation says: Internet Connection Firewall may be altered or

Closing a Specific Instance of Windows Explorer

依然范特西╮ 提交于 2019-12-13 14:27:57
问题 I'm having a problem trying to WM_CLOSE a Window Explorer process in that sending that message will then try to close the Windows Shell explorer process and prompt the user to shut down windows. This is not the intended behaviour and I was wondering how I could work around it? How can I close individual explorer windows gracefully, without shutting down the whole PC at the same time? The goal is to have the same behaviour as if the user had clicked on the X button themselves. EDIT: I've found

Unable to install sharepoint 2010 in Windows 7

点点圈 提交于 2019-12-13 14:00:33
问题 I am facing problem while installing Sharepoint 2010 Server on Windows-7 Professional I have followed the steps given in this MSDN page. Still I am getting the following error while trying to run Setup.exe . Can anyone help me on this? Thanks 回答1: It seems that SharePoint Server 2010 is only compatible with Windows Server 2008 x64 . But it's not. check this. Source: Installing Microsoft SharePoint Server 2010 on Windows 7 x64 It is much simple to do this. Just a little work and your