|
Hi,
I am able to get all the computers connected to a network.
Now my next step is to track the list of patches in these computers.
For this to achieve -pls advise me how to proceed.
Pls correct me if I am going wrong.
1.Detect type of OS on the target machine .
2.List the patches present on the target machine.
3.List out the dependancies of each patch.
For that-Do I need to know the list of softwares on the target machine?
-Do I need to know the list of service packages on the target machine?
-How a patch is detected on the target machine?
-How a patch is applicable on the target machine?
Regards
|
|
|
|
|
ykutanoor wrote:
1.Detect type of OS on the target machine .
GetVersionEx() should help here.
ykutanoor wrote:
2.List the patches present on the target machine.
Do you mean like the ones listed here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP5
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In order to list the patches present on the system -
I have to go through this path.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP5
But in my machine
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\
I am able to see 3 entries-
Data Access
Windows 2000
Windows MEDIA pLAYER
And under Windows 2000 -I am seeing 2 entries SP4 and SP5.
And in the path -
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
I am able to get a list of hot fixes.
What are hot fixes and are these patched?
Regards
Ydagiri
cAN U PLS HELP ME WITH THIS ONE?
I am doing a multi threaded application that involves exchange of data.
ONE UI THREAD
AND 3 WORKER THREADS.PLS LET ME HOW TO EXCHANGE THE DATA BETWEEN THESE 3 WORKER THREADS.
FOR EX:THE FIRST THREAD WILL GIVE THE SECOND THREAD THE 2 NUMBERS AS ARGUEMENTS.the second thread should return the first thread the sum.
Pls help
|
|
|
|
|
ykutanoor wrote:
I have to go through this path.
I was simply giving you that registry key as an example. It was not meant to be applicable on all systems.
ykutanoor wrote:
And under Windows 2000 -I am seeing 2 entries SP4 and SP5.
Ok, and?
ykutanoor wrote:
What are hot fixes and are these patched?
Updates that are sent out in between two normally scheduled updates (e.g., critical issue or vulnerability found).
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have a 3rd party program that when runs leaks memory in each call. The programm is running always. Is there any way to clean p the memory leaked by the program, any source help will be highly appreciated.
Tariq
|
|
|
|
|
I suppose you dont have the source.
Contact 3rd party program creator , maybe he has a newer version.
If you have modification rights (i doubt) you can try to patch it at the assembly level
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Tariq878 wrote:
I have a 3rd party program that when runs leaks memory in each call.
changed 3rd party if possible, more so if you're paying for it.
also, what do you mean by in each call ? each time you call it ? is it a DLL or something that you call an it allocate memory that you are in charge of freeing ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
If the program is allocating memory but failing to dealloocate it when done, there's nothing you can do about this. The code will need to be changed. Your only recourse would be to stop/start the program every once in a while so that Windows will clean up the mess.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi,
Anybody know how to include a picture in an excel sheet using VC++. I
can use AddPicture but it seems not supported by EXCEL 2003 object
model. Also, is there any way to insert the picture without explicitly
specifying the size of the picture?
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Hi,
I am trying to add MRU files in my application.For this I have defined an array and storing file names there.
Then I use InsertMenuItem API to insert file name in Menu.But it does not seem to work.I want to insert MRU files like we have in word , excel etc.
Is there any API through which I can collect MRU list from registry and then display them in Menu.
Thanks in Advance
|
|
|
|
|
Are you using MFC?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
No I am not using MFC. I am using win 32 SDK
|
|
|
|
|
Post the code your using to do that
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Please find attached code, Let me explain what I am doing.
I am storing file names in an array List[],Then I want to insert stored value in File menu at 10th position.For this I am using.
InsertMenuItem(ghMenuBar,10,TRUE,&MI);
Following error is coming
"The parameter is incorrect"
if(strcmpi(List[Count],szFileTitle) != 0)
{
strcpy(List[Count],szFileTitle);
// Result = GetMenuItemCount(ghMenuBar);
MI.fMask = MIIM_TYPE;
MI.fType =MFT_STRING;
MI.dwTypeData = List[Count];
MI.cch = strlen(List[Count]);
Result = InsertMenuItem(ghMenuBar,10,TRUE,&MI);
if(Result == 0)
{
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL
);
// Display the string.
MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );
// Free the buffer.
LocalFree( lpMsgBuf );
}
DrawMenuBar(hMainWnd);
Count++;
if(Count > 3)
{
strcpy(List[0],List[1]);
strcpy(List[1],List[2]);
strcpy(List[2],List[3]);
strcpy(List[3],szFileTitle);
}
}
|
|
|
|
|
I have moved a project - MFC - from VS6 to VS.NET 2003 and I can still compile the project in VS6.
In Debug I use incremental linking, and my project contains 10 libraries creating an exe file of 12.5 MB in debug (5 MB in release).
If I only touch a file, it will take 2 minutes and 30 seconds using 500 MB of memory to create the library and link using VS.NET 2003.
If I use VS6 and do the same thing it takes 20 seconds using maximum 20 MB of memory??
In VS6, MFC42 is used and in VS.NET 2003 - MFC71 but should the differance be so extreme?
_____
The incremental linking is not disabled and seems to work if I touch one of the files included in the main project file (this project only includes three cpp-files). Then the build takes about 30 seconds, rather reasonable. If I touch an obj file included in one of the lib's that the main project depends on - again the incremental build seems to work, the lib is rebuilt, but the linking takes "no" time.
But still - for no obvious reason if I touch any cpp file included in any of the libs, the obj file and then the lib are built, I will get a 2 minute linking when the exe is built from the lib's.
|
|
|
|
|
i want know how to set maximize button and minimize button to propertysheet.
M.Kailasam
|
|
|
|
|
There are two ways. If you use Win32 API, you must specify WS_CAPTION and WS_SYSMENU styles to the Create function call that creates the Windows window (property sheet).
If you use MFC, you need to derive a custom property sheet class, and override it's PreCreateWindow function. In here, modify the CREATESTRUCT 's style flag to include the earlier mentioned styles before calling the base class implementation that will actually create the window.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I am using CSocket for communication between client and server,CSocketFile and CArchive also used.
my problem is, if the controls transfers from one dialog to another dialog and from there if we send a data, it tells the error that unrefferenced filename ie.,(the error in CSocketFile and archive).and iam not able to send further.
But if we work in the same dialog where we create the socket it works perfectly..
can anyone please help me and give solution .
M.Kailasam
|
|
|
|
|
I have a socket application, where I use Send() to send a 400 byte message to another computer every second. It may send a few hundred messages fine, then I get WSAEWOULDBLOCK send errors continuously in my application and Send() returns -1. What should I look for to help solve this problem??
Thanks.
Jerry
|
|
|
|
|
TCP buffers your sent data up to the limit of the receiver's receive window. I suspect the receiver simply isn't reading the data from the socket, therefore not acknowledging the data, which means that the sending stack can't send any more data.
You're clearly using the socket in non-blocking mode; if you were using a blocking socket, your application would simply block rather than return WSAEWOULDBLOCK .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks for the info, does this error clear itself at some point?? I assume the receiver will begin receiving data again at some point and the condition will end.
Have a good day.
Jerry
|
|
|
|
|
Hello people as the subject says i need help in loading and then displaying 8 bit grayscale bmp.
Well i tried to use LoadImage function to load the bitmap but it fails, returns a NULL handle. Can anyone suggest how to do it.
Omar Alvi
|
|
|
|
|
Show us your code that calls LoadImage()
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hello people as the subject says i need help in loading 8 bit grayscale bmp.
Well i tried to use LoadImage function to load the bitmap but it fails, returns a NULL handle. Can anyone suggest how to do it.
Omar Alvi
|
|
|
|
|
How to implement Multiple Forms in Database Applications? Is it req MDI Apps for Multiple Forms Database Application?How to implement Client/Server Database Apps in VC++? Pl Give Sum guidelines and few examples?
dadsadasd
|
|
|
|