|
Hello,
In my opinion there is never a valid reason for hiding files and directories. There have been some software companies in the recent past who have implemented rootkit-like techniques for software protection schemes. This type of software protection is intrusive and can often be exploited by worms or viruses because the device driver generally does not check the identity of the calling process.
May I ask what your intentions are? Why do you need to hide files and directories?
Best Wishes,
-David Delaune
|
|
|
|
|
Thank you for asking. ^_^
To give you a detail about my intentions regarding hiding/unhidden these specific files, this is how it works.
I have a specific directory containing the application-generated-based files that starts and ends with, for example, "Xxxx_myFile.xxx" file; and I also have an application where contents/details of these files can only be viewed or modified.
To ensure confidentiality and avoiding these files/directories viewable (or modifiable/removable) to the users (including explorers and command "dir" viewing), other than using the application, these files/directories needs to be hidden for security purposes. And my driver will gets-in to the picture on hiding/unhidden these specific files (including the transaction logs and also viewable to the application).
Rest assured that this application will is not an exploitative type. ^_^
Hope that this will give you a view to the driver that I’ve currently developing with.
Best wishes,
-taDo-
|
|
|
|
|
Hi,
I have an Modem device (Mobile Data card) which I can open for communication via HyperTerminal at an Baud Rate("Maximum Port Speed") of 115200Bps only.
I can obviously change the Baud Rate value from the Device Manager for this modem device, but i want the Baud Rate to be changed from it's default value to 115200 programatically.
I did some googling and found that the Baud Rate for an device can be set using IOCTL, that is using IOCTL_SERIAL_SET_BAUD_RATE along with the function DeviceIoControl().
Found that this IOCTL_SERIAL_SET_BAUD_RATE is defined in the "ntddser.h" file.
Not able to figure out the location of this file and I am stuck here.
Could any body guide me on these lines.
Code snippet containing similar implementation would be of great help.
Do i need to install some Driver Development Package?
I am working on VC++8.0 on Windows XP.
Regards.
|
|
|
|
|
Marimuthu.r wrote: Found that this IOCTL_SERIAL_SET_BAUD_RATE is defined in the "ntddser.h" file.
The headers are available in the Windows Driver Kit[^]
Marimuthu.r wrote: Do i need to install some Driver Development Package?
No, its not required in your case. You can just copy the #defines to your VS2008 project and call the DeviceIoControl Function[^]
Here are the definitions you will need:
#define METHOD_BUFFERED 0
#define FILE_ANY_ACCESS 0
#define FILE_DEVICE_SERIAL_PORT 0x0000001b
#define CTL_CODE( DeviceType, Function, Method, Access ) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
#define IOCTL_SERIAL_SET_BAUD_RATE CTL_CODE (FILE_DEVICE_SERIAL_PORT, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
ULONG BaudRate = 9600;
NSSTATUS status = DeviceIoControl(hModemDevice, IOCTL_SERIAL_SET_BAUD_RATE,&BaudRate, sizeof(BaudRate), NULL, NULL);
Best Wishes,
-David Delaune
|
|
|
|
|
You dont need to use the IOCTL directly since there is a wrapper API in Windows to do this for you. Look at the various SetCommxxx() functions.
Morality is indistinguishable from social proscription
|
|
|
|
|
Don't know about doing it from within a device driver, but it's "easy" from user mode.
Have a look at the DCB[^] structure, BuildCmmDCB , GetCommState and SetCommState .
Enjoy,
Iain.
|
|
|
|
|
Hi, I'm using laptop Sony VGN-TZ398U[^] which is just purchase last month. The problem is when I fully charge the battery and turn it off and take it to use again 3 days later without touching it, i found that the battery reduce 30%. I don't know why this cause the problem. Could any one give me any idea about the cause of the problem? Thank in advance
|
|
|
|
|
I can think of two possible reasons for that.
0. The battery is having a really high leak current and is emptying itself really quickly. Check if it's down to <50% after a week without touching it. If that is the case I would contact Sony for a replacement. Just keep in mind that leak currents go up quickly with temperature. So bad storage of the laptop might also be the reason.
1. The battery capacity is usually measured by its voltage. The problem is that the battery is reaching its max voltage already when it's 70 - 90% full (while charging) and that the rest of the charging takes pretty long time. The charging and discharging curves are also not identical and the battery meter is adjusted for the discharge curve.
|
|
|
|
|
Jörgen Andersson wrote: The problem is that the battery is reaching its max voltage already when it's 70 - 90% full (while charging) and that the rest of the charging takes pretty long time
Thank you very much for your comment, But why does the battery already reach it ma voltage? Thank in advance
|
|
|
|
|
It's a safety measure. You can learn more on the charging of Li-Ion batteries here[^], check page ten in the pdf.
Battery University[^] is also good reading.
|
|
|
|
|
Lithium batteries may not fully charge at ambient high temperatures due to over temp protection.
Also all batteries have a self discharge rate: i.e. they start losing charge as soon as you disconnect the charger even if they are not being used. At 20deg C, a car battery will lose ~5% per month, Nickel Metal Hydride ~30% per month, Lithium ~3% per month. The discharge rates will increase significantly at higher temperatures.
Is it possible that there is still a drain on the batteries? For example do you hibernate the laptop instead of shutting it off? Do you have wake on lan or other settings turned on which will keep the computer running at low power?
If possible, charge the batteries fully, take them out of the laptop and put them in the refrigerator (NOT the freezer) for a few days. See what the charge is when you put them back into the laptop. If they are down more than a few percent they probably have an internal short, in which case you should definately stop using them and have them replaced.
Let us know what happens.
|
|
|
|
|
Member 4723455 wrote: At 20deg C, a car battery will lose ~5% per month, Nickel Metal Hydride ~30% per month, Lithium ~3% per month. The discharge rates will increase significantly at higher temperatures.
This battery laptop lose 30% from 100% to 70% within 3 days without touching it. So it lose 10% for one day. I think that is the problem.
Member 4723455 wrote: Is it possible that there is still a drain on the batteries? For example do you hibernate the laptop instead of shutting it off? Do you have wake on lan or other settings turned on which will keep the computer running at low power?
I'm sure that I'm shutting down the computer, now hibernate. For the other option such as wake on LAN, I didn't configure anything yet. I just using this laptop after it came out of the box.
Member 4723455 wrote: If possible, charge the batteries fully, take them out of the laptop and put them in the refrigerator (NOT the freezer) for a few days. See what the charge is when you put them back into the laptop. If they are down more than a few percent they probably have an internal short, in which case you should definately stop using them and have them replaced.
Oh, I don't dare to do it.
|
|
|
|
|
If it's brand new, out of the box, the battery meter has to "learn" the recharge and consumption curves. This takes time and it gets more acurate the more the power is drained from the battery and recharged.
Now, if the laptop stays powered off for a week and dies, then you've got a hardware issue with either the motherboard in the laptop or the battery.
|
|
|
|
|
Dave Kreskowiak wrote: If it's brand new, out of the box, the battery meter has to "learn" the recharge and consumption curves. This takes time and it gets more acurate the more the power is drained from the battery and recharged.
I used it as a brand new out of the box nearly 2 months. So I think the battery meter already the recharged and consumption curves.
Dave Kreskowiak wrote: Now, if the laptop stays powered off for a week and dies, then you've got a hardware issue with either the motherboard in the laptop or the battery.
Is there any method that I could isolate and identified whether the problem come from battery, mother board or any hardware related issue? Thank for your comment!!!
|
|
|
|
|
Yeah, replace one piece of hardware, like the battery, and watch what happens.
|
|
|
|
|
charge the battery, remove it from the laptop for a few days, put it back in. That'll see if the battery is bad or something in the laptop is draining power.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Mekong River wrote: For the other option such as wake on LAN, I didn't configure anything yet. I just using this laptop after it came out of the box.
How did it come configured out of the box? It is possible that Sony has enabled wake on lan, bluetooth, etc, so these features are using battery power even though the laptop is "off".
<blockquote class="FQ"><div class="FQA">Mekong River wrote:</div>Oh, I don't dare to do it.</blockquote>
The battery should just slide/snap in. You may need to release the lock(s), these will be slides as well. The laptop should run fine from the charger w/o the battery installed. If fact that is the recommended way to use if it is going to be powered from the charger all the time.
This would be the definitive test. If it loses 30% after 3 days in the frig, you definately have an internal short in the battery & should not continue to use it.
|
|
|
|
|
are you sure that it`s not a operating system eror?!!
i`ve seen it on some vista based laptops too
it`s Bcuz in vista the red botten that has the logo of shutdown just takes takes it on sleep mode !!!
if you have vista operating system ... might the same problem
|
|
|
|
|
Yes, I'm sure that I'm shutdown, not sleep mode. Because I already properly choose shutdown from the drop down menu.
|
|
|
|
|
Mekong River wrote: Yes, I'm sure that I'm shutdown, not sleep mode. Because I already properly choose shutdown from the drop down menu.
On my XP Desktop system and too lazy to go to the car andd get my laptop so my instructions maybe out of sorts. But to shutdown Vista, click the Start Button then look to the bottom right of the menu, you will see an arrow head pointing to the right, click it and select shutdown from the fly out menu. Any other method from the menu I believe just puts in in sleep/suspend.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Just set up a laptop to dual boot XP/Linux. Everything went well after the third or fourth try. (I am not an M$ fan, but Linux still has a few things to learn about documentation/ease of use).
Linux side works fine, good connectivity with wireless card to any available access point. So back to the XP side & oops – no wireless connection.
Go to View networks and no networks found. Hmmm…
Fire up netstumbler and it finds 6 available networks and the card connects to the last used AP.
Back to View Networks & still no networks found.
I am thinking perhaps the Linux drivers have put the card in a mode that is not recognized by Windows.
Re-booted - no change. Powered down – no change.
Reinstalled windows network drivers, turned off Zero Config. Turned zero config back on.
Still no available networks viewed and card will not connect (until Netstumbler is run).
This lappie has XP SR3 and an internal Intel 2200 wireless card.
Can anyone offer an idea what is going on?
Thanks!
Update: Cured by reinstalling Windows. But still curious if anyone else has seen this, a web search did not turn up a solution.
modified on Wednesday, November 19, 2008 2:58 PM
|
|
|
|
|
Reported as spam. No advertising in the forums. Buy the ad space like everyone else...
|
|
|
|
|
I am sorry for the spam,I find the people come here are mostly the specialist on software,my company want to develop a Java SDK for our product,seems not so many software designers understand our products,so maybe any one can give me a reference about what the cost will be to develop a Java SDK for our UHF RFID Reader?
|
|
|
|
|
it mostly seems like a spam !
isn it?
|
|
|
|
|
oh,I am sorry,no second times,
|
|
|
|