windows

PostMessage tutorial

Hi I am looking for some tutorial regarding the PostMessage functionality in Windows SDK. I have been googling a while but no luck. Is there a site which elaborates on this operation? Thanks. ...

Import C++ dll failed in Python

Following document in "Extending and Embedding the Python Interpreter", I created a VC project, and a dll file was successfully created with name "spam_d.dll" Main code was static PyObject * spam_system(PyObject *self, PyObject *args) { const char *command; int sts; if (!PyArg_ParseTuple(args, "s", &command)) retur...

Ret Failure with SDL using FASM on Win32

I'm using SDL with FASM, and have code that's minimally like the following: format ELF extrn _SDL_Init extrn _SDL_SetVideoMode extrn _SDL_Quit extrn _exit SDL_INIT_VIDEO equ 0x00000020 section '.text' public _SDL_main _SDL_main: ccall _SDL_Init, SDL_INIT_VIDEO ccall _SDL_SetVideoMode, 640, 480, 32, 0 ccall _SDL_Quit...

Decrease the upload/download speed

I am doing networking project, My current broadband internet speed is 2Mbps my application is working correctly. I need to test my application status 512Mbps or any other speed. How to decrease the speed of internet, Is there any way to increase/decrease the speed by making changes in local machine. Thanks. ...

How to debug .NET error logged in an Event Viewer ?

Hi I found out that my application causes some errors which are logged in an Event log. It states: NET Runtime 2.0 Error EventType clr20r3, P1 *****.exe, P2 1.0.0.0, P3 4b2a572f, P4 system.web.services, P5 2.0.0.0, P6 4889df18, P7 bc, P8 65, P9 system.net.webexception, P10 NIL. How can I find out what's going on? I've tried tha...

remote desktop client with panning of large desktops?

When using the standard Windows remote desktop client to connect to a large remote desktop, the result is usually that the remote desktop is resized to a smaller size matching the local display. Are there any RDP clients that instead leave the remote desktop at its original size and pan this larger area when the mouse reaches the border ...

how to use WaitForSingleobject

hello in order to try out how to programm with the win32 api i wrote a programm that creates a process. then i want to check if my proccess waits for the new created process, close the handle and then check waitforsingle obj. again. (the seconde process is sleeping for 700 ms) first process: #include <iostream> #include <windows.h> #in...

how to append an empty line in text file using command line ?

how to append an empty line in text file using command line echo hi >a.txt echo >>a.txt echo arun >>a.txt here the out put comes as hi echo on arun so how could i append a empty line ..i want it to be like . hi arun when i added this line on code @echo off it said echo off .how can it be done ...

How to access Linux directories/files from a Windows Service using C#

Hi, I have a C# Windows Service that needs to access to a Linux computer to get a list of files in a particular directory. What .NET 3.5SP1 method would one use that allows me to do this? Thanks. ...

What does it mean that "File Stats" are slow on Windows as the reason Ruby is slow?

In another question I asked (why is Rake test so slow), part of the response was that: The reason is that file stat's in windows are dreadfully slow, and, since Ruby is written on Linux (and optimized for Linux), there hasn't been much work to make it faster. Can someone explain this further? ...

SYSTEM ERROR dosx.exe Must be in ur AUTOEXEC.NT & Present in your path

When i installed turbo cpp in my Windows XP os machine, I got a system error: the win16 subsystem was unable to enter protected mode dosx.exe must be in your AUTOEXEC.NT & present in your path. ...

How to get window opened/closed/minimized messages from a native app?

It's tough to write a good title for this one. I'm working on a WPF application which needs to know about the existence of all other open windows on the system. I'm able to do this by calling the native EnumWindows method just fine, and I can call other native methods to filter out just the windows I'm interested in. This works well. T...

tailf for windows

I found tail2win but it is a paid product. Are there any good freeware or shareware out there? ...

fopen create new file that not exists

Hey, I am trying to either create a file that doesn't exist or write to a file that already does. within a php file I am trying this: $file = fopen("data.txt", "a"); fwrite($file, "\n" . $name); fwrite($file, "," . $lastname); fwrite($file, "," . $email); fclose($file); I am running Apache under windows Xp and...

HttpAddUrl permissions

I'm trying to run a custom WinHTTP based web-server on Windows Server 2008 machine. I pass "http://*:22222/" to HttpAddUrl When I start my executable as Administrator or LocalSystem everything works fine. However if I try to run it as NetworkService to minimize security risks (since there are no legitimate reasons for the app to use ad...

Where should I store shared resources between LocalSystem and regular user with UAC?

My application consists of two parts: A Windows Service running under the LocalSystem account and a client process running under the currently logged in regular user. I need to deploy the application across Windows versions from XP up to Win7. The client will retrieve files from the web and collect user data from the user. The servic...

Tmp issues with java service on windows 2008 service

Hello! I am having a rather nasty problem with windows 2008 server. We have a java application that is running as a service using the local services user. The problem is this user does not have access to read/write to the specified java tmp directory (specified by the system). This means that every time the application tries to create a...

WPF Application have Win2000 style, but I'm using Win XP

Why does my application have the Windows 2000 style? I have the normal Windows XP - Style but the buttons and all the other controlls look like in Windows 2000. ...

Shortcut keys for menu items (alt + letter). Is there any convention for namings ?

Is there any official/unofficial/informal convention for alt+key namings ? maybe, Microsoft have some internal document for that thing. Different menu levels and so on ... http://img256.imageshack.us/img256/2426/shortcutl.jpg ...

What are the default access rights for a process started with ShellExecuteEx?

I need to perform certain operations on a process started with ShellExecuteEx - like waiting for it, duplicating handles, querying and setting information etc. Now I am wondering if I can do all these things on the hProcess member which is returned in the SHELLEXECUTEINFO structure I pass to ShellExecuteEx. Does anybody know this? Does...