|
On Vista, there is a new group policy setting to disable USB drives.
|
|
|
|
|
You can disable/enable USB port by editing registry.
In order to disable USB port:
RootKey=HKEY_LOCAL_MACHINE
Key to open: "SYSTEM\\CurrentControlSet\\Services\\USBSTOR"
WriteInteger("Start",4)
Start is the name of REG_DWORD value, and 4 is the proper data for that value
In order to enable USB port:
RootKey=HKEY_LOCAL_MACHINE
Key to open: "SYSTEM\\CurrentControlSet\\Services\\USBSTOR"
WriteInteger("Start",3)
Start is the name of REG_DWORD value, and 3 is the proper data for that value
I've tried it with Windows 2000 and it worked
|
|
|
|
|
thank you for the answer. Is it possible to disable without changing registry value?
since this value can be changed by user using some registry comparision software's.
|
|
|
|
|
"Advanced User" doesn't have permission to change this registry value.
To change it your application has to be a windows service application. Only administrators can install windows service applications. You can also use simple application but it has to work with administrator privileges anyway.
The conclusion: someone who wants to change that value has to be logged on as administrator ....so he has to know the admin password.
I don't know other ways to disable USB port..
However If someone is able to change your registry values, it means that he can do whatever he wants to with the comupter because he has admin privileges, so even if you disable USB port in some other way I don't believe that there won't be any method to enable it back...
Ofcourse you can uninstall your USB ports or block them in BIOS
But again if someone smart sits near the computer there is no 100% surety that he won't break your computer protection
The only way is .... physical removing all USB ports from your "can" :]
P.S. If you find other solution how to disable USB port
please let me know
|
|
|
|
|
Same question isnt helpful for get answer
|
|
|
|
|
By mistake i had posted twice.
|
|
|
|
|
why would this
item.Format("%3f", eTable[4*i]);
lvi.mask = LVIF_IMAGE | LVIF_TEXT;
lvi.iItem = i;
lvi.iSubItem = 0;
lvi.pszText = (LPTSTR)(LPCTSTR)(item);
m_Table.InsertItem(&lvi);
make the display in the table show with 6 decimal places. Even if I change the %3f to %1f it's the same, so maybe I'm missing something. I copied and pasted the code from an article here
|
|
|
|
|
ldsdbomber wrote: make the display in the table show with 6 decimal places.
Because you didn't tell it to do any different.
item.Format("%.3f", eTable[4*i]);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
bloody hell. I'm going senile.
thanks, by the way
|
|
|
|
|
I want to transfer value of one form or frame to the other how can i do that
suppose first is the registration form and second form is frame
|
|
|
|
|
where have you tried to ?
|
|
|
|
|
Does the other frame have "setter" and "getter" methods?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
DavidCrow wrote: Does the other frame have "setter" and "getter" methods?
why does your text appear transparent ?
|
|
|
|
|
Your answer is hide;P
|
|
|
|
|
Transparent reply for a transparent user!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Transparent reply for a transparent user!
ok, now i get it
|
|
|
|
|
In this period we see many transparent user(David) I guess they are student!?
|
|
|
|
|
Oh I guess its a response but Im not sure
|
|
|
|
|
Thats good style and deserves a 5!
Failure is not an option - it's built right in.
|
|
|
|
|
I am interested in learning how to compile a MASM piece of coding, what tool is best to use and how to set things up to compile, I dont need everything laid on a plate just basics and I can figure it out from there.
P.S. Sorry if this is the wrong section.
|
|
|
|
|
cnoob_84 wrote: what tool is best to use
MASM?
We're both talking about the MacroASseMbler, do we?
Failure is not an option - it's built right in.
|
|
|
|
|
Yes I want to assemble a masm piece of code that is complete and it is a .dll loader/injector.
|
|
|
|
|
cnoob_84 wrote: DLL injector
Then the Black Hats are hiring again?
First and foremost, you need MASM, the Microsoft Macro Assembler.
MASM generates obj chunks from the assembler code thay can be linked without problem by VC++.
Last time I used MASM (with code I got ready made from a team member), it was VC5. No idea whether or how it works with newer compilers/linkers.
For minor chunks of code, there is always the inline assembler. See MSDN for that.
Failure is not an option - it's built right in.
|
|
|
|
|
Ok thanks, any more help is appeciated will let you know how it goes.
|
|
|
|