Please check this link which talks about the "Refresh" method. It Updates information. http://msdn.microsoft. com/en-us/library/aa392091(VS.85) .aspx
When I use the DLL with DLLImport, how and where to specify the public functions/objects that I want to use....
User Profile
Collapse
-
Thanks for your reply.
I think there is no Refresh method in C#.Net like SWbemRefresher. Refresh . Do you know any equivalent method for that in C#.Net to refresh the Objects.
to make use of Refresh method I am calling vb 6.0 method in C#.Net.
I Tried with DllImport also, It is giving the error "entry point not found" in vb 6.0 dll . If you have any solution for this, please provide that s...Leave a comment:
-
Post Cont...
When I run the C#.NET application getting the exception
An unhandled exception of type 'System.Runtime .InteropService s.COMException' occurred in HandleCountSamp le.exe
Additional information: Exception from HRESULT: 0x80041003.
what is the solution of this error.
I observed that This line is giving exception
Set objRefreshableI tem = objRefresher.Ad dEnum(objServic esCimv2,...Leave a comment:
-
Calling VB 6.0 Function from C# .Net
Hello All,
I am having vb 6.0 ActiveX dll contains one method
...Code:Public Function GetHandleCount() As String Set objRefresher = CreateObject("WbemScripting.SWbemRefresher") Set objServicesCimv2 = GetObject("winmgmts:\\" _ & "." & "\root\cimv2") Set objRefreshableItem = objRefresher.AddEnum(objServicesCimv2, "Win32_PerfFormattedData_PerfProc_Process") -
-
Remote Desktop LogonType
Hi..
In win32_LogonSess ion Class in Wmi.
http://msdn.microsoft. com/en-us/library/aa394189.aspx
for Logon Type parameter value is 10 then user logged in as RemoteInteracti ve
http://www.windowsecur ity.com/articles/Logon-Types.html
But when ever connected by system using Remote desktop..the Logon type value is not changing ..it always returning some 5 values like 2,3,3,5,11..
What... -
Enable or disable a specific USB port on remote system
Hi..
In local system, under universal serial bus controllers in Device manager.We can enable and disable the particular USB port.
How can we do the enable and disable the particular USB port in remote system? there is any WMI mechanism ?( means any win32 class is there to change enable and disable property of a particular USB port)
if there is no wmi mechanism.. how can we achieve the same?
... -
Ya..we can get the log for console or RDP... but eventcode = 682 says
"A user has reconnected to a disconnected terminal server session."
http://technet.microso ft.com/en-us/library/cc787567.aspx
so, if we connect to the system at very first time..we can't say event code = 682....more over ..session name we can see in event viewer...how can we get the session name using win32 class .......Leave a comment:
-
Check this link..here they saying how to enable the audit log events...
After you enable.. if You make a RDP connection then security events will their in event viewer in the system where RDP connection is made ..
http://technet.microso ft.com/en-us/library/cc787567.aspx...Leave a comment:
-
sorry..i didn't able to find the win32_SessionLo gin class..in google also i can't able to get documentation for this class..can u tell me under which namespace it present..or any documentation regarding this class..
In security logs you can find the information...b efore that you need to enable the audit log events in local security settings ..to get security events.....Leave a comment:
-
Hi Plater..
i searched win32_LogonSess ion class..but i'm not getting logn type = 10.. instead i'm getting value as 2,3,5 and 11...but logontype = 10 is displayed in security logs......Leave a comment:
-
cont...My question is ..
* If i see the security log through Event viewer ..I'm able to see the log with logontype = 10 .i need to retrive the same information through WMI..
* So, i connect to the system using wmi and access the win32_NTLogEven t class ...i'm getting the log but there is not parameter to retrieve logon type...If i retrive the 'message' parameter value ...logon type is coming along with other information...Leave a comment:
-
some forums says..to know RDP connection is made through remote desktop or using rdp protocol..enabl e the Audit logon events in local security settings.
http://windowsitpro.com/article/arti...n-type-10.html
...then whenever connection is made we will get security log with Logon type = 10..If logon Type is 10 the user logged as RemoteInteracti ve ..
http://www.w...Leave a comment:
-
Event for Remote desktop Connection
Hi ,
I need to monitor for Remote desktop connection is made for a particular host.
There is any WMI event ?.if not how can monitor for remote desktop connection..
(Basically i need to generate a event from remote host that connection is made by xxx user ...)
Thanks in advance..
-Sakthi -
Problem in RegistryKeyChangeEvent
Hi,
during Registry key change event ,if i give wrong keypath .it saying invalid query.if i give existing keypath then code is executing correctly ...
my doubt is ,how the event registration is happening in case of Registry key change.
why it saying invalid query in case of wrong input to the keypath.eventho ugh the keypath should accept a string ..any reference to the same..
Code:
strQuery... -
sorry, i'm not asking wmi event lead to a denial of service attack....my query is..if denial of service happen in some system..then how can i notify (by sending events) to my server..that "dos" is happen in host on this port.... there is any wmi or non-wmi mechanism available......Leave a comment:
-
Wmi Event for Denial of Service attack
Hi,
There is any wmi event for deniel of service attack.if not,there is any other procedure to get a event for Denial of Service attack .
Thanks in advance,
Regards,
Sakthi -
hi dirtbag.. from the code you posted ...i'll get the last bootup time after i connected to the particular host ..but i need to generate a event from remote host after boot up.....Leave a comment:
-
Wmi event when the remote Host is booting up
Hi,
How can i get event for remote host is booting up,there is any wmi mechanism for the same.if not,what is the other procedure to get a event for remote host bootup/startup time .
Thanks in advance,
Regards,
Sakthi
No activity results to display
Show More
Leave a comment: