|
This message should be post in VB/VB.Net forum. But don't worry, I still give you the answer. Let check the information from here[^]. The below of the article there are additional link to reboot and logoff the computer from vb6.
Good luck
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Thank you
|
|
|
|
|
Errr...wrong place to post VB question , but whatever.. Check the allapi network, although it says "we're closed" and stuff, you can still download api-guide and api viewer, two fine apps, very usefull for VB6 programming.
http://www.mentalis.org/index2.shtml[^]
If my memory still works, they already have several shutdown examples somewhere in there..
Good luck!
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images.
Better check it out before the site grows even dumber.
|
|
|
|
|
Hi. Is there a way to block a windows session in XP home edition? There is this option in Windows 2000, when you press ctrl+alt+del. For example, at some point i want to go awas from my computer, but to block the sesion, so that i have to retype the password then. This happends with the screensaver, but i want to activate immediatelly. Hope you will understand my question.
Thanks a lot!
|
|
|
|
|
|
Yes, there is this option in Windows 2000, but not in XP Home edition. And i wanna do this in XP Home Edition.
|
|
|
|
|
In Control Panel you can find "User Accounts" and click "Change the way users log on or off". (Its above pictures) Then Disable "use the Welcome screen"
I have tried in WinXP Pro and it works. Please tell me if this works.
|
|
|
|
|
Yes, it works. Thank you!
|
|
|
|
|
I never use windows xp home edition. But I found that article[^] also apply to windows xp home edition. Try to use it and make a modification to your system. Let me know if it is success or not.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Yes, it works. I just went to Control Panel and deselected the Use welcome screen option. Thank you!
|
|
|
|
|
does anyone how can i partition my hard disk?
leo
Kathmandu, Nepal
|
|
|
|
|
What OS?
If it's WinXP, then manage your computer and 'Disk Management'. Older OS' vary, and don't even ask about linux...
If at an API level, and it's NT,W2K or XP, there are IOCTL functions to do it (I've done it for CF cards, for example).
If you want to resize partitions, you need partition manager software, like Partition Magic or similar.
Steve S
Developer for hire!
|
|
|
|
|
OS is supporting:
Windows NT/2000/XP: NTFS, FAT, FAT32
Windows 98/ME: FAT, FAT32
Windows 95 SP2: FAT, FAT32 (I think it is SP2 or SE)
Windows 95: FAT
DOS: Don't go there:
Windows NT/2000/XP:
If you start instalation from cd at boot, then you will come up to manage partition. you have "Disk Managment" under administration tools.
Windows 95/98/ME: All these windows still support dos, so you can use FDISK command. NOTE: On windows ME, you have to boot to dos with system disk or boot cd. Thats the only way to boot dos.
Partition type Limitation:
NTFS: Only NT base windows can access.
FAT: Only up to 2GB for single partition.
FAT32: This partition doesn't support a single file larger than 4GB
Linux: There are a lot of distribution and there are a few partition standart. While installing linux, setup will resize your partition and create two other:
1- EXT, EXT2 or RESIZER (Linux support all this partition and every distribution has its ovn default partiton)
2- Swap (This partiton will be used for Virtual Memory)
Partition Manager is great tool for creating partition.
If you use partition manager or any other advance manager then note this:
The first partition must be primary. All other must be secondary.
If you want any more information and if you have manager like Partiton Manager, then look for their Help.
ps: I hope this works
|
|
|
|
|
anj1983 wrote:
does anyone how can i partition my hard disk?
1. Read this article[^] if you are using windows NT/2000/XP Pro.
2. Read this article[^] if you are using windows 9X/ME.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi, I am having problem understand two performance counters found in Windows Task Manager:
1. PF Usage: Howevers stable around 670 MB (is it measured in per sec? That every sec there's 670MB worth of information being paged to swap file? where is the swap file anyway?)
2. Physical Memory: Total: 1GB / Available: 450 MB / System Cache: 468 MB
QUESTION 1:
If it's constantly paging 670MB? Then why is there so much "Available Memory" sitting around not being used??
QUESTION 2:
What's the ideal/desirable/normal level for:
a. PF Usage
b. Available memory?
What I find confusing is, it says here (http://www.sql-server-performance.com/sql_server_performance_audit2.asp) that if you have 5MB+ of (Memory: Available Bytes) then you're fine... I have 400MB available MB on this 1GB system, and it's still paging 670MB...
QUESTION 3:
CPU usage hovers around 10% - does it mean I have a TOO-Powerful CPU? That I have more processing power than I actually need?
Thanks.
Norman Fung (c)
|
|
|
|
|
The "PF Usage" bar reports the same value as "Commit Charge Total". It's the total of all private bytes allocated, that is, everything that might need space in the page file. The actual amount of page file space currently used is not reported. Loading data back from the page file(s) does not delete that data from the page file, so in effect it's still "used" even though the data is also in physical memory.
The "Available Bytes" counter is the sum of all zero pages, all free pages, and all pages on the standby and modified lists. Pages on the Standby list are unmodified pages that have been removed from working sets, but have not yet been moved to the Free list because the free list already has sufficient pages. A page on the Standby list can be returned to its original working set without needing to read from disk. The Modified list contains pages which have been removed from working sets and have been modified since last written, and therefore must be written back to disk before the page can be reused.
A page fault that is satisfied by a page from the Standby or Modified list is termed a 'soft fault'.
The "System Cache" counter doesn't quite mean what you think it means either. The Standby and Modified lists are counted as part of this, in addition to the size of the System Working Set, which includes pageable kernel code and data in addition to the file cache. The Standby and Modified lists are counted again because, effectively, they do comprise a cache.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks... please allow me to ask a few more questions:
1. PF Usage: so... what's the relevance of PF Usage in performance tuning? Is there a "normal/acceptable" range for PF usage?
2. Available Bytes: what's "zero page", "free page", "standby list" and "modified/unmodified list" -- reference/URL?
again, what's the "normal/acceptable" range for "Available Bytes"?
Thanks in advance.
Norman Fung (c)
|
|
|
|
|
Hey just looked at:
C:\pagefile.sys
It's size is 786MB - but on Task Manager Performance Tab, "PF Usage" is: 539 MB
Adding to confusion is, with performance counters:
"Paging File \ % Total" hovers around 20%?
The numbers doesn't add up...
20% of 786MB = 157 MB, but "PF Usage" is 539MB???
Norman Fung (c)
|
|
|
|
|
Sorry for not letting you go here...
Thought PF Usage (Page File) refers to total memory allocated to swap file - now, what do I need to know about PF usage if it's "CPU Usage" and "Physical Memory \ Available" which determines if your box would start behaving like a snail?
Anyway, I was thinking, so long my "Physical Memory \ Available" (perfmon.exe) consistently hovers ABOVE ZERO it means my machine has "spare" memory - that memory is consistently "available" to application processes. Same can be said for CPU Usage - that if it doesn't go 100% consistently, then you have spare CPU cycles to burn. But, apparently with:
1. CPU Usage hovers around 10% consistently
2. Physical Memory:
a. Total 1GB
b. Available: hovers around 500 MB (stable)
c. System: hovers around 500 MB (stable)
Why's my box so slow at times when CPU Usage and Physical Memory both looks okay?
I also use "perfmon" to check Memory: Page/Sec counter. It seems like every time I type something in Visual Studio code file Visual Studio is sucking up a lot of juice:
a. "Memory: Page/Sec" rises from zero to 10/sec
b. CPU usage on Task Manager go up to to 50% to almost 100%, then immediately drops back down.
Norman Fung (c)
|
|
|
|
|
I have a network bootable CD that silently ghosts a systems and then reboots to windows. I need to have the same CD execute once the user logs into windows. I do not want the user to have to run the CD-ROM manually. I can not modify the ghost image, b/c there are too many of them. I've been working with the autorun.inf file but that only works when the CD is inserted into the CD Drive.
Is there anyway to autorun the CD in the CD-ROM drive whenever a user logs onto a system without modifying the hard drive ( because the systems are often ghosted and anything on the hard drive is deleted )?
|
|
|
|
|
The only potential solution i can think of is to add the exe to the startup folder on the hard drive after the system has completed ghosting but before the system reboots to windows.
How do I gain access to the hard drive and add a file to the startup folder, without user interaction?
|
|
|
|
|
Hi
adding an exe to the startup is quite simple:
in registry at HKEY_LOCAL_MACHIN (if user has administrative privillages) or "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" ,
add a string value:
The key name could be anything but the value should be the local path of the executable file on hard drive (or even CD drive!)
The executable file would run at each log on!
|
|
|
|
|
I know the Mutex and Semaphore usage in any OS. but not sure of Recursive Mutex and Semaphore.
If anybody guide me for this it will be of great help.
Anil Kumar
|
|
|
|
|
Hi, in windows explorer we could see the drive (floopy drive, CDROM drive, mapped drive, harddrive). But I want to list all of the drive that my computer have in MS-DOS command prompt. Is it possible to do that? If yes, what is the command to list those drive in the command prompt?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
As far as I know, there isn't a built-in command to do it, but it's relatively easy to do using WMI via scripting, or using the Win32 API.
Steve S
Developer for hire!
|
|
|
|