Hello,
i have th following declaration of RtlGetNtVersionNumber:
and using like this:
but i'm getting this error saying:
"Can't find DLL entry point RtlGetNtVersionNumber in ntdll.dll"
some idea how solve?
thank you by any suggestion.
i have th following declaration of RtlGetNtVersionNumber:
Código [Seleccionar]
Public Declare Sub RtlGetNtVersionNumber Lib "ntdll.dll" (ByRef MajorVersion As Long, ByRef MinorVersion As Long, ByRef BuildNumber As Integer)
and using like this:
Código (vb) [Seleccionar]
Dim OsBuild As Integer
Dim MaN As Long, MiN As Long
Dim FilePath As String
Call RtlGetNtVersionNumber(MaN, MiN, OsBuild)
Select Case OsBuild
Case 2600
FilePath = "\WinXPSssdt.txt"
Case 3750
FilePath = "\Win2k3x86Sssdt.txt"
Case 6000
FilePath = "\VistaX86Sssdt.txt"
Case 7600
FilePath = "\Win7x86Sssdt.txt"
Case 9200
FilePath = "\Win8x86Sssdt.txt"
Case 9600
FilePath = "\Win81x86Sssdt.txt"
Case 10240
FilePath = "\Win10Th1x86Sssdt.txt"
Case 10586
FilePath = "\Win10Th2x86Sssdt.txt"
Case Else
MsgBox "Current System is not supported", vbExclamation, "Error": End
End Select
but i'm getting this error saying:
"Can't find DLL entry point RtlGetNtVersionNumber in ntdll.dll"
some idea how solve?
thank you by any suggestion.