Tech Support > Microsoft Windows > Development Resources
Creation of GDI Objects in MetaFiles
Posted on July 16th, 2004 | 2 Comments

I've looked and I can't find a clear answer to the following in MSDN or in my favorite resource, Simon's _Windows 2000 API SuperBible_. How are GDI objects (pens, brushes, etc.) managed in a...

CreatePipe problem. unable to get any data from pipe before ERROR_BROKEN_PIPE
Posted on July 16th, 2004 | 0 Comments

Hi, I'm having a problem with a piece of code which is designed to pipe the stdout of a console program to its parent process. The problem is that, while I can create my pipe ok, spawn a new process...

Adding Directory to Listbox
Posted on July 16th, 2004 | 0 Comments

Hi all, How can i add directory list in a list box from a Drive. I tried these ways, but got stalled. Could anyone help me..Please ? SendMessage(hwndCB, CB_GETLBTEXT, (WPARAM) 0,...

Deleting print jobs
Posted on July 16th, 2004 | 0 Comments

How can I delete all print jobs that have been sent to a particular printer using API function calls?

RegRestoreKey
Posted on July 16th, 2004 | 0 Comments

I have a code I am using to restore a file 1.dat that was created using RegSaveKey. I keeping getting an error with Setting privilages and RegRestoreKey. Please help. void RestoreRegFile() { DWORD...

Parent Process ID
Posted on July 16th, 2004 | 4 Comments

Hi I am trying to find the process ID and path of the 'grand-parent' of my application (that is: the application that launched the application that launched my program) on Windows. I have found the...

list threads in a process
Posted on July 16th, 2004 | 9 Comments

Hi, is there a win32 call (either from debuggers point of view or otherwise) to enumerate all threads in a process at a given instance of time. kutty

svohost.exe in windows xp
Posted on July 16th, 2004 | 4 Comments

hi! I deleted the file svohost.exe in the windows\system32 folder as I suspected it of performing some virus activity. Now the computer works fine .. though there is an error which comes up after...

Importing NTDLL Functions
Posted on July 16th, 2004 | 5 Comments

I've been trying with limited success to use ntdll.dll from user-mode apps. I have written code that calls NtQuerySystemInformation in order to get the handle list. I used to have an automatically...

GDI Clipping Question
Posted on July 16th, 2004 | 7 Comments

Why can't I set a clipping region, draw in the region, set a new clipping region, and then draw in that region (all of this happening in WM_PAINT)? It seems like only the last region gets painted. ...

GetCurrentDirectoryW for long path doesn't work
Posted on July 16th, 2004 | 0 Comments

Hi all, I want to test GetCurrentDirectoryW for path longer than MAX_PATH. So I created a directory with a sub directory. Either directory name is 200 characters. And I ran GetCurrentDirectoryW from...

Can I call PdhEnumObjectItems in console mode?
Posted on July 15th, 2004 | 5 Comments

Windows XP SP1, VC++ 6.0, Platform SDK Hi all, I want to use PDH to enum processes on local machine. And I wrote the following function. void GetProcesses(void) { CHAR CounterList;

c++ allocating memory to edit control
Posted on July 15th, 2004 | 1 Comments

Hi I am trying to post 4000 lines of text in an edit control but i get only blank after 500 lines. I believe the problem is in the edit control because i am using reserve in the string to holding...

EDIT box not theming
Posted on July 15th, 2004 | 0 Comments

I am working on a large application in C++ with about 50 projects. I have added a manifest into the resources of my startup project and in its .rc file have inserted the...

GetThreadId
Posted on July 15th, 2004 | 1 Comments

I am reading the Platform SDK documentation and see this: -------------------------------------------------------------- GetThreadId The GetThreadId function retrieves the thread identifier of...

DLL and external references
Posted on July 15th, 2004 | 1 Comments

This is probably a basic question: //######################################################################### // testdll.cpp // extern function used in dll, defined in an external static...

Running app with admin priv from a Users account
Posted on July 15th, 2004 | 2 Comments

I wrote a CDialog based MFC app with Visual Studio 6.0 that that I have been running from an Administrator account under win XP. MyApp is manually installed into c:\MyApp\, and MyApp creates and...

Writing to files over the newtork
Posted on July 15th, 2004 | 1 Comments

Hello all, We have around 20 clients writing to a file in the Server. We use Win2k Prof/Server. We have been using mutexes as a synchronization object without relazing that mutex objects cannot be...

Setting date/time
Posted on July 15th, 2004 | 2 Comments

Hi! I need to set the windows date/time from my program. I've searched the docs, but I was only able to find functions for getting the current date/time... can someone direct me,...

Is there an equivalent of IsWindow for a HINSTANCE?
Posted on July 15th, 2004 | 6 Comments

Hi, I am using ShellExecute to launch an application and I would like to detect if the returned HINSTANCE has ended or not. Simply checking for hInstance==NULL does not work. What would be ideal...