Tech Support > Microsoft Windows > Development Resources
Re: Load DLL from Resource
Posted on January 14th, 2006 | 0 Comments

"Elmar Haneke" <nospam@haneke.de> wrote in message news:037D17EE9.108c41d759e@1.NewsSIEVE.com... I imagine you could write it to disk as a file on loading the exe, and then load it dynamicaly. I...

Creating a virtual COM
Posted on January 13th, 2006 | 7 Comments

Is it possible to create a virtual COM for a device using Microsoft stack? Is it possible to determine the related number (COM no.)? Thanks!

How to close a shortcut menu ?
Posted on January 13th, 2006 | 4 Comments

Hi: We use TrackPopupMenuEx() to displays a shortcut menu, then, how to close (hide) it programmatically ?

QueryPerformance and Sleep on WIndows XP SP2 with athlon X2
Posted on January 13th, 2006 | 0 Comments

range behaviour of my code on an Athlon X2 with windows XP SP2. I want to mesure the accuracy of the Sleep command. When i make a loop with Sleep(40) and mesure the time ellapsed with...

Re: Load DLL from Resource
Posted on January 13th, 2006 | 0 Comments

nospam@haneke.de (Elmar Haneke) wrote: It should be possible though hard work for someone to parse the raw format of DLL files in memory and execute functions from there. However (and I've looked...

Global Events
Posted on January 13th, 2006 | 4 Comments

Hi, I am trying to signal events between 2 processes. Process 1 creates the event and waits on it. I want process 2 to open the global event and set it to a signalled state allowing process 1 to...

hook function gets access denied
Posted on January 13th, 2006 | 0 Comments

in my code i hook NtSetInformationFile(...) in user land. I do thid to get the old and new names of the files renamed/moved and generate some logs. on trying to get the old name from the handle...

Where to store app config data?
Posted on January 12th, 2006 | 4 Comments

Hi I'm just converting an old application so that it will run on a network (windows 2000server/windows 2003 server). The app saves some configuration data (relating to settings the user makes) to an...

WIN32_FIND_DATA.nFileSize
Posted on January 12th, 2006 | 2 Comments

Hi, I read in a MS Win32.hlp on WIN32_FIND_DATA: "The size of the file is equal to (nFileSizeHigh * MAXDWORD) + nFileSizeLow." Is this really ok, as MAXDWORD is defined as 0xFFFFFFFF? Up to now I...

Subclassing an edit crashes on XP?
Posted on January 12th, 2006 | 4 Comments

Hi, some of my older apps written for Win98 crash immediately on XP, unless the compatibility is set to Win98. These apps use instance subclassing (e.g. of a standard edit control), but I am not...

Can someone tell me what error 0xc0044037 is?
Posted on January 12th, 2006 | 5 Comments

I'm getting this error code from a windows api call. The function shouldn't be returning this. How do you find out what this error is? thanks, Carl

How to get the handle of an inactive window that is topmost visually on screen ?
Posted on January 12th, 2006 | 9 Comments

sometimes, in win98 (and xp too?), when you close a window, the window just underneath it will shown but was disabled ( greyed), you can't get it's handle with GetForegroundWindow(), then, how to get...

pending stdin is hooked on a dll
Posted on January 12th, 2006 | 1 Comments

Hi, I've written a windows program that at runtime loads a dll. The dll is a conversion of a standalone console program into a dll. To that end I have successfully redirected stdin and stdout from...

Notification of wireless network connection?
Posted on January 12th, 2006 | 3 Comments

I was wondering if windows sends out a notification message if it connects to a wireless network, or if there was another method to determine when this happens. At the moment, I periodically check...

Overlapped I/O Serial Port
Posted on January 11th, 2006 | 2 Comments

Hello! I've been working on a serial port class which uses overlapped I/O and launches a read and write thread. The code is very similar to the MTTTY sample from MSDN. Everything works fine, except...

Windowless Rich Edit Control and EM_SETTARGETDEVICE crashes
Posted on January 11th, 2006 | 0 Comments

I try to send the EM_SETTARGETDEVICE message to a windowless rich edit control via ITextServices::TxSendMessage to get WYSIWYG output on the screen (so that word wrap is done exactly the way it is...

Change the output file name...
Posted on January 11th, 2006 | 0 Comments

How can i do it in Visual Studio 2005? -- Pozdrawiam, Etam.

For Etam: How to make a program run at startup.
Posted on January 10th, 2006 | 4 Comments

In comp.lang.c++ , "etam" <kruskal@gazeta.pl> asked (paraphrase): "How do I make a program set itself up so that it runs every time Windows starts?". This was a bit off-topic over there, so I...

GetUserDefaultLCID in WM_SETTINGCHANGE problem
Posted on January 10th, 2006 | 7 Comments

Hi, I want to monitor regional settings and time zone change and handle WM_SETTINGCHANGE for this purpose. I change default language in Regional Settings and press Apply. My application...

OT: WMF security exploit
Posted on January 10th, 2006 | 0 Comments

Hi, This is regarding recent WMF security vulnerability in Windows. According to Microsoft, WMF (Windows Metafile) data can contain executable code. MS say, it's an old feature (present in Win3.0...