windows

Check if a user can read a file on a UNC-Share

A User on our Windows Client has a function to send Links to Files on our Network-Shares (UNC-Paths) to other Users in our Company. Often these Users does not know if the receipients have access to this Share. A trial and error strategy is not possible because the users that is sending the link is already connected to this share with h...

Programmatically set the DPI from a .net 2.0 WinForms application

I want to run my application on 96dpi, no matter what the dpi size from Windows is set to. It is possible ? ' Edit ' I found that using the Scale() method and resizing the font will almost do the trick. public class MyForm : Form { private static bool ScaleDetected = false; const float DPI = 80F; protected override void On...

How to filter txt file by string with using batch

Hello guys I know this kind of problem will be very easy for you but I am total beginner in batch mode. The question is how bat file code should look like to generate a new txt file from specific one . for example . I have report txt Displaying status for license file: 7788@Server01 License Server: server01 Lice...

Integrating my new program with Windows

I've written a log parser, with some generous and insightful help from the SO community: http://stackoverflow.com/questions/2906630/keeping-the-ui-responsive-while-parsing-a-very-large-logfile Now, I'd like to be able to right click one of these logs, select "MyNewLogParser" from "Open With.." and see it open in my new program. This w...

How can I keep an event from being delivered to the GUI until my code finished running?

I installed a global mouse hook function like this: mouseEventHook = ::SetWindowsHookEx( WH_MOUSE_LL, mouseEventHookFn, thisModule, 0 ); The hook function looks like this: RESULT CALLBACK mouseEventHookFn( int code, WPARAM wParam, LPARAM lParam ) { if ( code == HC_ACTION ) { PMSLLHOOKSTRUCT mi = (PMSLLHOOKSTRUCT)lParam; ...

Developing on both Windows & Linux machines simultaneously

Sorry for the bad title (couldn't think of a better way to describe it) I have a windows machine which I do development on. However, I have a new project which needs to interact with a linux system (executing linux commands etc.). So, obviously I can't do development on my windows machine..and I don't wish to code on the dev machine, s...

Window properties - how are they implemented?

I'm curious if there is anyone around here that has inside information on the implementation details of window properties (SetProp, GetProp, etc.) in Windows. SetProp @ MSDN GetProp @ MSDN For instance, how are storage and lookups done? ...

How much different is windows and linux in network programming?

I'm reading <<Understanding Linux Network internals>>,but not sure how much of it will also apply to windows? ...

How to discover the location of the Scheduled Tasks folder

I have seen references online that state that Scheduled Tasks in Windows are stored in %SystemRoot%\Tasks (usually C:\Windows\Tasks). However on my Windows 7 system, I observe that while that folder exists, it does not seem to be used. Instead my system seems to be using C:\Windows\System32\Tasks . Is there any way to discover which f...

ctypes DLL with optional dependencies

Disclaimer: I'm new to windows programming so some of my assumptions may be wrong. Please correct me if so. I am developing a python wrapper for a C API using ctypes. The API ships with both 64 and 32 DLLs/LIBs. I can succesfully load the DLL using ctypes.WinDLL('TheLibName') and call functions etc etc. However some functions were not ...

C code in Linux to C code in Windows

I'm having a code written in C that works on Linux. I want this program to work in windows, Are there any differences that I have to make in the code ? It is a code for Server/Client communication using sockets taken from here : http://www.linuxhowtos.org/C_C++/socket.htm ...

how to use an input mask into a CMFCPropertyGridProperty

I need to display and read a MFC property in such way the input behaves as a percentage. Right now, it looks as this: http://imagebin.org/98392 But, instead of the 0.845 I would like to display as 84.5% What I need to do? ...

How can I deal with depressed Windows logo key when using `SendInput`?

My application synthesises keystrokes in other apps by using SendInput. This almost works, except that due to circumstances I cannot change, the left Windows key will always be physically depressed when sending the input. This means that if, for example, the keystroke being sent is the 'd' key, then Windows sees the keystroke as its Win+...

Self-contained python installation with executable tools included (pip, orbited, etc)

I'm trying deploy a Python application on Windows as a folder that includes a full python 2.6 folder. I don't need/want a fancy solution like py2exe, I'm just trying to automate deployment of a web application. So long as I include python26.dll and set the PYTHONHOME correctly, things seem to work if I just include the Python26 folder i...

How to get around the command line length limit?

I've been working on a small and simple program that I drop files onto and, based on certian rules, they are moved to diffrent places. The program works fine unless I drop more than a few files, then it kicks back an error (that appears to be more Windows than anything) that the start up command "c:\myapp.exe \file \file \file" is too l...

LPT control on Windows

Hi, I am into new project, which should use microcontroller. The easiest way to program it is using parallel port. But, there are few things I hope you can help me with. Oh, and the preferred language is C and platform Windows. So, I studied LPT ports and Windows a bit, and from what I learned the most important is: Since Windows NT bas...

Is there a good Fogbugz client for Windows

Funnily enough, I already found some pointers and a thread to an OSX client for Fogbugz. Here I am looking for a Windows client. I know there are web browsers for Windows, but I am looking for fast editing; fast changing of attributes ("one click"); zapping through cases and edits in milliseconds; no waiting for HTTP round trips, just p...

how get real time voltage

Is there a way to retrieve the voltage being supplied to a computer in real time? ...

win 64 bit application using lotus C API (v8.5)

I need to export Lotus NSF database documents to XML. I am using Lotus C API (8.5). I have already build a 32 bit windows application and now I need to port it to 64 bit application. I am not sure if 64 application is supported. If possible, I would like to know how to build it in visual studio. Thanks ...

Getting the Username from the HKEY_USERS values

Hello, Is there a way to connect between the values under HKEY_USERS to the actual username? I saw some similar questions, but most (if not all) talks about C# code, and my need is in VBScript. ...