When I am on windows xp or later, I could get SERVICE_CONTROL_SESSIONCHANGE event by calling RegisterServiceCtrlHandlerEx and HandlerEx .But when I am on windows 2000 ,the SERVICE_CONTROL_SESSIONCHANGE event does not support windows 2000. And now I am willing to get the logon and logoff event on windows 2000 in my service (win32 service), I could not find any method.
EverettJF
Posts
-
get logon and logoff event in an service on windows 2000 -
10 & 10/3*3 are not equal ! ! ! WHY?i remember,when i was a student, my c language teacher told me , if i compare two "float" or "double", i should check it between a very little number. such as , const float c_tmp = 0.000001; bool b; float f1 = 10.0; float f2 = f1 / 3; b = (f1 >= (f2 * 3.0) - c_tmp) && (f1 <= (f2 * 3.0) + c_tmp);
-
how to get cdrom serial numberI tried Win32_PhysicalMedia , I do not know why I only got \\.\PHYSICALDRIVE0 , and almost all of the detailed infomation is NULL(such as "Name"). while I could get detailed infomation with Win32_CDROMDrive. Thanks anyway :)
-
how to get cdrom serial numberNice ! I will test it ! Thanks a lot!
-
how to get cdrom serial numberyes, I just used Win32_CDROMDrive . But the member VolumeSerialNumber is empty , and SerialNumber Data type: uint16 Access type: Read-only Number supplied by the manufacturer that identifies the physical media. Example: WD-WM3493798728. Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95: This property is not available. I am on Windows XP. Thanks :)
-
how to get cdrom serial numberI have tested GetVolumeInformation(), it can only obtain the physical disk C:\ .. but it can not do with my H:\ (my cdrom)
-
how to get cdrom serial numberI use the software "Everest" to obtain detailed infomation about my cdroms, including description,serial number ,cach size and so on . Now I wonder how "Everest" obtain such detailed infomation. Now I just need the serial number of my cdrom. How? Thanks.
-
unicode to multibyteor use like this:
#include "StringA.h"
#include "StringW.h"CStringW sTestW( L"Test" );
CStringA sTestA( "Test" );// convert
CStringW sConvertW = sTestA;
CStringA sConvertA = sTestW;
</pre> -
How do I get the notification when the user modifies the DNS server address?I could user ip helper api (NotifyAddrChange and NotifyRouteChange) to get the notification when the user changes the IP address,subnet mask , but when the dns server address( main and the other) is modified , I could not get notification. Is there any method ? Thanks!
-
How could I monitor the network adapter status ?thanks, may be I should get the COM
-
How could I monitor the network adapter status ?I expect to monitor any of the network adapter. may be 2 ,may be only 1.
-
How could I monitor the network adapter status ?I mean , when the user disable or enable the adapter, my application could get the notification , I am an application level developor ,I know nothing about the Windows Driver Develop. Is there any API or methods could work? Thank you!
-
Calling dllGetProcAddress(myDll,"function1"); maybe the 2nd parameter is the key. you could use "dumpbin /exports myfile.dll" to check the exported functions' name. then,give the right name string. i think your dll should include .def file
modified on Tuesday, December 29, 2009 3:16 AM