windows

Where to store 'read-only', 'non-removable' application install date for demo purposes

I have to store a demo install date somewhere on a client PC. The app demo period is calculated on the install date. Obviously it must be impossible for users to edit or delete this value. How can this be done ? We can't use HKLM registry because of Citrix Can't use /Program Files because of Vista Can't use /Documents and settings bec...

How do I decode a PDEV_BROADCAST_DEVICEINTERFACE::dbcc_name?

I've been trying to watch a USB subsystem to detect when devices are added or removed, but I'm having trouble decoding the PDEV_BROADCAST_DEVICEINTERFACE::dbcc_name field. My code is based on an example over on codeproject. If I right-click in my C++/CLI application in visual studio and go to the declaration in Dbt.h I get: typedef str...

Resizing labels in Winforms to Left

I have 15 to 20 labels with variable text sizes and text boxes arranged in the forms. Text boxes are arranged next to labels. The font and color of the form and hence the form controls can be configured by the user at run time. When I right align the labels and set auto grow property to true and whenever the font style changes (say from ...

Python unicode problems on Windows XP

Having the following django view code that generates a CSV response from a database view: def _get_csv_stats(request, **filterargs): result = GlobalStats.objects.select_related().filter(**filterargs).values_list('user__username', 'user__first_name','use...

CRT types across process boundaries

I'm doing drag/drop out of an activeX control. On drag, I provide a CComQIPtr which has COM methods implemented to pass information to the drop target. On drop, the drop target's process calls my COM methods to get information. Am I not allowed to use CRT types or pointers to CRT types near that interface boundary? I would love for my I...

[C] fread/ftell apparently broken under Windows, works fine under Linux

So here's the problem, I'm reading a level file for my game, works fine under linux: @0 @12 200x200 version 3 @16 973 blocks @989 @993 18 zones But under windows I get the following result: @0 @212 200x200 version 3 @216 973 blocks @1200 @1204 18 zones Uh? The windows ftell stats with an offset of 200? Reading the file apparently y...

Changing the Duration of DelayActivity with a Different Duration

My custom activity has a delay that will need to be set different values at different times. The first time it is set, it might be 5 seconds. The second time, it might be 10 seconds, and so on. How can one do this... Delay does not have an ActivityContext lambda that will allow me to get a workflow variable. ...

Adding controls dynamically on a windows form

I am trying to add a bunch of controls dynamically in rows and columns in a windows form. For ex: if i have 20 controls and i need to create 3 columns and n rows. How to achieve this. Any suggestions will be appreciated. Thanks N ...

Windows: how to get a list of all visible windows?

(by all mean do re-tag with the relevant technology: I don't know which ones they are :) I'll probably come later with more detailed questions, about specific details but for now I'm trying to grasp the "big picture": I'm looking for a way to enumerate "real visible windows" on Windows. By "real visible window" I mean just that: what a...

PHP compiler for windows

I have a command line php app that I need to distribute to a client. I just want to give them an executable, not instructions for installing php ;) What is a good php compiler for windows that includes support for php 5, curl, TLS, and a few other libs I use? I need to control memory and time limit usage, so I must be able to use a cu...

How to use FBJS to popup a new browser window

My applicaiton is FBML. not FB connect. so, I can't use normal JS to popup new browser window. Is there a way to do it using FBJS? ...

detecting a VPN connection in Windows?

Is there any way to detect if I am connected to a VPN using standard windows APIs in C? Basically I have a client that has to sync with a server but only if the VPN is connected. This could be a standard windows VPN client or a Citrix. Is RAS helpful here? thank you, code is appreciated. EDIT: to make it clearer. This is a client th...

modal windows over homepage instead of loading new page

new to jquery, and going for some mighty challenging things right off the bat. i'm creating a portfolio website where the homepage contains images as links. when the user clicks on the links, instead of load to a new page, i would simply like a transparent overlay to occur, so that you can still see the content of the new page laid ove...

csv viewer on windows environement for 10MM lines file

We a need a csv viewer which can look at 10MM-15MM rows on a windows environment and each column can have some filtering capability (some regex or text searching) is fine. ...

NAudio + Windows 2003 Server? Help!

Hello, I have a web application using NAudio that works great on my development machine (Windows XP, IIS 5.1), but when I put it on the server (Windows 2003 Server 32-bit, IIS 6), I get the following error: NoDriver calling waveInOpen Exception Details: NAudio.MmException: NoDriver calling waveInOpen [MmException: NoDriver calling waveI...

How to show list of deleted files in windows file system

Hello, I am wondering if it is possible to compile a list of deleted files on a windows file system, FAT or NTFS. I do not need to actually recover the files, only have access to their name and any other accessible time (time deleted, created etc). Even if I can run a cmd line tool to achieve this it would be acceptable. The applicati...

Merge Module Versus Nested MSI

For a block of shared code, to be used by several product areas, there appears to be two installer options: Merge Module (to be included in other product installers) Nested MSI (same idea) What are the pros and cons of these choices? ...

How to move WPF window above top of screen?

I have a window with the following: Background="{x:Null}" AllowsTransparency="True" WindowStyle="None" Dragging the window by hand beyond the left, right and bottom limits of the screen results in a predictably cropped window. However this behaviour is not the same for dragging it above the top limit. Instead of cropping, it pushes it...

Gain sole control of Audio Output, DirectSound

Hello, I am creating a basic signal generator and decided to use my audio card as the analogue output. I chose to use DirectSound because... it seemed like a good option. I have it up and running quite nicely, but I now realize that my code using secondary buffers and as such any other sounds on the computer get mixed in with my gener...

IOError: [Errno url error] invalid proxy for http: 'xxx.xxx.xxx.xxx'

Hello I'm having some trouble with my script. It's supposed to open a website trough a proxy but I get, always, this error, with several proxies that I'm trying to... What could it be? Traceback (most recent call last): File "C:\Users\Shady\Desktop\ptzplace.3.0 - Copy.py", line 43, in <module> h = urllib.urlopen(website, proxies...