I'd like to prevent my window from being updated until I finish receiving data from the server and render it. Can I hook on the WM_PAINT event, or better still call some Win32API method to prevent the window from being updated and unfreeze it later?
More info:
In the context of an MMC snapin written in C#, our application suffers from a...
What I would like is to have the process start but have the input and output all be in the same console.
if(CreateProcessWithLogonW(user,domain, pass, LOGON_WITH_PROFILE, NULL, cmd, 0, 0, 0, &sa, &pe))
{
printf("[~] Process spawned with PID %X\n", pe.dwProcessId);
}
else
{
printf("[!] Failed to create process. Error Code: %X\n", GetL...
After a successful call to both LogonUser and ImpersonateLoggedOnUser it doesn't appear that my process is running as the new user...
system("whoami");
prints out:
Chris-PC\Chris
when it should be:
Chris-PC\LimitedGuy
Is there a function I'm not calling or something?
My code:
if(argc == 6) // impersonate
{
printf("[~] Logging...
Hi All,
I wanted to know is there any way to know the data card connected to laptop or desktop is in roaming or not.
I wanted to know does Vista or XP provides any API to identify this.
If any one of you have any other idea on this, please share with me.
with regards
Vinayaka karjigi
...
Dear All,
is there any way to know SIM is in roaming.
Does any AT cmd or any Remote Access Service API provides any help over this.
Or any TAPI api on win32 helps me in getting this information????
Please help me in this regard.
with regards
Vinayaka Karjigi
...
Possible Duplicate:
How to programmatically get DLL dependencies
On Windows, in a C++ program, I want to know if a given DLL (I know the path) is loaded by a given external process (I know the path of the exe), using win32 functions.
It must be possible to list all DLLs loaded by a process, as process explorer does.
Fabien
...
I've written a console program that "does stuff" - mainly using boost. How do I convert it to a Windows Service?
What should I know about Windows Services beforehand ?
Cheers!
...
What's an easiest reliable way to retrieve the fully qualified domain name of the current host in Win32?
I've tried calling gethostname(), but it returns a NetBIOS name.
...
How to get hardware id of the usb device using device id...i am using vc++6.0 and OS is xp.
is it possible by using wmi.
...
Hi,
I have a sample application and user control which uses separate copy of structure and enum.
I want to know how to define this enum and structure, in order to use in my sample application as well as in my user control without having multiple definitions . i.e. only one copy of enum and structure should be present.
Please let me kno...
I had to delve into this because the code that worked fine on Windows 2003/XP doesn't on Windows 7. Application launched by the use of CreateProcessAsUser fails with 0xc0000142 error code. The difference between my old code and one available from MSDN at Starting an Interactive Client Process in C++ is that I didn't set up privileges and...
I found a thread on MSDN that shows how to add an item to the context menu of a winform title bar. Unfortunately it does not show how to register an event with the custom menu item and I have been unable to figure out how to do it. Below is a sample app that can be copied and pasted into a new Windows Forms Application. I would appreciat...
Hi All,
I have a GPS device connected to my system which is having Windows Vista,
I wanted to read the NMEA sentences from GPS device and print on screen.
How I will come to know, on which port the GPS device has been connected, as there can be other devices also connected on various com ports.
I am developing the application in c++,...
Is there some way in the Win32 API to convert a three letter language code, as returned by GetLocaleInfo() with LOCALE_SABBREVLANGNAME specified, to a corresponding LANGID or LCID? That is, going in "reverse" to what GetLocaleInfo() normally does?
What I'm trying to do is to parse what kind of language a resource DLL is using, and so fa...
Hello all,
We have a C++ Win32 application which spawns, using Qt's QProcess (undoubtedly a wrapper for CreateProcess()), a secondary 'slave' program.
Unfortunately, when debugging the system with Visual Studio 2008, the debugger does not autoamtically attach to the spawned process.
I know it's possible to programatically trigger a de...
I have very limited knowledge of using C Builder, could you give me an example or point me to tutorial showing how to use FindNextChangeNotification in Delphi or ,if it is possible, how to use the C component in delphi?
...
I've recently posted a general question about RAII at SO.
However, I still have some implementation issues with my HANDLE example.
A HANDLE is typedeffed to void * in windows.h. Therefore, the correct shared_ptr definition needs to be
std::tr1::shared_ptr<void> myHandle (INVALID_HANDLE_VALUE, CloseHandle);
Example 1 CreateToolhelp32...
How to draw inside a child window?
I thought I should create the main window CreateWindow(WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN) with some WndProc (without WM_PAINT). On its WM_CREATE I create another window CreateWindow(WS_CHILD | WS_CLIPCHILDREN) with another WndProc2 which reacts to WM_PAINT.
However, it seems that the another handle...
Is there a function that returns when the other end successfully called ReadFile on the pipe.
I have 2 application communicating on a named pipe, one sends a request on the pipe using WriteFile and expects an answer so it calls ReadFile. The problem is that the application is reading its own request as the answer since the other end did ...
I need to get a simple description of the OS, such as "Windows XP (SP2)" or "Windows 2000 Professional" to include in some debugging code. Ideally, I'd like to simply retrieve it by calling a "GetOSDisplayName" function.
Is there such a function available for C++ win32 programming?
...