From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-18-2007 05:24 AM
05-18-2007 08:03 AM
05-18-2007 08:49 PM
05-18-2007 09:56 PM
I found the c program,as follow
//-------------------------------------------------------------------------------------------------
// Function: GetCompName
//
// Purpose: Retrieve the computer name and fill the user's buffer with it. Assume the user's
// buffer is at least MAX_COMPNAME_LEN bytes.
//
// Return: 0 for success or ToolErr/UIE error code.
//-------------------------------------------------------------------------------------------------
int CVIFUNC GetCompName (char* nameBuf)
{
int retVal = 0;
DWORD bufSize;
VERIFY_PTR_ARG(nameBuf);
bufSize = MAX_COMPNAME_LEN;
Assert(nameBuf);
if (GetComputerName (nameBuf, &bufSize) == FALSE)
retVal = ToolErr_UnknownSystemError;
Error:
return retVal;
}
you mean I write a function refer to the code above or add code directly?
05-19-2007 01:16 AM
05-22-2007 05:40 AM
05-22-2007 08:41 AM
Shutdown.exe is included in standard Windows XP Professional distribution, at least in all the installations I saw till now : it permits to issue a shutdown command to the local or a remote computer.
AFAIK it was originally included in W2k resource kit as a command-line command only, but it has been implemented with a graphical user interface in Win XP (possibly only from SP2).
I find it very useful and more user friendly than the ExitWindowsEx (EWX_FORCE || EWX_POWEROFF, 0); command I used prior to discover it.