strncat(RN,RemoteName,sizeof(RN)-11);
strcat(RN,"\\ipc$");
nr.dwType=RESOURCETYPE_ANY;
nr.lpLocalName=NULL;
nr.lpRemoteName=RN;
nr.lpProvider=NULL;
if(WNetAddConnection2(&nr,Pass,User,FALSE)==NO_ERROR)
return 0;
else
return 1;
}
////////////////////////////////////////////////////////////////////////////////
void banner()
{
printf("\nPsList ==>Local and Remote process list"
"\nPower by ey4s"
"\nhttp://www.ey4s.org"
"\n2001/6/22\n");
}
////////////////////////////////////////////////////////////////////////////////