Questions involving programming on Microsoft Windows technology, including its API.

learn more… | top users | synonyms (1)

-2
votes
0answers
11 views

How to programmatically (C#) add/modify firewall rule on windows 7 and newer

I am writing application, where is need add rule to windows firewall when application start and remove/disable when is closing. How make it in C#? Thanks for reply.
-4
votes
0answers
32 views

Can't create partition - Windows XP [on hold]

so since two moths I have a big problem. Before this period i had tho OS - Windows XP and Kubuntu 14.04 LTS. Rest of my HDD had ~800 GB of free space so I decidead to create new partition for my ...
0
votes
0answers
26 views

C++ : mixing Directx9 and default windows [migrated]

I am looking for a method of placing a DXLinked window within a windowproc as a child window. This would allow for menus/Forms controls to be externally managed before input to the DX methods. So far ...
0
votes
0answers
2 views

What is the fool-proof way of setting up spreadsheet_excel_writer on Windows Server 2012 R2 [migrated]

I have an financial projection and budgeting application that produces spreadsheet outputs. This is working fine on Linux OS, with PHP 5.5.12 and also Spreadsheet_Excel_Writer 0.9.3 and OLE 1.0.0RC2. ...
-1
votes
0answers
23 views

Linux header files for Win32 typedefs like BOOL, LONG, and WCHAR [migrated]

I'd like to compile this clone of xcopy as a linux binary. I commented out all the win32 include files, and now it complains about things like WCHAR, and LONG. These are simple typedefs. Is there a ...
-4
votes
0answers
59 views

Learning machine code? [closed]

I already know what your thinking: Learn assembler, not machine code. I'm in the process of writing a compiler for Java bytecode to native code. The simplist(ironically) way to do this, is direct ...
-5
votes
1answer
59 views

Linux on USB for Python (or other) Programming on the go? [closed]

This is my first question and I didn't see a similar question asked. Sorry if I didn't search hard enough. To the point. I'm learning the Python programming language and I've read Linux plays very ...
3
votes
1answer
332 views

Can I write a cross-platform application (Mac and Windows) using C#?

I see lots of old information on this question, and lots of articles flying around the Interwebs, but I can't tell quite where things are at. Basically, I want to write C# code that I can then ...
19
votes
5answers
3k views

Why don't Windows/Linux use relational Databases (RDBMS)?

Why don't Windows/Linux use relational databases (RDBMS)? I know they use file systems to store all data but don't you think it is more efficient to use databases like we use in web sites/web apps? ...
3
votes
1answer
70 views

Decrypt data on any Windows computer by same user

I have a license system which currently locks licenses to a physical computer using CryptProtectData (with CRYPTPROTECT_LOCAL_MACHINE) and CryptUnprotectData. This is of course not the entire license ...
-1
votes
1answer
88 views

What technical changes to Windows 10 will affect a desktop application publisher? [closed]

I hope Windows 10 will be bringing desktop applications back to center-stage, where they belong, but I am asking what technical changes to Windows 10 may impact desktop application developers, if any. ...
-1
votes
1answer
41 views

How to know if an app is launched in windows service application [closed]

I'm trying to write a program which waits for a specific app (matlab in my case) to launch and does stuff when the app launches. I see that I had to write a windows service application and managed ...
0
votes
3answers
101 views

What is the explication for the difference execution time for the same instruction?

As you know when we run instruction in our code like long a = b; we will not have the same ticks each to be executed. first exeution it take 2ticks; second exeution it take 3ticks; third exeution it ...
0
votes
3answers
70 views

How to test Windows .NET TCP program handling of connection failure [closed]

I've written my own C# TCP communications module (using SocketAsyncEventArgs, although that's presumably irrelevant). My module runs at both ends of the connection, client and server. As part of the ...
4
votes
4answers
758 views

Is it the standard accepted practice to install software using VBScript? [closed]

Consider the following requirements Windows software which communicates with a web application using basic authentication The software is an MSI package The software requires a token to be placed in ...
1
vote
1answer
119 views

Use of FindWindow and window handles within a Windows service

I've got a third-party vendor who is installing a series of Windows services to a (Windows 2008 R2) server in my control. Whilst attempting to run each service under its own least-privilege account, ...
3
votes
1answer
89 views

