|
A hub is a networking device which just connects multiple computers together for them to see each other in a network. However, Hubs causes too much collision. A switch, is better than a HUB. An anology for this is like a highway with no other cars rather than your own car. Their will be zero collisions when setting up a network using a switch.
solidsnake
|
|
|
|
|
i think hub is a layer1 device, while switch is above layer1 ie L2 or above
|
|
|
|
|
Sir,
I am trying to find a unique machine of the computers listed in my network.
I can do it in 2 ways:By obtaining
1.IPAddress
2.MAC Address
Since IPAddress is subject to change and MAC address changes if there is change in the hardware configuration.
So the only way is to create a GUID of that machine.
The question is how one should go about in creating GUID.
I mean what are the functions should I use?
Is there any API?
I know that 2 utilities like GuidGen.exe and uuidGen.exe create unique GUIDS.
Pls guide
Regards
|
|
|
|
|
CoCreateGuid .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
Can somebody tell me what are hidden patches?
Where are the hidden patches are stored.
How one can see them?
What is the difference between a hotfix,a patch an update.
Regards
KP
I am doing a multi threaded application that involves exchange of data.
ONE UI THREAD
AND 3 WORKER THREADS.PLS LET ME HOW TO EXCHANGE THE DATA BETWEEN THESE 3 WORKER THREADS.
FOR EX:THE FIRST THREAD WILL GIVE THE SECOND THREAD THE 2 NUMBERS AS ARGUEMENTS.the second thread should return the first thread the sum.
Pls help
|
|
|
|
|
I've seen this posted here before, but it's been a long time and I can't find the reference. My server keeps creating a file named ~ on the desktop. I delete it, but it comes back daily. What the heck is it, and how do I make it go away?
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Even on my deskop theres a file created ~.May be its related when u install a patch.
Can any expert throw light on this.
|
|
|
|
|
I think it is related to Outlook Express creating a temporary file. It wants to do so in some folder that either doesn't exist or it fails for some reason. It then fail safe saves to the desktop folder. This is all off the top of my head from 6 months ago with Windows 98 and Outlook Express.
Chris Meech
I am Canadian. [heard in a local bar]
I think people should be required to have an operator's permit to use the internet. John Simmons
|
|
|
|
|
You nailed it - OE6 attempts to make a backup of the address book every time you edit an entry there. In the original installation this worked perfectly, but a later "update" broke it. I found a Knowledge Base article about it using Google (MS' search engine can't find it), and I believe it said that this only affects systems running Win2K or WinXP. There is a patch available, but only if you call and beg for it. MS recommends that you not delete the file (in case you should need it), and wait for the next update which will address the problem. For the moment it's a trivial annoyance, cluttering the desktop but not really interfering with anything... I'll wait.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
I am using Exchange 2000 and an event sink to apply a disclaimer to the bottom of outgoing emails. However, I would like to not have this apply to three email addresses that send auto messages out to customers, since the disclaimer is already on the statement that is sent out. However, I am having trouble with the code. If I put any kind of conditional statement in the vbs script, it breaks. Any idea of what I am doing wrong?
Thanks in advance.
David K. Sayers
CompTIA-A+, i-Net+, IT Project+
CIW-Associate
Citrix-CCA
MCP-98/2000
MCSA-2000
MCSE-2000
|
|
|
|
|
I wrote a resource script with menu resources duplicated on several languages.
MSDN states that I can control loading appropriate version of resource using
SetThreadLocale() call, but this way doesn't work. Operating system always
loads English version of menus in spite of what thread locale I'm using. Can
you tell me what's wrong? I'm working with Windows XP SP1.
|
|
|
|
|
chupeev@tmn.ru wrote:
Operating system always
loads English version of menus in spite of what thread locale I'm using
I believe this is because the operating system locale is overiding what is being put in here. There is a way to override this, but I am not aware of the command. I will post back if I come up with anything.
David K. Sayers
CompTIA-A+, i-Net+, IT Project+
CIW-Associate
Citrix-CCA
MCP-98/2000
MCSA-2000
MCSE-2000
|
|
|
|
|
This is an examle code that should load russian version of menu resource, but the main
window displayed with english UI though.
------------- sh ./eg.sh ------------------
#!/bin/sh
cat > generic.c << EOF
#include <windows.h>
#include <tchar.h>
#include <windowsx.h>
#define NAMESTART 16
WNDPROC Listbox_WindowProc;
BOOL CALLBACK Enumres_EnumProc(HMODULE hModule, \
LPCTSTR lpszType, LPCTSTR lpszName, LANGID wIDLanguage, LPARAM lParam)
{
TCHAR szItemText[NAMESTART + MAX_PATH];
HWND* hwnd = (HWND*) lParam;
wsprintf(szItemText, TEXT("%#03x %#03x - "), PRIMARYLANGID(wIDLanguage), SUBLANGID(wIDLanguage));
if (0 < GetModuleFileName(hModule, &szItemText[lstrlen(szItemText)], MAX_PATH))
{
ListBox_AddString(*hwnd, szItemText);
}
return (GetLastError() == ERROR_SUCCESS? TRUE: FALSE);
}
void Enumres_OnDestroy(HWND hwnd)
{
SetWindowLong(hwnd, GWL_WNDPROC, (LONG) Listbox_WindowProc);
PostQuitMessage(0);
}
LRESULT CALLBACK Enumres_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_DESTROY:
HANDLE_WM_DESTROY(hwnd, wParam, lParam, Enumres_OnDestroy);
break;
default:
return Listbox_WindowProc(hwnd, uMsg, wParam, lParam);
}
return 0;
}
BOOL InitInstance(int nCmdShow)
{
LCID dwCurrLocale = MAKELCID(MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT), SORT_DEFAULT);
if (SetThreadLocale(dwCurrLocale))
{
HMENU menu = LoadMenu(NULL, TEXT("GENERIC"));
if (menu)
{
HWND hwnd = CreateWindow(
TEXT("LISTBOX"), // name of window class
TEXT("Enumres"), // title-bar string
WS_OVERLAPPEDWINDOW, // top-level window
CW_USEDEFAULT, // default horizontal position
CW_USEDEFAULT, // default vertical position
CW_USEDEFAULT, // default width
CW_USEDEFAULT, // default height
NULL, // no owner window
menu, // required menu
NULL, // handle to application instance
(LPVOID) NULL); // no window-creation data
if (hwnd)
{
Listbox_WindowProc = (WNDPROC) SetWindowLong(hwnd, GWL_WNDPROC, (LONG) Enumres_WindowProc);
if (EnumResourceLanguages(NULL, RT_MENU, TEXT("GENERIC"), Enumres_EnumProc, (LPARAM) &hwnd))
{
ShowWindow(hwnd, nCmdShow);
UpdateWindow(hwnd);
return TRUE;
}
}
}
}
return FALSE;
}
int WINAPI _tWinMain(HINSTANCE hCurrInst, HINSTANCE hPrevInst, LPTSTR lpCmdLine, int nCmdShow)
{
if (InitInstance(nCmdShow))
{
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return ((int) msg.wParam);
}
return 0;
DBG_UNREFERENCED_PARAMETER(hPrevInst);
DBG_UNREFERENCED_PARAMETER(lpCmdLine);
}
EOF
cat > resource.h << EOF
#define ID_FILE_NEW 100
#define ID_FILE_OPEN 101
#define ID_FILE_SAVE 102
#define ID_FILE_SAVE_AS 103
#define ID_FILE_PRINT 104
#define ID_FILE_PRINT_SETUP 105
#define ID_FILE_EXIT 106
#define ID_EDIT_UNDO 200
#define ID_EDIT_CUT 201
#define ID_EDIT_COPY 202
#define ID_EDIT_PASTE 203
#define ID_EDIT_LINK 204
#define ID_HELP_CONTENTS 300
#define ID_HELP_SEARCH 301
#define ID_HELP_HELP 302
#define ID_HELP_ABOUT 303
#define ID_HELPTOPICS 304
EOF
cat > generic.rc << EOF
#include "windows.h"
#include "winver.h"
#include "resource.h"
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
GENERIC MENU
BEGIN
POPUP "&Файл"
BEGIN
MENUITEM "Созд&ать\tCtrl+N", ID_FILE_NEW, GRAYED
MENUITEM "&Открыть...\tCtrl+O", ID_FILE_OPEN, GRAYED
MENUITEM "&Сохранить\tCtrl+S", ID_FILE_SAVE, GRAYED
MENUITEM "Сохранить &как...", ID_FILE_SAVE_AS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Печать...\tCtrl+P", ID_FILE_PRINT, GRAYED
MENUITEM "Пара&метры страницы...", ID_FILE_PRINT_SETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "В&ыход\tAlt+X", ID_FILE_EXIT
END
POPUP "&Правка"
BEGIN
MENUITEM "&Отменить\tCtrl+Z", ID_EDIT_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Вырезать\tCtrl+X", ID_EDIT_CUT, GRAYED
MENUITEM "&Копировать\tCtrl+C", ID_EDIT_COPY, GRAYED
MENUITEM "&Вставить\tCtrl+V", ID_EDIT_PASTE, GRAYED
MENUITEM "Ссы&лка", ID_EDIT_LINK, GRAYED
END
POPUP "&Справка"
BEGIN
MENUITEM "&Содержание", ID_HELP_CONTENTS, HELP
MENUITEM "&Предметный указатель...", ID_HELP_SEARCH, HELP
MENUITEM "О сп&равочной системе", ID_HELP_HELP, HELP
MENUITEM SEPARATOR
MENUITEM "&О программе...", ID_HELP_ABOUT
END
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
GENERIC MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New\tCtrl+N", ID_FILE_NEW, GRAYED
MENUITEM "&Open...\tCtrl+O", ID_FILE_OPEN, GRAYED
MENUITEM "&Save\tCtrl+S", ID_FILE_SAVE, GRAYED
MENUITEM "Save &As...", ID_FILE_SAVE_AS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Print...\tCtrl+P", ID_FILE_PRINT, GRAYED
MENUITEM "P&rint Setup...", ID_FILE_PRINT_SETUP, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+X", ID_FILE_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT, GRAYED
MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY, GRAYED
MENUITEM "&Paste\tCtrl+V", ID_EDIT_PASTE, GRAYED
MENUITEM "Paste &Link", ID_EDIT_LINK, GRAYED
END
POPUP "&Help"
BEGIN
MENUITEM "&Contents", ID_HELP_CONTENTS, HELP
MENUITEM "&Search for Help On...", ID_HELP_SEARCH, HELP
MENUITEM "&How to Use Help", ID_HELP_HELP, HELP
MENUITEM SEPARATOR
MENUITEM "&About Generic...", ID_HELP_ABOUT
END
END
EOF
rc generic.rc
cl /nologo /MDd /Zi /D_UNICODE /DUNICODE generic.c generic.res user32.lib
|
|
|
|
|
I have been trying for about a week to install my Visual C++ application (via a deployment project in Visual Studio .Net)on a Laptop PC, but after many loops and changes the situation is that the application does not run (I think), the hour glass (mouse pointer) changes for about 1/2 sec when you double click on the program Icon.
ALso I did try and install Vcredist.exe which is a MS file to update any DLLs etc that a Visual Studio application may need on another PC without Visual Studio installed.
It does nothing!!??!! No error - nothing like an empty exe file
Are they some setting on this Laptop preventing new program files being changed/added to?
Its running Windows 2000 SP 5.
|
|
|
|
|
Hi, can anyone explain me about the unattendent install of windows 2000. I don't uderstand if we have 100 clients connect to the server with a blank hard disk (client). How could it run an installation from the server to the client if the client hard disk didn't format (may be they set the boot option...??? I'm not clear too) or without the command from an administrator (automate installation). I read the books and have a problem with that point. Just explain me in the frame of this process. Because I start don't understand from that point and could not complete the chapter.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Starting with the disclaimer of "I haven't done this, but..."
I just reviewed the discussion, albeit a brief one, in Windows 2000 Administrator's Black Book, 2ed, along with the Windows Help discussion of Remote Installation Service (RIS), and bits of the Resource Kit. While there are a few alternative methods available, the simplest seems to be:
Install Windows 2000 Pro on a new machine, along with any applications to be distributed. Share this on a network with a server running RIS. Run the Remote Installation Wizard (part of the Win2K Resource Kit) to create an image from the new installation and save the image in a RIS folder on the server. This strips from the image any machine-specific settings, including the SID and product ID. You then create an answer file to be used for the remote installations which provides answers to all the steps you'd normally respond to manually on each installation.
For each client you create a boot floppy that starts the machine in a network accessible state and run Winnt32 with command line options that direct it to use the network share containing the answer file and the image created for RIS. This will prepare the hard drive and download the image to each client, and the individual machines will be configured by Plug-and Play for minor hardware variations. There are methods to fully automate the process, by including the unique license keys for each machine on the floppies, but I didn't delve into it that deeply. This is a case when an investment in the Resource Kit is definitely justified, as this is where the most information, and the tools to automate the task are found.
Have fun!
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
If I have mutliple JREs installed on my machine, is there a way to have set it so that netscape 7 uses a particular one by default? Currently Netscape will use the most recently installed JRE, but is it possible to manually set it?
thanks
L
|
|
|
|
|
Is there a way of identifying which process has a lock on a resource? I have a strange problem where I am trying to build my C# application and it cannot build one of the DLL's because another application has a lock on it. But when I look all processes and threads have shut down.
I am at my wits end. My last hope is to work out which app has it locked - then work back from there.
Thanks in advance.
Bryon
|
|
|
|
|
Google for a nifty app called 'Whoslocking' - it's perfect for this sort of thing, and free.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Hi,
I am doing one application, which needs to connect to an unix machine and need to execute batch file. I tried to execute the rsh command from my windows xp machine. It's not running?? How can I do that??
What are the prerequisities for the XP machine to do this??
Regards,
Satya
|
|
|
|
|
Yesterday I thought it might be fun to set up my home network again. It's been idle for a few years, and I wanted to play with some configuration options before I attempt them at work. I tried for hours to make a Win2K machine connect to the server with no success. Everything set up correctly, but no connection. Using automatic addressing wasn't working - DHCP didn't seem to be responding. Static addressing allowed me to ping by address, but not to browse, and routing wasn't working at all (using NAT to share an Internet connection).
As a last resort I opened up Sygate Personal Pro to view the packets being exchanged on the network and discovered that everything from the client host was being blocked! Since the local interface was disabled when I installed it, I assumed that SPP only monitored the WAN interface. Wrong! It doesn't automatically discriminate between NICs; it blocks all packets regardless of source if a service is blocked. I had blocked DHCP, WINS, and DNS long ago when I found my machine serving the rest of my ISP's network, so now it was blocking my own internal network traffic.
Fortunately there is an Advanced settings tab that allows me to define which subnets and ports are allowed to access various services. Using that tool for each service running will be tedious, but it should allow me to block external traffic while permitting my own subnet to work smoothly.
Just a word to the wise if you find yourself tearing your hair out over a network that you know is set up correctly, yet refuses to connect. Check for a firewall running and disable it briefly before setting fire to the building!
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Yeah, I'm not a huge fan of sygate. It has some nice blocking options but often goes way beyond the realm of usefulness.
Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
|
|
|
|
|
I like Sygate far better than ZoneAlarm, in terms of functionality, but I miss ZAP's easy configuration. Sygate is more effective and less intrusive, but it is much harder to configure properly.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Roger Wright wrote:
I like Sygate far better than ZoneAlarm, in terms of functionality, but I miss ZAP's easy configuration. Sygate is more effective and less intrusive, but it is much harder to configure properly.
I totally agree with you there, another problem I had was high amounts of traffic would completely hose my system. even if the traffic was on a NIC that it wasn't supposed to be listening on.
Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
|
|
|
|
|
Got a call from a friend. His internet connection stopped working last night and he couldn't figure out why.
I went over this afternoon and had a look. His NIC and Switch both said he had a network connection though Windows didn't think so. It had everything set to an auto supplied IP Address. Funny thing was his wifes machine worked fine.
Trying ipconfig /renew resulted in the following message An error occurred while renewing interface local area connection: an operation was attempted on something that is not a socket..
I couldn't make any sense from this and headed off to try my luck with Google. I found a few sites mentioning that this is a side affect of removing certains pieces of spyware. One also pointed me to WinsockFix[^], it fixed the problem and internet connection is now up and working. Have a look and keep in your kit bag for when you need it.
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 24/04/2004
|
|
|
|
|