A auto start dll, ocx or sys file? [unresolved]
Can that be made? i would like to create a dll, ocx or a sys file and when windows start it could be auto loaded without beeing called from rundll or with regedit keys, because any user can delete that key.
That file is to keep me informed of all logins that exist after a windows start, and afer something like 10 seconds, the dll just needed to execute this:
sub main()
shell("cmd /c net user>>F:\users_files\logins.txt"),vbhide
unload me
end sub
F: is a network drive already mapped in that computer.
Any idea how to do this? :afrog:
Re: A auto start dll, ocx or sys file?
Quote:
Originally posted by TDQWERTY
Can that be made? i would like to create a dll, ocx or a sys file and when windows start it could be auto loaded without beeing called from rundll or with regedit keys, because any user can delete that key.
That file is to keep me informed of all logins that exist after a windows start, and afer something like 10 seconds, the dll just needed to execute this:
sub main()
shell("cmd /c net user>>F:\users_files\logins.txt"),vbhide
unload me
end sub
F: is a network drive already mapped in that computer.
Any idea how to do this? :afrog:
you need to create an service, but that can only be done with C++ or C#, dunno if VB.net can do it, VB6 can't if i'm not mjistaken.
Service's are the only things that can be started before somebody logs in.
creating a NT service in VB
Look at the following article in MSDN
An OLE Control for Creating Win32 Services in Visual Basic
http://msdn.microsoft.com/archive/de...n_ntsrvocx.asp
This might help.
Re: A auto start dll, ocx or sys file?
Quote:
Originally posted by TDQWERTY
Can that be made? i would like to create a dll, ocx or a sys file and when windows start it could be auto loaded without beeing called from rundll or with regedit keys, because any user can delete that key.
That file is to keep me informed of all logins that exist after a windows start, and afer something like 10 seconds, the dll just needed to execute this:
sub main()
shell("cmd /c net user>>F:\users_files\logins.txt"),vbhide
unload me
end sub
F: is a network drive already mapped in that computer.
Any idea how to do this? :afrog:
After looknig at this again, I noticed a problem with what you want to do. The service is running before anyone is logged in means that F:\ won't exist until after someone logs in. Not sure if you've accounted for that.