Are Secure Desktop and separate process enough for hiding sensitive information in RAM?

In my program, I have an encrypted database on the file system with a password. It is decrypted in RAM, and the sensitive data get spread out too much in RAM for mistake to be auditable easily enough. ...
0
votes
1answer
149 views

Longest x86 Instruction

I read the recent article "Longest x86 Instruction" http://blog.onlinedisassembler.com/blog/?p=23 I attempted to reproduce the curious disassembly issue on a Win7x86 development platform using masm ...
0
votes
0answers
56 views

Using .hta file to read registry values to create checklist

Internally in the company I work for we use ActiveX to do some browser automation to help save time on repetitive tasks. There are times where profiles are messed up or re-imaging happens and it ...
0
votes
1answer
52 views

Windows Firewall single rule with multiple IP addresses vs multiple rules with single IP address [closed]

I've tried finding some resources to help me on my dilemma, but wasn't successful in my approach. So here goes: I am implementing an automated firewall manager for Windows Firewall which will ban ...
6
votes
2answers
217 views

What's the best way to handle Windows API errors in response to system messages or when I have nowhere to return them to?

This is going to be a really stupid question and I hope it's fine for Stack Exchange at all, let alone just this part of it... Right now, my custom Table control uses panic() functions that print an ...
2
votes
1answer
189 views

How much physical memory is consumed by the stack of a .NET thread?

In Stephen Cleary's article in MSDN magazine "Introduction to Async/Await on ASP.NET" he says that "every thread pool thread on a modern OS has a 1MB stack." (modern OS == Windows 7/8 for this ...
32
votes
3answers
5k views

Is address 0000000C a special address?

When programming sometimes things break. You made a mistake and your program tries to read from a wrong address. One thing that stands out to me that often those exceptions are like : Access ...
1
vote
2answers
299 views

Is there actually an advantage to using Win API calls for file access?

I remember coding file access using the Win API about 15 years ago. It was much faster than using the FileStream of my language at the time (Delphi). I spent a while today experimenting in C# under ...
1
vote
0answers
72 views

Curiosity: Unassembled asm in Windows Bootloader

I found this little gem waiting for me in the Windows (10/TP) bootmgr located on the first 300+- MB partition. Can anyone explain to me what it does? Is there an assembler hidden somewhere? These all ...
1
vote
0answers
124 views

Requesting information regarding the use of MUI vs. the use of GetText for i18n/L10n of Windows desktop applications

I have spent the past two days investigating which technology I will use to support translations of text strings (as part of an overall internationalization migration) for an archaic (VC6) Windows ...
3
votes
3answers
261 views

Why is Win32 API's WM_MOVE being called while dragging the window?

I have two callbacks for WM_MOVE and WM_MOVING. Oddly enough, WM_MOVE is being called while dragging the window. I expected WM_MOVE to be called only when I'm done dragging the window. MSDN says that ...
2
votes
1answer
294 views

Most efficient/cleanest way to Kill a recursive thread safely

I have a number of worker threads which all perform a flood-fill task on different regions of a bitmap. They all make calls to a recursive sub-routine with different parameters(coordinates). Fyi, I am ...
1
vote
3answers
104 views

Concepts used for cross platform development [closed]

Could someone help me to understand how do developers create software that run on windows, linux, and Mac OS X? I am just starting out and have come to the conclusion that I am at a loss for terms to ...
2
votes
3answers
281 views

How to deal with Windows .NET configuration files

We use the normal app.config file for the configuration of the application. Although it works for now it has some pretty significant drawbacks: Upgrading an application with a modified app.config is ...
0
votes
2answers
1k views

Detect or Prevent Screen Capture Applications

I am building an app that displays very sensitive information and as such, I want to be able to either Disable the ability to capture the screen Redact the portion of my app that is on the screen ...
1
vote
2answers
121 views

Program Compatibility - OS That Can Run Anything? [closed]

I know that programs that are built on one OS won't work on another, like a Windows program on a Linux distribution, and that there are programs that translate those system calls into system calls ...
2
votes
3answers
97 views

Smart fallback for line endings in code files? [closed]

