|
Hello everyone,
Are there any tool or other methods which could be used to monitor which class/method exe is accessing a DLL?
Now I met with an issue that when I provide the DLL I developed to a 3rd parth application, it will crash sometimes and I suspect the 3rd party application is invoking some class/method which I do not implement the DLL. I have the full source codes of the DLL, but has no source codes of the exe so I am wondering whether there are some methods to monitor the interactions -- e.g. I can monitor which class/method the exe is invoking and at the same time my DLL has not implemented.
I am using Visual Studio 2005 to develop native (unmanaged) C++ DLL, and I expose the interface of the DLL to exe through COM interface.
thanks in advance,
George
|
|
|
|
|
|
Thanks Jonathan,
I have used the tool before and I think it could only find the static dependencies of an EXE, for example the DLLs which is implicited linked to the EXE. For the DLLs which the EXE uses LoadLibrary to dynamically load at runtime on demand, does this tool provide the function to monitor?
regards,
George
|
|
|
|
|
Hi George,
It does you need to use the profile menu item, you'll then see all dynamically loaded DLL's as your application loads them, either on start up or using LoadLibrary()
regards,
|
|
|
|
|
Thanks Jonathan,
I have tried to enable all the checkbox in Profile menu and it could monitor which module is loaded at runtime, but it could not tell which method is invoking -- does the tool support? Do I need some special settings?
regards,
George
|
|
|
|
|
Hi All,
I m using NetWkstaUserEnum() function for getting active users of system.
1) But when I m using this function on windows XP, it works fine on some XP system & for some XP system it gives one user name twice which I don’t want.
2) In server system like windows 2k3 server, we can add other users as remote desktop users other than actual users of system. Total users of that system will be actual users & remote desktop users. More than one users can login to that system at a time.
Consider user1, user2, user3 are actual users of system & user4, user5, user6 are remote desktop users of windows 2003 server system. User1 is currently login. Remote desktop user user4 is logged in & logged out. Remote desktop users user5 & user6 are also logged in. now when I use function NetWkstaUserEnum() for getting active users, expected result is user1, user5 & user6 but it gives the user1 three times & user4, user5, user6. User4 is logged in & logged out, still it giving that user name. I verify this output with one of the tool available on codeproject, it also giving same output which I getting using that function. I don’t whether I m making mistake or is the problem with system. If I m using other API, let me know the API which will give me exact result.
3) Currently I m extracting past local users means which are not currently login from registry. I want to know the API if available for getting past local users.
Thanks,
Subhash
|
|
|
|
|
Subhash Karemore wrote: I want to know the API if available for getting past local users.
What is "past local users?" Are those accounts that have not been logged into for some period of time?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Ya, past local users means u can say passive users or the users which are available on system but not currently login.
Thanks,
Subhash
|
|
|
|
|
Subhash Karemore wrote: ...users which are available on system but not currently login.
You might try NetQueryDisplayInformation() or NetUserEnum() . Another item of interest is NetWkstaUserEnum() .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
I m using GetTcpTable() & GetUdpTable() for getting information of network sockets(TCP, UDP) but it doesn’t give PID of process. Therefore I used GetExtendedTcpTable() & GetExtendedUdpTable() for getting information of network sockets which gives PID also. But those two function doesn’t work on windows 2000. I want to know the API for windows 2000 which will give me the information of network sockets along with PID.
Thanks,
Subhash
|
|
|
|
|
hi
i have a application to view the directories and folder
when i click combo box.
can u say how to use dlgdirlistcombobox in detail
k.guru moorthy
|
|
|
|
|
From the MSDN[^]
It looks like you just call it with a path and the ID of your control. It seems to know how to populate it.
here's a code sample from the MSDN
<br />
TCHAR szPath[MAX_PATH];<br />
_tcsncpy_s(szPath, MAX_PATH, _T("C:\\"));<br />
pDialog->DlgDirListComboBox(szPath, IDC_COMBO1, 0, DDL_EXCLUSIVE | DDL_DIRECTORY);<br />
<br />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
|
Hi all ,
i used the IsUserAnAdmin() def in Shell32.dll to find out if a logged in user is an admin or not , it worked fine on XP , but fails on Vista , on Vista , even for Admin it returns false
Can anybody help me out ?????
Thanks in Advance
Vijayeta
|
|
|
|
|
I found this: see this[^]
I bet you have to deal with UAC to find out what you want on Vista.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
, But is it possible using VC 6.0 to find out if Vista is installed (ie the OS Type ) ???
|
|
|
|
|
Yes it is!
OSVERSIONINFO osVersion;
memset( &osVersion, 0, sizeof(osVersion) );
osVersion.dwOSVersionInfoSize = sizeof(osVersion);
GetVersionEx( &osVersion );
bool isVista = (osVersion.dwMajorVersion==6) && (osVersion.dwMinorVersion==0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Thank You so much ,
i was really stuck on this part , trying to browse thru MSDN ..
So now i can try to use the Vista UAC ..
Thanx
Vijayeta
|
|
|
|
|
Hi all,
I got a small trouble, If some one know how to do please tell me, many thanks.
I want to assign szData value into textBox->Text, but two kind of variable different type.
I used Visual Studio 2005, and deverloped VC++ language.
<br />
private: System::Windows::Forms::TextBox^ textBox;<br />
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { char* szData = "abcabcabcabc";<br />
textBox->Text =
}<br />
|
|
|
|
|
Seems you are in wrong forum...
- NS -
|
|
|
|
|
NS17 wrote: Seems you are in wrong forum...
he he he!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
|
Hi frenz
I have a ComboBox and ListControl in my dialog box.Based on the combobox selection i need to update the ListControl . How do i Do that??
Thanks in advance
With Reagards
Vikas
|
|
|
|
|
Do you want to change datas on the listctrl when you select an item of Combobox?
|
|
|
|