Pelles C forum

Pelles C => General discussions => Topic started by: CommonTater on May 29, 2012, 06:32:05 PM

Title: "native" linker setting...
Post by: CommonTater on May 29, 2012, 06:32:05 PM
Project -> Project Options -> Linker -> Subsystem = Native 
 
Can someone give me a brief explaination of this linker setting, when it's used and in conjunction with what kind of project?
 
Thanks.
 
 
Title: Re: "native" linker setting...
Post by: AlexN on May 29, 2012, 07:13:03 PM
Project -> Project Options -> Linker -> Subsystem = Native 
 
Can someone give me a brief explaination of this linker setting, when it's used and in conjunction with what kind of project?
 
Thanks.
What says the help (Command line tools -> Polink -> Commanline options -> /subsystem -> Native:

NATIVE is used for Windows NT drivers.
Title: Re: "native" linker setting...
Post by: Vortex on May 29, 2012, 08:00:42 PM
Hi CommonTater,

This setting enables also to code an application running before the complete system boot like chkdsk checking for disk errors.
Title: Re: "native" linker setting...
Post by: CommonTater on May 29, 2012, 08:01:09 PM
Project -> Project Options -> Linker -> Subsystem = Native 
 
Can someone give me a brief explaination of this linker setting, when it's used and in conjunction with what kind of project?
 
Thanks.
What says the help (Command line tools -> Polink -> Commanline options -> /subsystem -> Native:

NATIVE is used for Windows NT drivers.


So what kind of project do I create for that?  A DLL?
Title: Re: "native" linker setting...
Post by: aardvajk on May 29, 2012, 08:17:39 PM
None. PellesC doesn't come with the required include files for either drivers or a user-mode native program.
Title: Re: "native" linker setting...
Post by: Vortex on May 29, 2012, 08:21:23 PM
Mark Russinovich's article : Inside Native Applications

http://technet.microsoft.com/en-us/sysinternals/bb897447.aspx
Title: Re: "native" linker setting...
Post by: CommonTater on May 29, 2012, 09:10:03 PM
Ok... thanks for the help guys...

It looks like I don't want to go there with what I had in mind.  :D





Title: Re: "native" linker setting...
Post by: Stefan Pendl on May 30, 2012, 09:30:16 PM
The boot time interface of UltraDefrag is a native application and there is the native-nt-toolkit at http://native-nt-toolkit.googlecode.com/svn/trunk

They all need to link to ntdll.dll ;)

Quote
Sysinternals Freeware - Inside the Native API
    http://netcode.cz/img/83/nativeapi.html

Native API function documentation
    http://undocumented.ntinternals.net/

Listing of the NT Native API  functions
    http://jedi-apilib.sourceforge.net/native/NativeList.html

Inside Native Applications
    http://technet.microsoft.com/en-us/sysinternals/bb897447.aspx

Native Windows API Programmierung (German)
    http://www.ks.uni-freiburg.de/download/studienarbeit/SS07/09-07-napi-jrudolph/NativeAPI-ComputernameChanging.pdf

Windows System Call Table (NT/2000/XP/2003/Vista)
    http://metasploit.com/users/opcode/syscalls.html
Title: Re: "native" linker setting...
Post by: Vortex on May 30, 2012, 09:33:38 PM
Hi Stefan,

http://dev.metasploit.com/users/opcode/syscalls.html

http://jedi-apilib.sourceforge.net/native/NativeList.html

Both of the links are reporing error message 404.
Title: Re: "native" linker setting...
Post by: Stefan Pendl on May 30, 2012, 09:39:38 PM
Seems the way-back machine has to be used for those lost web library books if possible.

Collecting links isn't reliable any more :(
Title: Re: "native" linker setting...
Post by: Vortex on June 08, 2012, 02:03:21 PM
Source code of Native.c :

http://www.osronline.com/showthread.cfm?link=108963