NT_CreateDirectory dirName ?securityDescriptorHandle?

NT_RemoveDirectory dirName

NT_CreateDirectory creates a directory and optionally assigns the security descriptor to it. NT_RemoveDirectory deletes the specified directory.

NT_CopyFile sourceName destinationName ?forceFlag?

NT_MoveFile sourceName destinationName ?forceFlag?

These functions do as the name implies. If a boolean true (yes,on,1,true) is specified for forceFlag, these functions will overwrite existing files. If no flag is specified, or if it is specified as a boolean false (no,off,0,false), an error will be generated if a file specifed as the destination already exists. NT_MoveFile can move directories on the same volume, but not across volumes.

NT_GetDCName ?serverName? domainName

NT_GetDCName will return the name of the domain controller for the specified domain. If the domain is specified as an empty string ( {} ), it will return the name of the current domain's controller.

NT_InitiateSystemShutdown machineName dialogMessage timeout force reboot

NT_InitiateSystemShutdown shuts down an NT server or workstation. machineName or dialogMessage may be specified as null strings ( {} ) indicating the local machine and no message should be posted respectively. timeout is the amount of time to wait before shutting the machine down. force, if specified as 'false' will wait for the user to deal with application's "would you like to save before closing" dialog boxes (if any) before shutting down. If force is specified as any other value, with machine will shutdown without waiting for any user input. reboot, if specified as false will leave the machine with the "it is safe to turn off your computer" dialog up. If reboot is specified as any other value, the machine will restart when the shutdown process completes.

NT_CloseHandle handle

NT_CloseHandle is used to close handles return from any of the functions that generate handles.

NT_FreeStructure handle

NT_FreeStructure is used to free the memory associated with security descriptor and acl handles returned by various security functions. This function should not be called directly, use NT_CloseHandle instead.