windows

Why could Curl be slower than a web browser?

I am using this class to make one GET and another POST request to a website (the first request is to set a cookie). I am testing in a Win XP virtual machine with virtualbox, using wamp from wampserver dot com. The 2 requests takes from 10 to 18 seconds (with curl), but if I make those request directly via the webbrowser in that same virt...

Is it possible to open a named pipe with command line in windows?

I want to interact with the pipe manually , but so far I can only do this in the programe,which is not very intuitive. The effect I want to achieve is a little similar to : telnet localhost 3306 tail -f file.txt Anyone get my idea? ...

How to implement asynchronous write in c/c++?

WriteFile( tmp_pipe, &Time, sizeof(double), &dwWritten, NULL ); The above is synchronous, if buffer of tmp_pipe is used up, it'll wait there. How to make the above finish instantly, maybe just ignore the data if the buffer is full? ...

Windows service dll search path.

I have developed a windows service using .net . My service makes some calls to unmanaged code like follows - [DllImport("cmxConnect.dll")] private unsafe static extern String cmxQuery([MarshalAs(UnmanagedType.LPStr)] String s, long* connPointer); I have placed cmxConnect.dll within the same folder as the service executable. The servi...

How to stop windows narration?

Hi, Is there a way to tell the windows accessibility framework to stop saying whatever it is currently trying to say? Not disabling the feature all together, just stopping the current reading? Thanks, -Andrew ...

Making a Windows shell extension in Visual Studio 2010

I'm trying to create an absurdly simple shell extension in C++ using Visual Studio 2010, but I can't even seem to get the examples out there to work as a starting point. I'm using Windows 7 x64. I've tried this Visual Studio template, but once I get the template to work in VS2010, I have a host of errors that I'm not sure how to fix. ...

Python - Make Script to Manipulate Windows File Paths but running on Linux

I have this script which processes lines containing windows file paths. However the script is running on Linux. Is there a way to change the os library to do Windows file path handling while running on linux? I was thinking something like: import os os.pathsep = '\\' (which doesn't work since os.pathsep is ; for some reason) My sc...

How to check the remaining buffer size of pipe in windows in c/c++?

BTW the remaining buffer will automatically increase if the other side reads data out of it,right? ...

GetTokenInformation() first call. What for?

Looking at MSDN documentaion for GetTokenInformation() and the Getting the Logon SID example, GetTokenInformation() needs to be called twice. The first call is to get the buffer size. So, buffer size of what? Just say I use TokenUser as its second parameter, I see that the dwReturnLength returned by first call is not the size of TOKEN_U...

Cocos2D on Windows with what programming languages?

I was under the impression that the Cocos2D game framework was just for the iPhone. Now I see that they have a separate project supporting OS/X, Linux, and Windows. It isn't immediately obvious from their web site what languages are options for developing with the framework on these various platforms. There is an installation requirem...

How do I access special directories in Windows?

What is the C# syntax to retrieve the user's desktop, documents folder and other system folders on windows? ...

How can I change the case of a file in a Solaris CVS repository when most of the CVS clients are on Windows?

I have a file named FooBarBaz.xhtml checked into a CVS repository that resides on a Unix server. I'd like to rename the file to be foobarbaz.xhtml, but it has been my experience that this can cause problem since the CVS repository sees FooBarBaz.xhtml and foobarbaz.xhtml as separate files, while Windows sees them as the same file. To b...

How to get a fortran90 code migrated to eclipse(photran) on windows?

I have been given a new project. I need to get a fortran code from a linux system working on windows. I'd like to be able to use Eclipse (photran) as my editor. What do I need to do to move things over? I've tried just dumping the source into a new eclipse project and it didn't work. Make had issues. What changes will I need to apply to ...

Unexpected exit from windows batch section

I am developing a batch file to collect websphere products information, it seems to work fine except for some cases. For some reason under some circumstances versionInfo.bat -maintenancePackages is called but the following code (check for manageprofiles.bat), it seems like it's returning from the :check section after calling versionInfo...

Sending fax using Windows Fax Server Extentions - faxcomexlib

I'm trying to find faxcomexlib.dll. After Googling around, I installed the Core SDK from the Platform SDK, but I still don't see this dll listed in the System32 folder. This is the code I'm trying to run: FAXCOMEXLib.FaxServer faxServer = new FAXCOMEXLib.FaxServerClass(); //faxServer.Connect(Environment.MachineName); ...

Opening a handle to flash drive gives me an "Access Denied" error code

Hello, I would like to know why when I try to create a handle to a USB flash drive, I receive a path not found error. HANDLE aFile = CreateFile(_T("\\\\.\\F:\\"), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (aFile == INVALID_HANDLE_VALUE) { printf("\n"); printf("Bad handle val...

msysGit vs Git for Windows

I am having trouble determining the difference between msysGit and Git for Windows. How are they different? Why would I choose one over the other? ...

Possible to intercept "unminimize" event on windows?

Is it programmatically possible to intercept the maximize/restore event on Windows such that when you click on a minimized button on the taskbar, it asks you for a password? Update: To clarify, I'm asking if it is possible systemwide. For example, I may pick a browser/im/editor window that I want to secure if I need to walk away from th...

find out user belongs to which groups

I have a windows user accounts which i just created take XYZ for example. This XYZ belongs to a User group and a custom group i created in Computer Management --> Local users and groups. So in properties i see that the user belongs to the 2 groups. Now i want to get those groups and display them. any suggestions??? i have done this ...

Converting UTF-8 Characters to Upper/Lower case C++

Hello All, I have a string that contains UTF-8 Characters, and I have a method that is supposed to convert every character to either upper or lower case, this is easily done with characters that overlap with ASCII, and obviously some characters cannot be converted, e.g. any Chinese character. However is there a good way to detect and co...