|
Hi all,
I working on application that is used to monitor Insertion and Removal of USB drives.
here we can also enable or disable usb drives.
with the using of this registry value.
Local_Machine>>System>>CurrentControlSet>>Services>>USBSTOR
here the value os Start decide usb drive is enabled or disabled.
if Start==3
if Start==4
when i set this registry value on client machine its working fine.
but in case of server when i disable the USBSTOR its set the registry value to 4 but usb drive detected by server.
please help me for this.
thanks in advance.To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
There can be CurrentControlSet's for a server .. CurrentControlSet001 ,CurrentControlSet002 and soon so u will have to change values for all of them.
<b><I>Kushagra
|
|
|
|
|
its working fine for client machines without restarting To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hello, everybody. I seek the watermark subject in codeproject, although some articles give fact about the watermark, I need further more detail about the information. Sorry for my poor English, non-native English speaker. Thanks!
|
|
|
|
|
Symfund wrote: I seek the watermark subject in codeproject, although some articles give fact about the watermark, I need further more detail about the information.
This one looks promising: "WaterMarker".
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Edit: looks like the cert cant be base-64 encoded
cacert.cer is a X509 base64 encoded certificate
ifstream file ("cacert.cer", ios::in|ios::binary|ios::ate);
char * memblock;
int size;
if (file.is_open())
{
size = file.tellg();
memblock = new char [size+1];
file.seekg (0, ios::beg);
file.read (memblock, size);
memblock[size]=0;
file.close();
cout << "Certificate file has been loaded!\n";
}
byte* byteblock = new byte;
byteblock = (byte*)memblock;
mycert = CertCreateCertificateContext(X509_ASN_ENCODING,byteblock,size);
if (!mycert){
cout << "error: " << GetLastError() << "\n";
}else{
cout << mycert->pbCertEncoded << " encoded cert\n";
}
What am I doing wrong?modified on Sunday, February 7, 2010 6:03 PM
|
|
|
|
|
Hey guys, i am having a problem formatting my text in a file. what i did was to extract some information from a html file and i would like to format it. Currently my information comes out in this way...
Code: Select all
Cast (Cast overview, first billed only), Sam Worthington ... Jake Sully ,Zoe Saldana ... Neytiri ,Sigourney Weaver ... Dr. Grace Augustine ,
what i would like to achieve is for the program to read the "," and then based on then "," paste it to a newline and continue.. for example...
Code: Select all
Cast (Cast overview, first billed only)
Sam Worthington ... Jake Sully ,
Zoe Saldana ... Neytiri ,
Sigourney Weaver ... Dr. Grace Augustine
Anybody can give some clue on how i can format my text according to this way? Hope for some help in this. Thanks!
|
|
|
|
|
I think the first step is to handle
gregarion wrote: Cast (Cast overview, first billed only),
so I'd sugget searching for the bracket ')', adding one more to the character position, then removing that part of the string... then, the rest of what you need can be performed by tokenising (look it up, plenty of info/examples around) on the ',', giving you the sub-strings of cast ...
'g'
|
|
|
|
|
In the book I am following in C++ it has two lines for the bolean operators that signify OR. How do I type those?
|
|
|
|
|
If you cannot find the symbol '|' on your keyboard (for instance, on English keyboard it is -shifted-, close to 'z' key), type ALT+124 (use the numeric keypad to type digits) to insert it.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What kind of English keyboard do you have? The '|' key is diagonally opposite the 'z' key on my keyboards. Even on the Dvorak layout, they're on the same side but two rows apart. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
My best guess is Carlo is on this Italian Qwerty dialect[^].
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
But that't not English. It has letters with all those funky accents. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
I wrote English, not American (do you speak English in the US? ) [^].
As Luc said, I have the Italian one, of course.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: do you speak English in the US?
Yes (American English), and the folks in the UK speak British English."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Do you understand irony in the US?
Sorry, that was irresistible...If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes, and some of us speak excellent English. We were even thoughtful enough to spend the last half of the 20th century exporting it to the world as a common language. You're welcome. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
it is the "vertical bar" twice, on my QWERTY keyboard vertical bar is on the backslash key.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
try this.
Assuming windows XP.
Start->RUN->Type "charmap" select font "arial" you will find "|" pipe character in 5th row, 11th column, then you can select that character and copy to clipboard.
or Start->All Programs->Accessories->System Tools-> "Character map" in general on other OS.
HTH
|
|
|
|
|
i have made a simple hardware interface consisting of an ADC and am trying to connect it to my labtop through usb,,i searched the net and i found that to access usb i need to have a driver for the device and this is done in kernel mode , unfortunately ,i dunt know how to write a driver although am familiar to c++ and vb codes
if any body can help me to write this driver ,, I need it to allow me to send and recieve bits from the ADC (in serial of course)
|
|
|
|
|
Maybe what you need is WDK[^]
I think you can also create a virtual COM port "towards" USB devices somehow and then you can reduce the communication with your device to reading/writing the COM port which is probably easier than writing a driver.> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
how can i create this virtual com port plz ?
|
|
|
|
|
Sadly i don't know, sorry, try google... > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
How does your device handle the USB?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|