What do you recommend as a default fallback for line endings if the operating system cannot be determined? Example Mac OS up to version 9 uses carriage returns (\r) for line endings. Unix-like ...
-1
votes
1answer
226 views

Calling another program from a Windows Service

Problem: I am working on a service which will do some automated processing at a configurable time each night. It does some communication over the internet, formats some information, and creates a ...
31
votes
6answers
4k views

Do we need to test 32-bit software in 64-bit Windows?

I'm working in a software development team as software developer. I've been working on the same project for three years now. The software is a 32-bit desktop based C# application in .NET 4. Our target ...
1
vote
0answers
318 views

Is this Auto-Updating strategy for a program in C++ compiled with mingw32 for Windows correct?

I 've been thinking a lot on auto-updating, but wanted to check with you guys if you see any anti-patterns in my proposal: Context I'm coding a game in C++ and SDL, compiled in an Ubuntu (host) for ...
34
votes
7answers
5k views

Why don't developers make installation automatic on windows? [closed]

This is the inverse to "Why don't developers make installation wizards on linux?", which is interesting, but made me think "Automatic instalation is the natural way. Why do they use wizards?". So ...
27
votes
8answers
5k views

Why don't developers make installation wizards on linux? [closed]

I'm sure it's not about laziness or anything like that but I fail to understand why developers of even mainly consumer facing apps don't make any sort of installation wizard where you go ...
1
vote
0answers
124 views

API for accessing CTS and DSR signals of serial port

I'm trying to improve another abstraction of the serial port. The project involved often needs to check one of the single control signals CTS and DSR. This is currently done by a call to ...
4
votes
3answers
668 views

How to securely implement Roles in a Windows Form application?

As an ISV, what is considered best practice for implementing Application Role based security? In other words, only allow users to access certain features in the application based on what Roles they ...
0
votes
1answer
207 views

Simple unicode application?

I want to create simple language learning applications to help friends in learning languages. A simple Java console application would do the trick, but the Windows console does not seem to handle ...
1
vote
1answer
117 views

How do newly-created programming languages use Windows API features?

WinAPI is focused primarily on the C family, but how do new programming languages use those features without creating their own runtime/interpreter type thing? Do they hook directly into the DLL ...
1
vote
1answer
249 views

How should a GUI application written in WinAPI be structured and organized? [closed]

I've done an extensive amount of GUI programming in Winforms and WPF using C#, and a tiny bit in C++ using MFC. I'm building a personal project using WinAPI mainly to gain a deeper knowledge in ...
2
votes
1answer
145 views

Drawing a custom rendered control in Windows - resizing

Some background: in order to learn GUI programming and drawing in Windows I'm starting to create my own GUI toolkit in Windows (so this is a didactic exercise, please don't suggest "use Qt" or "use ...
3
votes
1answer
150 views

How to fix legacy code that uses <string.h> unsafely?

We've got a bunch of legacy code, written in straight C (some of which is K&R!), which for many, many years has been compiled using Visual C 6.0 (circa 1998) on an XP machine. We realize this is ...
0
votes
2answers
634 views

how to approach pharmacy software project [closed]

I would like to complete a pharmacy software proof concept. But I have a few questions I do not know. Physician information In order to refill or dispense a new RX the software needs to have access ...
0
votes
1answer
132 views

Need advise for porting linux script to Win command line [closed]

I am creating app(script) that is used similar to RSS reader for specific webpage that doesn't have RSS. So my app downloads that html page in defined intervals, checks new items and parses them into ...
3
votes
2answers
458 views

Modern.IE VM license

Microsoft provides some VMs for testing purposes (advertised on StackOverflow) and I'm trying to understand the license terms. The one I don't really understand is 1.b. You may use the ...
1
vote
0answers
1k views

Accessing a 32-bit DLL from a 64-bit process

I'm aware that it's not possible to load a 32-bit DLL into a 64-bit process. The DLL in question is a ODBC driver which is no longer supported (although it works fine) and no 64-bit version of it ...
-1
votes
1answer
206 views

How to determine what throws an exception [closed]

Whenever I encounter crashes, the exact type of the exception usually already gives enough info to easily find the culprit. FileNotFoundException will hardly occur while using sockets. Now recently ...