windows

windows - sendmessage

I'm calling a subroutine form the WndProc function in a windows app. WndProc was called from the message processing loop when a button was pushed. The subroutine takes a fair amount of time to run so it sends periodic messages using SendMessage(WM_USER). These messages should cause screen updates. Unfortunately, the updates are all h...

WAMPSERVER Server not working

I have just installed wampserver on windows 7 it works fine for me but when i restart windows and click on Start Wamp Server it starts but not showing any page at http://localhost i have not any skype or any service install let me know how can i fix that ...

subversion hook template for access control on windows

I set up a subversion server with bitnami stack for subversion on windows XP operating system. It was for local network and i would like to control steal lock and break lock abilities in accessing the repo. I changed pre-lock.tmpl and pre-unlock.tmpl to executable but it still is not working yet. It worked well when i tested it on linux ...

discover source path of a network share

on ClientBox, given an existing D:\foo\bar\, i need to find out whether it's local or remote, and if it's remote, what path it's on the server. so, if ServerBox shares its F:\public, and ClientBox maps it to D:\, i should get F:\public\foo\bar\. i want this information to be able to put correct paths into a configuration file. ...

C# Programmatically disabling Taskbar functionality

When you open internet explorer or mozilla, a new task in the task bar pops out. When you right click this taskbar item it saids Restore, move, size, minimize, maximize, close. Now i have an application that does not use size, minimize,maximize or close. Can someone give me a quick lead or heads up in order to disable them? Thanks i...

Hosts file edit taking a long time to work?

Whenever I add an entry to the Hosts file on Windows, it takes a long time for the change to take place? I have tested using Firefox and IE and it seems to take around 5 minutes on both of them before the new IP/Domain entry on Hosts is recognised. Is there anything I can do to overcome this? Perhaps "refreshing" the cache in some way? ...

WinINet asynchronous mode disaster

Sorry for such a long question. It's just I've spent several days trying to solve my problem, and I'm exhausted. I'm trying to use WinINet in an asynchronous mode. And I must say... this is simply insane. I really can't understand this. It does so many things, but unfortunately its asynchronous API is so much poorly designed that it jus...

Install/Uninstall a Windows Service in a build script with NAnt

Does NAnt have the ability to install or uninstall a windows service, using the InstallUtil utility or whatever else? ...

What's the best way to (programatically) determine a file's network origin?

For an application I'm writing, i want to programatically find out what computer on the network a file came from. How can I best accomplish this? Do I need to monitor network transactions or is this data stored somewhere in Windows? ...

memory leak in HTML::TreeBuilder

I have some Perl code: use HTML::Parse; use HTML::FormatText; # ... my $txtFormatter = HTML::FormatText->new(); while ( ... ) { # some condition my $txt = # get from a file my $html_tree = HTML::TreeBuilder->new_from_content($txt); $txt = $txtFormatter->format($html_tree); $html_tree->delete(); # write $txt to a...

Enumerating Windows "log-in screen" user accounts in VB6

I am attempting to retrieve the log-in accounts that are actually visible when Windows first loads (XP, Vista and 7). I am able to enumerate all accounts (thanks to this code: freevbcode.com), however this particular function enumerates all system user accounts (Administrator, Guest, HomeGroupUser$, LogMeInRemoteUser, etc.) whether they...

QrCode C/C++ API For Windows

Hi, I have looked after, without luck, a free C/C++ API for Windows that can be used in a project I am about to start. There are libraries for Java and C# but the fact is there is no one for C/C++. I need an API that can be integrated in a vs project and we cannot use libraries that run in servers ( as CGI scripts or whatever ). Does any...

OpenSSL and multi-threads

I've been reading about the requirement that if OpenSSL is used in a multi-threaded application, you have to register a thread identification function (and also a mutex creation function) with OpenSSL. On Linux, according to the example provided by OpenSSL, a thread is normally identified by registering a function like this: static uns...

How to detect, from browser, if user is running in Remote Desktop session?

Is there a ways to check inside a browser (e.g. javascript) if the user is running inside a Remote Desktop session? If the user is running their browser inside a Remote Desktop (i.e. Terminal Services), i want to disable animations on the web-site. If this were a native application, as opposed to a web-site, i could perform this che...

Developing a file storage web application

I'm currently developing a web application whose primary user function is uploading and downloading of files. The files will be stored on the hard disk (no cloud storage yet). Taking into consideration the possibilities of gigabytes of data and a large number of files, do I need to organize files into sub folders to account for the fet...

Opening win-socket (tcp) in kernel mode specifying sequence number

Hi, I'm writing a windows driver (of course in c and I'm in kernel mode) and I'd like to open a tcp socket from the outside specifying the sequence number the first SYN packet should have. I tried modifying the packet filtering it with Windows Filtering Platform, but of course it doesn't work because the stack think that the correct num...

How do I create a shortcut (.lnk) with a relative target?

Hi, I have an executable on my disk-on-key in dir\program\prog.exe I'd like to have a shortcut to the executable on the DoK's root directory, that is, prog.lnk would refer to dir\program\prog.exe. However, it seems that prog.lnk can't have a relative target. This is a problem when the DoK will have different drive letters assigned to ...

How to edit the contents of index.dat windows file

Hi Everybody, I need to be able edit the content of index.dat file programmatically (C:\Documents and Settings\Username\Cookies\index.dat). More precisely I need to modify it in order that index.dat for one user can be used for a different user name. Is there any documentation out there for this kind of binary file? Thanks, Radu ...

Setting FILE_ATTRIBUTE_DEVICE in Visual Studio

Hello, I would like to know whether it is possible to call a CreateFile Function in Visual C++ to create a file with attribute FILE_ATTRIBUTE_DEVICE (0x00000040 hex, 64 decimal). According to the MSDN API, FILE_ATTRIBUTE_DEVICE is reserved and therefore I cannot use it, but I know there must be some way to create a file with such attrib...

Is it possible to create .msi files that install files to non standard locations?

I need to generate an .msi package to deploy some files on my computers. I can do this using a program called Deep Freeze. I provide the .msi and Deep Freeze puts it in my workstations. I've been trying to create this .msi with the WiX sdk but I can't use my own folder path but as soon as I replace the APPLICATIONPATH with something else...