I'm reading an entry from the registry that comes out something like:
@%SystemRoot%\\System32\\wscsvc.dll,-200
I need to actually load the string from the file.
I found an article which describes how the number on the end behaves (negative == specific resource ID, positive == the nth resource in the file), but I'm confused as to how o...
Is it possible to read a Network Adapter similar to a Serial Port? I know that Serial Ports can be read with CreateFile WINAPI Function. Is there a similar way to read raw bytes from a Network Adapter?
I am aware of the WiFi/Network Functions but the WiFi Examples are fairly sparse.
...
Okay, so in my application, there are a bunch of winAPI and a few custom controls. Yay...
Now, normally, they will just quietly redraw themselves for animations, state changing, ect.... and it all works fine.
But I have a method of class Window called fix(). This is called whenever the whole window needs to be updated. It resizes the c...
It is a trivial matter of redirecting a console program's standard input/output, but what about if the program uses advanced console functions? Like outputting colored text, throwing the cursor around and manipulating the console buffer directly? Can that also be captured and redirected to my own program for processing?
Note: I'm talkin...
I need to see the component type, meaning the name of the class that was programmed, of a clicked control in another process. I need the type so I can react to the clicked control and then do some Automation tasks.
Right now I am doing the following:
1. I FindWindow() from Win32 to find the main window handle of the process.
2. Then, I...
in Visual Basic 6
How can i check that communication to port 443 is opened for network requests?
I must NOT use any 3rd party controls / activeX / OCX, so I'm looking for ways to send / receive an https or just make a connection to a server which is serving on 443,
using windows (2k/2k3/xp/7/vista) API calls.
There is a known server I...
I need to programmatically create a shortcut using C++.
How can I do this using Win32 SDK?
What API function can be used for this purpose?
...
I'm looking for a winapi function that will allow me to change current logged in user's password. In my case, I know current password of logged in user. I use Windows 7 Ultimate.
Thanks.
Background
The background will look weird, but I'm going to describe it for clarification. My personal home PC is used by several users (dad, sister,...
I'm using the ListView control from Common Controls 6.0 in C++ and I need the ListView to be single-select only.
All of the higher level controls have this feature (e.g. .Net and Qt), but I imagine they are based on this control deep down somewhere. Any ideas on how I can get this to behave as a single-select list?
Just in case it mak...
I'm new to Qt as of a few weeks ago. I'm trying to rewrite a C# application with C++ and have a good portion of it figure now. My current challenge is finding a way to detect the system idle time.
With my C# application, I stole code from somewhere that looks like this:
public struct LastInputInfo
{
public uint cbSize;
public u...
How to use createfile api open pagefile.sys and get it's handle ?
How does pagedfrg.exe tool open pagefile.sys and get it's file cluster info?
I want to using FSCTL_QUERY_RETRIEVAL_POINTERS to get this file's cluster info. The intent is to send strictly this FSCTL to analyze the used clusters for statistical purposes.
...
Hi,
I am working on a sample which send file to server. To send file to server I am using WinHttpSendRequest() API. In my machine It worked fine. But for some other machine it is not working. It gives the error ERROR_WINHTTP_CANNOT_CONNECT(12029). I checked the Firewall setting; it is same as my machine.
Please let me know why I am g...
Hi All,
I want to get the user name who has launched the given application. For Example if Outlook or IE is launched I need to get the Name of the user who has launched it. This should be generic across all Windows OS . But the solution given below is failing in Windows 2003 user ,in both ADMIN and Standard User.
...
How to get HANDLE for an application say Outlook from my program
...
Do you know what is the API, or sequence of API calls that windows uses to accomplish the "Eject" function which is available on the shell context menu for removable volumes?
So far I've tried two things:
using CM_Request_Device_Eject, I enumerate the removable disks (using the SetupDiXXX APIs), find the one that I'm interested in, w...
I want to create a dialog box that resembles the one created with GetOpenFileDialog. However, I want the dialog to display a list of filenames that the program provides, and these filenames don't necessarily exist as files in a directory. The purpose is to provide a dialog with a similar look and feel for opening files, but rather inside...
I'm building a custom authentication subpackage for MSV1_0 for Windows 7. I've used the msvsubauth sample in from the Windows SDK and I have 2 questions regarding some problems I'm facing with that:
When I'm trying just to make sure that the routine get's invoked and set the Auth0 property in the registry to my package and add a simple...
Is there a way to control/navigate windows explorer from the windows command prompt? Or just sync explorer with the prompt's current directory?
If for example I enter the command "c:>cd d:\folder\" in the prompt, the prompt's current directory will change right? What I'm aiming for is that as soon as prompt's directory changes the explo...
I'm writing a Windows service that must handle Smart card readers.
Very often, when I try to connect to an inserted Smart card, SCardConnect() fails with SCARD_E_SHARING_VIOLATION which basically means:
The smart card cannot be accessed because of other outstanding connections.
Fair enough.
I guess that a least one other process ...
Is there a way to detect if the IPv6 protocol is installed without looping through all available IP addresses and checking for IPv6 addresses? I can't find anything on msdn.
...