#define NOMINMAX #include #include #include #include #include #include char chArray[10240]; int main(argc, argv) int argc; char *argv[]; { PSERVER_INFO_101 pserver_info_101; DWORD NoReturned=0, Total, i; NetServerEnum(NULL, 101, (LPBYTE *)&pserver_info_101, 10240, &NoReturned, &Total, SV_TYPE_PRINTQ_SERVER, NULL, NULL); for (i=0; i