
phranzee
Stały użytkownik-
Postów
1838 -
Dołączył
-
Ostatnia wizyta
Treść opublikowana przez phranzee
-
Walker3d: dzwiek byl donosny i mily bo zapowiadal lacznosc ze swiatem :D MieczySław: z wywaleniem przesadzilem ;) TB nie dziala w systemie OE, jest niezalezny, tzn nie korzysta z engine OE. a zamiast IE to mozesz uzywac opery lub firebirda, ostatecznie cos w stylu MYIE ale nie wiem jak u niego z bezpieczenstwem ;)
-
poznawac rzecza ludzka ;) nie martw sie, wiele rzeczy jest walkowanych kilkakrotnie :P
-
a ja widzialem takie super chlodzenie wodne, jakos cpc czy mniej wiecej tak, nawet we francji to sprzedaja ;] sorry, nie moglem ;] te wentyle sa dostepne od dawna, nic nowego. tez je moge u siebie kupic i so s tego ? :) pozdr, piss n' law
-
kiedy ja calkiem powaznie :) polacz sie na 0202122 i popatrz na to co napisalem, dokladnie tak jak jest :) dobra rada - wywal IE i OE to zaden dialer sie nie zainstaluje
-
ten antydialer tp to jedno wielkie ....... sa lepsze programy. najlepiej to wlacz glos w modemie i sluchaj na co sie laczy :P jak nie bedzie bzzz ti tu ti tu tu ti ti bzzzzz bzzzz bzyyyyyyyy szzzzzzzzzz kszzzzz to znaczy ze nie polaczyles sie na tepse i masz dialera ;]
-
PROSZĘ O INSTRUKCJE ZAINSTALOWANIA WINDOWSA
phranzee odpowiedział(a) na CHUDEJ temat w Microsoft Windows
a) nie pisz z capsem B) ktorego windowsa ? c) nie dostales instrukcji ? ;) -
mam, uzywam i jestem zadowolony :) ale za 160 :P
-
wystarczy ze odpali "iexplore" to ruszy. ..... kto ci wymyslil taka ksywe ? :?
-
skad to wziales :?: wszystko mi chodzi ;] moze teraz juz chodza ;) 2k zostawilem jak pojawil xp i juz do niego nie wracalem ;] pamietam ze jedyna gra, ktora chodzila w miare dobrze to q2 :P ale to bylo ofkorz dawno :)
-
Jak z linii polecen sprawdzic obciazenie kompa?
phranzee odpowiedział(a) na Sir_Yaro temat w Oprogramowanie
Here is a document I got from a web site:The one of most popular question I see in the newsgroups is a question aboutreceiving and calculating the CPU usage, so I've decided to describe it inthis trick. At first, I should say that there is a big difference betweengetting the CPU usage on Windows 95/98 and on Windows NT/2000, in thisarticle I'll show you a method that perfectly works on Windows 9x (forexample in my free screen saver - CPU Indicator SS ). About getting the CPUusage on NT you'll read in my next trick.Like NT the Windows 9x has the Performance Counters but on Windows 9x theyare more easy to use so we will use one of these counters to receive the CPUusage.Our first step is starting selected counter because by default all countersare stoped. To start the counter we should read the corresponding registrykey:HKEY hkey;RegOpenKeyEx ( HKEY_DYN_DATA,"PerfStats\\StartStat",0,KEY_ALL_ACCESS,&hkey );DWORD dwDataSize;DWORD dwType;DWORD dwDummy;dwDataSize=sizeof(dwDummy); RegQueryValueEx ( hkey,"KERNEL\\CPUUsage",NULL,&dwType,(LPBYTE)&dwDummy,&dwDataSize );RegCloseKey(hkey);The next step is reading the CPU usage directly from the registry:HKEY hkey;RegOpenKeyEx ( HKEY_DYN_DATA,"PerfStats\\StatData",0,KEY_ALL_ACCESS,&hkey );DWORD dwDataSize;DWORD dwType;DWORD dwCpuUsage;dwDataSize=sizeof(dwCpuUsage); RegQueryValueEx ( hkey,"KERNEL\\CPUUsage",NULL,&dwType,(LPBYTE)&dwCpuUsage,&dwDataSize );RegCloseKey(hkey);Now the dwCpuUsage variable contains current CPU usage in percent. Youshould call above code in the loop to see the dynamic changes.And the final step is stoping the counter previously started:HKEY hkey;RegOpenKeyEx ( HKEY_DYN_DATA,"PerfStats\\StopStat",0,KEY_ALL_ACCESS,&hkey );DWORD dwDataSize;DWORD dwType;DWORD dwDummy;dwDataSize=sizeof(dwDummy); RegQueryValueEx ( hkey,"KERNEL\\CPUUsage",NULL,&dwType,(LPBYTE)&dwDummy,&dwDataSize );RegCloseKey(hkey);-------------------#include <winreg.h>int getCpuUsage(void){ int trug=-1; DWORD rc; HKEY hOpen; LPVOID lpMsgBuf; unsigned char data[4]; unsigned long size=4; bool error=false; if ((rc = RegOpenKeyEx(HKEY_DYN_DATA,"PerfStats\\StatData", 0,KEY_READ,&hOpen)) == ERROR_SUCCESS) { if ((rc=RegQueryValueEx(hOpen,"KERNEL\\CPUUsage",NULL,NULL,(unsignedchar *)data,&size)) == ERROR_SUCCESS) trug=data[0]; else error=true; RegCloseKey(hOpen); } else error=true; if (error) { FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR) &lpMsgBuf, 0, NULL); MessageBox( NULL, (LPSTR)lpMsgBuf, "Fout", MB_OK|MB_ICONINFORMATION ); LocalFree( lpMsgBuf ); } return trug;}------------------------#include <windows.h>#include <conio.h>#include <stdio.h>#define SystemBasicInformation 0#define SystemPerformanceInformation 2#define SystemTimeInformation 3#define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + (double)((x).LowPart))typedef struct{ DWORD dwUnknown1; ULONG uKeMaximumIncrement; ULONG uPageSize; ULONG uMmNumberOfPhysicalPages; ULONG uMmLowestPhysicalPage; ULONG uMmHighestPhysicalPage; ULONG uAllocationGranularity; PVOID pLowestUserAddress; PVOID pMmHighestUserAddress; ULONG uKeActiveProcessors; BYTE bKeNumberProcessors; BYTE bUnknown2; WORD wUnknown3;} SYSTEM_BASIC_INFORMATION;typedef struct{ LARGE_INTEGER liIdleTime; DWORD dwSpare[76];} SYSTEM_PERFORMANCE_INFORMATION;typedef struct{ LARGE_INTEGER liKeBootTime; LARGE_INTEGER liKeSystemTime; LARGE_INTEGER liExpTimeZoneBias; ULONG uCurrentTimeZoneId; DWORD dwReserved;} SYSTEM_TIME_INFORMATION;// ntdll!NtQuerySystemInformation (NT specific!)//// The function copies the system information of the// specified type into a buffer//// NTSYSAPI// NTSTATUS// NTAPI// NtQuerySystemInformation(// IN UINT SystemInformationClass, // information type// OUT PVOID SystemInformation, // pointer to buffer// IN ULONG SystemInformationLength, // buffer size in bytes// OUT PULONG ReturnLength OPTIONAL // pointer to a 32-bit// // variable that receives// // the number of bytes// // written to the buffer // );typedef LONG (WINAPI *PROCNTQSI)(UINT,PVOID,ULONG,PULONG);PROCNTQSI NtQuerySystemInformation;void main(void){ SYSTEM_PERFORMANCE_INFORMATION SysPerfInfo; SYSTEM_TIME_INFORMATION SysTimeInfo; SYSTEM_BASIC_INFORMATION SysBaseInfo; double dbIdleTime; double dbSystemTime; LONG status; LARGE_INTEGER liOldIdleTime = {0,0}; LARGE_INTEGER liOldSystemTime = {0,0}; NtQuerySystemInformation = (PROCNTQSI)GetProcAddress( GetModuleHandle("ntdll"), "NtQuerySystemInformation" ); if (!NtQuerySystemInformation) return; // get number of processors in the system status = NtQuerySystemInformation(SystemBasicInformation,&SysBaseInfo,sizeof(SysBaseInfo),NULL); if (status != NO_ERROR) return; printf("nCPU Usage (press any key to exit): "); while(!_kbhit()) { // get new system time status = NtQuerySystemInformation(SystemTimeInformation,&SysTimeInfo,sizeof(SysTimeInfo),0); if (status!=NO_ERROR) return; // get new CPU's idle time status = NtQuerySystemInformation(SystemPerformanceInformation,&SysPerfInfo,sizeof(SysPerfInfo),NULL); if (status != NO_ERROR) return; // if it's a first call - skip it if (liOldIdleTime.QuadPart != 0) { // CurrentValue = NewValue - OldValue dbIdleTime = Li2Double(SysPerfInfo.liIdleTime) - Li2Double(liOldIdleTime); dbSystemTime = Li2Double(SysTimeInfo.liKeSystemTime) - Li2Double(liOldSystemTime); // CurrentCpuIdle = IdleTime / SystemTime dbIdleTime = dbIdleTime / dbSystemTime; // CurrentCpuUsage% = 100 - (CurrentCpuIdle * 100) / NumberOfProcessors dbIdleTime = 100.0 - dbIdleTime * 100.0 / (double)SysBaseInfo.bKeNumberProcessors + 0.5; printf("bbbb%3d%%",(UINT)dbIdleTime); } // store new CPU's idle and system time liOldIdleTime = SysPerfInfo.liIdleTime; liOldSystemTime = SysTimeInfo.liKeSystemTime; // wait one second Sleep(1000); } printf("n");}--------------------// cpusagent.cpp (Windows NT/2000)//// Getting the CPU usage in percent on Windows NT/2000//// (c)2000 Ashot Oganesyan K, SmartLine, Inc// mailto:ashot@aha.ru, http://www.protect-me.com, http://www.codepile.com#include <windows.h>#include <conio.h>#include <stdio.h>#define SystemBasicInformation 0#define SystemPerformanceInformation 2#define SystemTimeInformation 3#define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + (double)((x).LowPart))typedef struct{ DWORD dwUnknown1; ULONG uKeMaximumIncrement; ULONG uPageSize; ULONG uMmNumberOfPhysicalPages; ULONG uMmLowestPhysicalPage; ULONG uMmHighestPhysicalPage; ULONG uAllocationGranularity; PVOID pLowestUserAddress; PVOID pMmHighestUserAddress; ULONG uKeActiveProcessors; BYTE bKeNumberProcessors; BYTE bUnknown2; WORD wUnknown3;} SYSTEM_BASIC_INFORMATION;typedef struct{ LARGE_INTEGER liIdleTime; DWORD dwSpare[76];} SYSTEM_PERFORMANCE_INFORMATION;typedef struct{ LARGE_INTEGER liKeBootTime; LARGE_INTEGER liKeSystemTime; LARGE_INTEGER liExpTimeZoneBias; ULONG uCurrentTimeZoneId; DWORD dwReserved;} SYSTEM_TIME_INFORMATION;// ntdll!NtQuerySystemInformation (NT specific!)//// The function copies the system information of the// specified type into a buffer//// NTSYSAPI// NTSTATUS// NTAPI// NtQuerySystemInformation(// IN UINT SystemInformationClass, // information type// OUT PVOID SystemInformation, // pointer to buffer// IN ULONG SystemInformationLength, // buffer size in bytes// OUT PULONG ReturnLength OPTIONAL // pointer to a 32-bit// // variable that receives// // the number of bytes// // written to the buffer // );typedef LONG (WINAPI *PROCNTQSI)(UINT,PVOID,ULONG,PULONG);PROCNTQSI NtQuerySystemInformation;void main(void){ SYSTEM_PERFORMANCE_INFORMATION SysPerfInfo; SYSTEM_TIME_INFORMATION SysTimeInfo; SYSTEM_BASIC_INFORMATION SysBaseInfo; double dbIdleTime; double dbSystemTime; LONG status; LARGE_INTEGER liOldIdleTime = {0,0}; LARGE_INTEGER liOldSystemTime = {0,0}; NtQuerySystemInformation = (PROCNTQSI)GetProcAddress( GetModuleHandle("ntdll"), "NtQuerySystemInformation" ); if (!NtQuerySystemInformation) return; // get number of processors in the system status = NtQuerySystemInformation(SystemBasicInformation,&SysBaseInfo,sizeof(SysBaseInfo),NULL); if (status != NO_ERROR) return; printf("nCPU Usage (press any key to exit): "); while(!_kbhit()) { // get new system time status = NtQuerySystemInformation(SystemTimeInformation,&SysTimeInfo,sizeof(SysTimeInfo),0); if (status!=NO_ERROR) return; // get new CPU's idle time status = NtQuerySystemInformation(SystemPerformanceInformation,&SysPerfInfo,sizeof(SysPerfInfo),NULL); if (status != NO_ERROR) return; // if it's a first call - skip it if (liOldIdleTime.QuadPart != 0) { // CurrentValue = NewValue - OldValue dbIdleTime = Li2Double(SysPerfInfo.liIdleTime) - Li2Double(liOldIdleTime); dbSystemTime = Li2Double(SysTimeInfo.liKeSystemTime) - Li2Double(liOldSystemTime); // CurrentCpuIdle = IdleTime / SystemTime dbIdleTime = dbIdleTime / dbSystemTime; // CurrentCpuUsage% = 100 - (CurrentCpuIdle * 100) / NumberOfProcessors dbIdleTime = 100.0 - dbIdleTime * 100.0 / (double)SysBaseInfo.bKeNumberProcessors + 0.5; printf("bbbb%3d%%",(UINT)dbIdleTime); } // store new CPU's idle and system time liOldIdleTime = SysPerfInfo.liIdleTime; liOldSystemTime = SysTimeInfo.liKeSystemTime; // wait one second Sleep(1000); } printf("n");}sie mi po dysku poniewieralo, moze cos wyskubiesz z tego. pewnie gdzies jeszcze mam chodzacy program :) tak, wiem ze duzo wkleilem ;] -
Jak z linii polecen sprawdzic obciazenie kompa?
phranzee odpowiedział(a) na Sir_Yaro temat w Oprogramowanie
aha :P malo jest programikow tekstowych dla tego sysa. przyznam sie, ze nie widzialem takiego. jak masz pol godzikni to mozesz napisac :) nie mowie tego zlosliwie :) -
punto :)
-
Jak z linii polecen sprawdzic obciazenie kompa?
phranzee odpowiedział(a) na Sir_Yaro temat w Oprogramowanie
top -
ych, nie rozumiem takich ludzi. pewnie siedzial na nim pol godziny i tak twierdzi. nie udalo mu sie czegos zainstalowac czy cus. jezeli chodzi o windy i inne dzwigi to do domu xp najlepiej sie nadaje. 1,2,3 - pomijam ;) 95, 98 - niestabilne, do tego jak cos sie wykrzaczy to caly sys wisi nt3 - staary :P nt4 - toporny, ale dziala 2k - wszystko ok, ale nie wszystkie gry chodza (ja nie gram :P ) xp - tez stabilny, do tego obsluguje gry 2k3 - jakis duzy zeby go w domu uzywac, chociaz... :) najczesciej jest tak: - ueee, xp to syf jakich malo - miales ? - no co ty. tak slyszalem :lol: k...a to jest moda na jazde po xp czy co ? jedno co to trzeba poswiecic kilka minut na wywalenie glupich komunikatow o konczacym sie miejscu na hdd i podobnych :P SzymonTER: spytaj sie kolegi co dokladnie mu w tym sys przeszkadza :)
-
niech zgadne - nie widzi go po podpieciu ? zainstaluj port95nt
-
jaka byscie kupili obudowe jakbyscie milie teraz kupowac :P
phranzee odpowiedział(a) na sector temat w Modyfikacje
heh, B3TON sie wyzbywa wszystkiego :? -
mozna tez wogule wywalic win ;]
-
Epox 8RDA(+) - Zlote rady, codzienne problemy..
phranzee odpowiedział(a) na temat w Socket 462(A)/Slot A
pod molexa ;] a jestes pewny polaryzacji oraz sprawnosci leda ? :) -
nconvers - opcje :)
-
discworld ? ;]
-
poszukaj na stronie producenta.
-
pffff........ sorry. a ANTYwirus - slyszales o czyms takim ? ;] zeby nie mieszac odpal skaner z sieci - np panda albo mks.
-
sypac tez sie moze, ale bardziej prawdopodobne ze po prostu skanuje sobie powierzchnie. soft znajdziesz na google.pl ;]
-
MSI KT3 Ultra2-R - update bios niemożliwy?
phranzee odpowiedział(a) na fipa temat w Sterowniki, BIOS, UEFI
to juz nie trzeba dodawac -py -sn i innych ? :) -
pewnie sam sie testuje, to wszystko. jakby co to poszukaj softu zeby to wylaczyc :)