Questions tagged [windows-nt]

Windows NT is a family of modern, commercial, portable, shared-source, hybrid-kernel operating systems developed by Microsoft.

Windows NT is a family of commercial operating systems developed by Microsoft based on the Windows NT kernel.

The NT kernel is used in both client products, such as Windows 2000 Professional, Windows XP, Windows 7, and Windows 8, as well as server products, such as Windows Server 2003, Windows Server 2008 R2, and Windows Server 2012. The NT kernel is also occasionally found in embedded products as Windows Embedded, or more recently, Windows Phone 8. The initial public release of Windows NT was on Windows NT 3.1 in 1993.

Current Microsoft Windows operating system families based on Windows NT include Windows 8, Windows Phone 8, and Windows Server 2012.

The Windows NT kernel is most often associated with the x86 and x86_64 architectures but has also historically run on architectures such as MIPS, PowerPC, Itanium (last supported on Windows Server 2008), and Alpha. Modern-day versions Windows NT exist for the x86, x86_64, and ARM architectures.

While much of the Windows NT operating system family is closed-source, some of it (including much of the kernel) is available under shared-source licensing (including academic/research use, as well as technical troubleshooting use).

Windows NT is structured differently than most Unix operating systems; some of it is inspired by the architecture of OpenVMS, while many other aspects of Windows NT are inspired by the requirements of backward compatibility.

The Windows Internals series, published by Microsoft Press, is an excellent reference to the architecture of modern Windows NT.

While the most visible aspect of Windows NT is the Win32 subsystem, which exposes the Windows API, other subsystems can be deployed on the Windows NT kernel as well, including a POSIX subsystem, commonly referred to as Subsystem for Unix Applications or Services for Unix. Historically, console-based OS/2 applications were also supported as another subsystem running on the Windows NT kernel.

See also:

70 questions
4
votes
4 answers

CreateProcessAsUser vs ShellExecute

I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute, but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? @PabloG:…
Anders
  • 97,548
  • 12
  • 110
  • 164
4
votes
3 answers

Running a J6SE app on an NT box

I need to run a Java application, which we are trying to port to Java 6, on an NT box. I manage to run java 5 on it (although not officially supported), but when I try to run java 6 I get the following error: Exception in thread "main"…
Michael Bar-Sinai
  • 2,729
  • 20
  • 27
3
votes
1 answer

Remote debugging an NT application from XP with Visual Studio 6.0

Is it possible to remote-debug a Visual C++ 6.0 application running on a Windows NT machine from a developer workstation running Windows XP? If so, what is the procedure for doing so?
Isaac Moses
  • 1,589
  • 6
  • 26
  • 44
3
votes
1 answer

Why do Windows NT threads have separate user mode/kernel mode stacks?

Windows Internals, 6th Edition from Microsoft Press says that in Windows NT, each thread has 2 stacks: one used when running in user mode, and one used in kernel mode. Why is this so? It seems that the user-mode stack could also be used while in a…
Alex D
  • 29,755
  • 7
  • 80
  • 126
2
votes
2 answers

"A fatal error has been detected by the Java Runtime Environment" when running java project on another computer

I created a Java project in Netbeans that runs without issue on my computer (both in Netbeans and from running the jar file), but when I try to run the project on another computer I get the following error message: A fatal error has been detected…
BamSquid
  • 35
  • 1
  • 2
  • 6
2
votes
1 answer

Why is the offset of the "logical bottom" and "physical bottom" of the stack random?

I run a program on my Windows 10 machine with windbg, and let it break on the initial breakpoint. I take the address of the physical bottom of the stack (stackBase of the TEB), and subtract the rsp value of ntdll!LdrInitializeThunk. I just did this…
Donpedro
  • 828
  • 7
  • 22
2
votes
0 answers

When should WriteFile block when called on a HANDLE that was opened with FILE_FLAG_WRITE_THROUGH?

At work we run our unit tests regularly on several build machines with the help of Jenkins. One of the unit tests opens a file with FILE_FLAG_WRITE_THROUGH, and makes tens of thousands of WriteFile calls on this file. Why it does that is not…
Donpedro
  • 828
  • 7
  • 22
2
votes
2 answers

fscanf double reads variable in middle of file - Windows NT 4.0 dll

I'm running into a problem with reading a txt file within a Windows NT 4.0 dll file; and before you ask, I'm not currently interested in migrating this to a new OS. I just want to fix this one issue and let others after me worry with migrating this…
sdm142
  • 23
  • 5
2
votes
1 answer

Two processes reading/writing to the same file - Win32 using LockFileEx() Function

I am writing a Service which will create a file and write Records in it, other processes(there are four concurrent processes) will read a record and modify some of its values. I am currently using LockFileEx() and UnLockFileEx() functions for…
1
vote
1 answer

Windows NtCreateFile returning STATUS_INVALID_PARAMETER (using undocumented NT syscall interface)

I thought it might be interesting/fun to write a program in assembly (for 64-bit x86, NASM) that uses the undocumented Windows NT system call interface. Unfourtunately, it appears as though somewhere along the line I'm incorrectly setting up a…
1
vote
1 answer

Do i own my console or i inherited it from my parent?

How can NT character-mode application determine if its console has been inherited from parent process, as opposed to newly allocated console within CreateProcess? wow, so unpopular tags! adding windows to attract appropriate programmers @anonymous…
Premature Optimization
  • 1,917
  • 1
  • 15
  • 24
1
vote
3 answers

How to Run Long Powershell script from Windows Command Prompt (CMD)

I tried to launch a long powershell script with the name "long name here.ps1" from command prompt. But I am also trying to ensure that it runs as an administrator command in powershell. I have all execution policies in powershell set accordingly I…
1
vote
1 answer

How and where is the heap allocated in regards to a portable executable on Windows NT/10?

I am currently studying the Portable Executable file format and I've learned about the 9 common sections such as .code, .data, .rdata, .debug, and etc... However, one piece of information which seems to be obscure and absent from the papers I've…
the_endian
  • 2,259
  • 1
  • 24
  • 49
1
vote
0 answers

Why batch script variable remain unchanged inside FOR loop?

We need to control a daemon like start, stop, restart, status using batch script where CKI_SYSTEM_STAT is variable, changed dynamically base on the condition of the daemon. Here we have to simulate it for your realization according to the issue.…
Śhāhēēd
  • 1,812
  • 6
  • 23
  • 44
1
vote
2 answers

Error install in ionic cordova process

How to solve error installation problem in ionic