News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Native API

Started by bomz, September 06, 2011, 01:14:48 PM

Previous topic - Next topic

bomz

Is it possible to compile code in Native Mode ???

Quote@ECHO OFF
COLOR 9F
cd /d %~dp1
C:\masm32\bin\ml.exe /c /coff "%~1"
C:\masm32\bin\link.exe /subsystem:native "%~n1.obj"
del "%~n1.obj"
pause
Quote.386
.model flat, stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\ntdll.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\ntdll.lib

.code

start:
invokeĀ  RtlAdjustPrivilege,13h,1h,0h,esp
invokeĀ  NtShutdownSystem,1
invoke ExitProcess, 0
end start
There is no mistake but is that right?

BogdanOntanu

Before any answer...

Please tell me what is the purpose of doing this?

:green :green :green
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

bomz

make program which working in native mode using known for me compilerĀ 

http://hex.pp.ua/nt-native-applications-shell-eng.php

qWord

Quote from: bomz on September 06, 2011, 01:14:48 PM
Is it possible to compile code in Native Mode ???
you should ask how to write a driver ...
FPU in a trice: SmplMath
It's that simple!

bomz


qWord

FPU in a trice: SmplMath
It's that simple!


drizz

Yes it is:
http://web.archive.org/web/20051223164730/http://www.sysinternals.com/Information/NativeApplications.html
The truth cannot be learned ... it can only be recognized.

bomz