|
Hi
How to find whether my application is running on laptop machine or desktop machine ?
any win api would help ? or any other thing needs to be looked up.
sonani prakash
|
|
|
|
|
There isn't any API to do this. There really isn't any method of reliably determining this. Why should your application care?
|
|
|
|
|
The only reason I could think you'd want this is for power saving if on a laptop. In which case you want to check the power settings of the machine rather than find out if the machine is a laptop.
|
|
|
|
|
Thanks,
Only way I am thinking is have to search for battery if it's present then it's laptop otherwise it's desktop...
sonani prakash
|
|
|
|
|
Do UPS systems use the same API for battery reporting as laptops? IF so this would only be able to definitively identify some systems as desktops.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
dan neely wrote: Do UPS systems use the same API for battery reporting as laptops?
I thought the same thing but then remebered that UPS is shown on a different tab to batteries and have a few different properties.
|
|
|
|
|
Hai Everybody,
I want to create an application in which i have to have a single CPU but the results has to be displayed in multiple monitors which are all connected to it. Can any one help me by specifying the requirements.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Don't Crosspost.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
What is the platform are you working in. Please throw some more light over the requirements your project has. Also are you to use any specific Graphics Adapter.
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
Hi, I want to be able to set the wake-up (or resume) time on a PC by programatically changing the contents of the BIOS NVRAM. Does anyone know the detail of the mapping of the parameters within NVRAM (specifically the offset of the wakeup time hours, minutes, seconds location and also the checksum location) - I AM assuming that these are fixed as other applications seem to be able to "wake-up" PC's programmatically. I've been "Googling" for ages on this and haven't had any luck !
UPDATE:
Have now found that the RTC registers are what I need and they're accessable via port x'70' and x'71' Hopefully, I'm on my way !!!
-- modified at 18:01 Sunday 15th July, 2007
UPDATE 2:
Looks as though "something" is overwritting the RTC alarm registers at power down as they revert to the BIOS setup screen values. Anyone know anything about this ? (P.S. Believe the RTC is in the SiS962 south-bridge chip)
-- modified at 3:45 Monday 16th July, 2007
Doug
|
|
|
|
|
The "something" is the BIOS setting the desired values, because the standard application for the BIOS alarm is to wake up at the desired time. It is therefore important that the registers be written once again during powerdown.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Hi Sebastian,
Thanks for your reply !
I understand that the BIOS alarm values must be set into the RTC. But I would have thought that this would only happen when the BIOS setup screen was changed by the user - not at EVERY power down ! Accepting that this is what happens, where are the BIOS values stored in the interim and copied from ? My only thought is that it must be copied from NVRAM. Are they at fixed locations or dependent on the BIOS writer, and to be "hacked" by people like me that want to "zap" the process !!
Doug
|
|
|
|
|
Does anyone have any comments on my last posting ?
Doug
|
|
|
|
|
Is there a way that I can have internet on both pc's?
I read something about using a "crossover cable" and an extra ethernet adapter in the original pc, but it seems to easy .
If this process is right, is there software needed, new drivers or a different "special" ethernet adapter?
Thanks
PS- If it makes any difference, I am using a seimens speedstream 4200 router.
"Shorter of breath,
and one day closer to death." ~Pink Floyd
|
|
|
|
|
Thisita wrote: I am using a seimens speedstream 4200 router.
That's not a router. It's a DSL modem. The two are very different.
You CAN do it using a couple of ethernet cards in one machine and Internet Connection Sharing, but that sucks.
You'd be better off getting an actual router and connecting both machines and the modem to the router.
|
|
|
|
|
Buy a cheap 10/100 switch (less than $20?).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks guys, i guess i might as well go wireless, too.
*Pulls out extra $50 for wireless router*
"Shorter of breath,
and one day closer to death." ~Pink Floyd
|
|
|
|
|
Avoid wireless if you can. It's impossible to secure it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Agreed, the best way to get wireless working is to use Cat5e!
|
|
|
|
|
John Simmons / outlaw programmer wrote: It's impossible to secure it.
'Splain please.
|
|
|
|
|
Restricting by MAC doesn't work as the MAC can easily be spoofed.
WEP can be cracked in seconds depending on the amount of traffic ... I'm not joking either, alot of work has been done on refining the tools for breaking into WEP
WPA is a bit more secure if IIRC but it's still pretty vunerable, but thats not saying much and I think it can be done in minutes.
Do a search on WEP and WPA cracking.
|
|
|
|
|
originSH wrote: Restricting by MAC doesn't work as the MAC can easily be spoofed.
Correct
originSH wrote: WEP can be cracked in seconds depending on the amount of traffic
Maybe not seconds, but yes WEP is easily crackable. Some "progress" was made in this area recently that greatly reduces the time needed to get a WEP password.
originSH wrote: WPA is a bit more secure if IIRC but it's still pretty vunerable
Wrong. Listen to the Security Now[^] podcast, they have covered this topic.
|
|
|
|
|
Michael Dunn wrote: originSH wrote:
WEP can be cracked in seconds depending on the amount of traffic
Maybe not seconds, but yes WEP is easily crackable. Some "progress" was made in this area recently that greatly reduces the time needed to get a WEP password.
A month or two back someone demonstrated a WEP crack that was able to bust most keys in a few seconds. It was fast enough to render the enterprisy rapid key rotation systems some companies were using instead of upgrading to WPA capable hardware ineffective.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Michael Dunn wrote: Wrong.
I agree. I just went from WEP to WPA, and still do mac address filtering on top of that. Just my couple cents
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
- Thanks guys about the crack info, but I live in a town where the only other person who has wireless is the high school's mobile computer lab.
- And even If, I keep a good eye on what is able to get past my 7 firewalls and symantec.
"Shorter of breath,
and one day closer to death." ~Pink Floyd
|
|
|
|