|
sujayg wrote: But it does not return the handle of the Window ( SysListView32 )
that list view is not the desktop window, it is a child of a child of the desktop.
you can verify that with Spy++ by looking at the ID of the Desktop window as shown in the default window list compared to the ID of that list view.
the listview is a child of the Program Manager, which is the Windows Shell.
|
|
|
|
|
Any idea how can I get the handle to that
I guess I need to use FindWindow or FindWinodwEx, but on what.
If you can help me with the code or at least the logic, I can try
|
|
|
|
|
use FindWindow to find "Program Manager", then use EnumChildWindows on its children.
or, the long way...
get the desktop window, then use EnumChildWindows to find the listview.
note that EnumChildWindows is recursive, so it will do a search of every window in the system if you start at the desktop. but, just look for a window of the SysListView32 type whose parent is the "Program Manager".
|
|
|
|
|
Try this:
HWND hProgMan = FindWindow("Progman", NULL);
HWND hDefView = FindWindowEx(hProgMan, NULL, "SHELLDLL_DefView", NULL);
HWND hSysListView = FindWindowEx(hDefView, NULL, "SysListView32", NULL);
Nuri Ismail
|
|
|
|
|
sir
sir c++ .exe file i decompile but file is compress coding with
Copyright 1989-1995 PKWARE Inc. All Rights Reserved
Patent No. 5,051,745
PKWARE Data Compression Library Reg. U.S. Pat. and Tm. Off
then how i can decompress this coding and decompile for exe file please please slove my problem and give me a chance say to thaks.
rizwanadmani@gmail.com
Regard's
Rizwan Admani
|
|
|
|
|
"pkware" should be handled by most compression/decompression tools in the XXI century (winzip, winrar, 7zip...)
after that, on the subject of decompilation, it's a hard one, you cannot simply decompile a EXE compiled with C++ and hope to see something resembling the original source code; and the resulting "code" would be hard to understand even for an expert C++ programmer.
or, simpler :
why do you need to decompile a C++ exe file ?
This signature was proudly tested on animals.
|
|
|
|
|
dear all exe file compiled with c++ i am lose my source code how can i decompile and give me a tools name of decompile and my friend my query compressed from pkware software like my query this view how can i decompress my coding and how can decompile my source code,
Please help me any experts
Copyright 1989-1995 PKWARE Inc. All Rights Reserved
Patent No. 5,051,745
PKWARE Data Compression Library Reg. U.S. Pat. and Tm. Off
yyyyyyjjjjyyyyyyyyyy 77ujyyyyyyyyy99iuyyyyyyyyyyyyiiiyyyyyy
yyyyyyjjjjyyyyyyyyyy 77ujyyyyyyyyy99iuyyyyyyyyyyyyiiiyyyyyy
yyyyyyjjjjyyyyyyyyyy 77ujyyyyyyyyy99iuyyyyyyyyyyyyiiiyyyyyy
yyyyyyjjjjyyyyyyyyyy 77ujyyyyyyyyy99iuyyyyyyyyyyyyiiiyyyyyy
Regard's
Rizwan Admani
|
|
|
|
|
RIZWAN ADMANI wrote: Copyright 1989-1995 PKWARE Inc. All Rights Reserved
Patent No. 5,051,745
PKWARE Data Compression Library Reg. U.S. Pat. and Tm. Off
You cannot decompile a compressed exe file; it is compressed in order to protect it from being reverses engineered.
modified on Thursday, November 5, 2009 8:53 AM
|
|
|
|
|
Hi Friends iam naive to coding i want to crack the PST file, iam able to crack Inbox folder and all mails from it . can any tell me the process so that i will crack the contacts, any samples related to it so that i will retrieve each and every thing from contacts.
I tried the contacts folders in the same way as Inbox Folder but iam unable to do it please any body help me out regarding this
BestWishes,
Pardhu.
|
|
|
|
|
Use Outlook Automation.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
what is this Outlook Automation...... can u brief it so that i will get into things....
|
|
|
|
|
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Check out MFCMAPI Sample .. you can down load it..
|
|
|
|
|
i think MAP API is there ..i hope it would help 4 u ...
|
|
|
|
|
Hi,
I have one SQL query, i want to update it in one database. Please check that SQL query below.
update employee set emp_name = 'Ravi' where emp_id = 1
I know that the below query will help me to get the records count..
update employee set emp_name = 'Ravi' where emp_id = 1; Select @@Rowcount Updated
But i want to execute this query through my VC++ code.. Cany one help me out how to execute this query and how to retrieve no of records updated count as return value..?
Can any one help me out as it urgent requirement for me..
Thanks
John.
|
|
|
|
|
I think you should start here[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Try Like this
char *name="ravi";
int index=1;
CString str=_T("update employee set emp_name =");
str.format("'%s' where emp_id=%d",name,index);
and pass str as argument to ur Execute query...
Hope it is ur answer wat ur looking for it.
Can u please tell me what are the settings that we need in project to connect to database from VC++. please share it so that it wil be help full for me please
|
|
|
|
|
John502 wrote: Cany one help me out how to execute this query...
Have you tried SQLExecute() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi there,
quick question. How can one use the system() call to start an external exe with a wstring (WCHAR) as parameter?
Or is there an alternative?
Souldrift
|
|
|
|
|
Nevermind .. I found it ... _wsystem().
*blush*
Souldrift
|
|
|
|
|
Hi,
I have a console program (.exe) that i want to call from a C++ program. How do I pass the parameters to the console program from my C++ program.
Thank you in advance!!
BAC
|
|
|
|
|
 Use this function which does CreateProcess with the parameter u want
size_t ExecuteProcess(std::wstring FullPathToExe, std::wstring Parameters, size_t SecondsToWait)
{
size_t iMyCounter = 0, iReturnVal = 0, iPos = 0;
DWORD dwExitCode = 0;
std::wstring sTempStr = L"";
if (Parameters.size() != 0)
{
if (Parameters[0] != L' ')
{
Parameters.insert(0,L" ");
}
}
sTempStr = FullPathToExe;
iPos = sTempStr.find_last_of(L"\\");
sTempStr.erase(0, iPos +1);
Parameters = sTempStr.append(Parameters);
wchar_t * pwszParam = new wchar_t[Parameters.size() + 1];
if (pwszParam == 0)
{
return 1;
}
const wchar_t* pchrTemp = Parameters.c_str();
wcscpy_s(pwszParam, Parameters.size() + 1, pchrTemp);
STARTUPINFOW siStartupInfo;
PROCESS_INFORMATION piProcessInfo;
memset(&siStartupInfo, 0, sizeof(siStartupInfo));
memset(&piProcessInfo, 0, sizeof(piProcessInfo));
siStartupInfo.cb = sizeof(siStartupInfo);
if (CreateProcessW(const_cast<LPCWSTR>(FullPathToExe.c_str()),
pwszParam, 0, 0, false,
CREATE_DEFAULT_ERROR_MODE, 0, 0,
&siStartupInfo, &piProcessInfo) != false)
{
dwExitCode = WaitForSingleObject(piProcessInfo.hProcess, (SecondsToWait * 1000));
}
else
{
iReturnVal = GetLastError();
}
delete[]pwszParam;
pwszParam = 0;
CloseHandle(piProcessInfo.hProcess);
CloseHandle(piProcessInfo.hThread);
return iReturnVal;
}
|
|
|
|
|
Reading CreateProcess function documentation [^] may help.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello Friends
I created a .exe and when I try to run that It shows a MessageBox that Displays
"The Application failed to initialize properly(0Xc0150002).Click on OK to terminate the application"
Any Ideas?????
Thanks
Yogesh
|
|
|
|
|
yogeshs wrote: I created a .exe
How?
yogeshs wrote: Any Ideas?????
Yes, click on OK to terminate the application.
|
|
|
|