hi,
i need to link ntdll.lib to my FSFD as i am using an api in it. after
linking it to my FSFD for the 2K platform, the FSFD failed to get loaded at
startup. if i don’t link, the FSFD will load. i have not tried it for the NT
platform yet. i do not need to link it for the XP platform as it is already
in ntoskrnl.lib.
thanks.
Ampsi
You cannot. NTDLL.LIB is for user code only.
Use MmGetSystemRoutineAddress to link with the API you use.
Max
----- Original Message -----
From: “Ampsi”
To: “File Systems Developers”
Sent: Thursday, July 10, 2003 2:15 PM
Subject: [ntfsd] linking ntdll.lib
> hi,
>
> i need to link ntdll.lib to my FSFD as i am using an api in it.
after
> linking it to my FSFD for the 2K platform, the FSFD failed to get
loaded at
> startup. if i don’t link, the FSFD will load. i have not tried it
for the NT
> platform yet. i do not need to link it for the XP platform as it is
already
> in ntoskrnl.lib.
>
> thanks.
>
> Ampsi
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
You CAN NOT link drivers with ntdll.lib
-Srin.
-----Original Message-----
From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
Sent: Thursday, July 10, 2003 3:16 AM
To: File Systems Developers
Subject: [ntfsd] linking ntdll.lib
hi,
i need to link ntdll.lib to my FSFD as i am using an api in it. after
linking it to my FSFD for the 2K platform, the FSFD failed to get
loaded
at
startup. if i don’t link, the FSFD will load. i have not tried it for
the
NT
platform yet. i do not need to link it for the XP platform as it is
already
in ntoskrnl.lib.
thanks.
Ampsi
You are currently subscribed to ntfsd as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
thanks. i thought since i can find the lib in the ddk, i should be able to
use it.
btw, is there any equivalent api in NT for MmGetSystemRoutineAddress?
Ampsi
----- Original Message -----
From: “Maxim S. Shatskih”
To: “File Systems Developers”
Sent: Thursday, July 10, 2003 18:40
Subject: [ntfsd] Re: linking ntdll.lib
You cannot. NTDLL.LIB is for user code only.
Use MmGetSystemRoutineAddress to link with the API you use.
Max
----- Original Message -----
From: “Ampsi”
To: “File Systems Developers”
Sent: Thursday, July 10, 2003 2:15 PM
Subject: [ntfsd] linking ntdll.lib
> hi,
>
> i need to link ntdll.lib to my FSFD as i am using an api in it.
after
> linking it to my FSFD for the 2K platform, the FSFD failed to get
loaded at
> startup. if i don’t link, the FSFD will load. i have not tried it
for the NT
> platform yet. i do not need to link it for the XP platform as it is
already
> in ntoskrnl.lib.
>
> thanks.
>
> Ampsi
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to xxxxx@lists.osr.com
No. There is no equivalent API. You need to write a function which does
that yourself. Look at PE docs in msdn and Microsoft website.
-Srin.
-----Original Message-----
From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
Sent: Thursday, July 10, 2003 8:18 PM
To: File Systems Developers
Subject: [ntfsd] Re: linking ntdll.lib
thanks. i thought since i can find the lib in the ddk, i should be
able to
use it.
btw, is there any equivalent api in NT for MmGetSystemRoutineAddress?
Ampsi
----- Original Message -----
From: “Maxim S. Shatskih”
> To: “File Systems Developers”
> Sent: Thursday, July 10, 2003 18:40
> Subject: [ntfsd] Re: linking ntdll.lib
>
>
> You cannot. NTDLL.LIB is for user code only.
> Use MmGetSystemRoutineAddress to link with the API you use.
>
> Max
>
> ----- Original Message -----
> From: “Ampsi”
> To: “File Systems Developers”
> Sent: Thursday, July 10, 2003 2:15 PM
> Subject: [ntfsd] linking ntdll.lib
>
>
> > hi,
> >
> > i need to link ntdll.lib to my FSFD as i am using an api in it.
> after
> > linking it to my FSFD for the 2K platform, the FSFD failed to get
> loaded at
> > startup. if i don’t link, the FSFD will load. i have not tried it
> for the NT
> > platform yet. i do not need to link it for the XP platform as it is
> already
> > in ntoskrnl.lib.
> >
> > thanks.
> >
> > Ampsi
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> btw, is there any equivalent api in NT for
MmGetSystemRoutineAddress?
No. Get the kernel image base by ZwQuerySystemInformation and write
GetProcAddress yourself by parsing the PE exports.
Max
thanks. i guess i will have to find someway to call the api i need from
ntdll in user mode.
Ampsi
----- Original Message -----
From:
To: “File Systems Developers”
Sent: Friday, July 11, 2003 11:36
Subject: [ntfsd] Re: linking ntdll.lib
No. There is no equivalent API. You need to write a function which does
that yourself. Look at PE docs in msdn and Microsoft website.
-Srin.
> -----Original Message-----
> From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
> Sent: Thursday, July 10, 2003 8:18 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: linking ntdll.lib
>
> thanks. i thought since i can find the lib in the ddk, i should be
able to
> use it.
>
> btw, is there any equivalent api in NT for MmGetSystemRoutineAddress?
>
> Ampsi
>
> ----- Original Message -----
> From: “Maxim S. Shatskih”
> To: “File Systems Developers”
> Sent: Thursday, July 10, 2003 18:40
> Subject: [ntfsd] Re: linking ntdll.lib
>
>
> You cannot. NTDLL.LIB is for user code only.
> Use MmGetSystemRoutineAddress to link with the API you use.
>
> Max
>
> ----- Original Message -----
> From: “Ampsi”
> To: “File Systems Developers”
> Sent: Thursday, July 10, 2003 2:15 PM
> Subject: [ntfsd] linking ntdll.lib
>
>
> > hi,
> >
> > i need to link ntdll.lib to my FSFD as i am using an api in it.
> after
> > linking it to my FSFD for the 2K platform, the FSFD failed to get
> loaded at
> > startup. if i don’t link, the FSFD will load. i have not tried it
> for the NT
> > platform yet. i do not need to link it for the XP platform as it is
> already
> > in ntoskrnl.lib.
> >
> > thanks.
> >
> > Ampsi
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to xxxxx@lists.osr.com
Ampsi,
If you are trying to call functions exported from ntdll in
kernel mode forget about it.
If you are trying to call functions exported from ntdll in user
mode, you can just link with ntdll.lib
If you tell the list what you are trying to do, the list members can
suggest you a better way to achieve this.
-Srin.
-----Original Message-----
From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
Sent: Thursday, July 10, 2003 10:50 PM
To: File Systems Developers
Subject: [ntfsd] Re: linking ntdll.lib
thanks. i guess i will have to find someway to call the api i need
from
ntdll in user mode.
Ampsi
----- Original Message -----
From:
> To: “File Systems Developers”
> Sent: Friday, July 11, 2003 11:36
> Subject: [ntfsd] Re: linking ntdll.lib
>
>
> No. There is no equivalent API. You need to write a function which
does
> that yourself. Look at PE docs in msdn and Microsoft website.
>
> -Srin.
>
> > -----Original Message-----
> > From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
> > Sent: Thursday, July 10, 2003 8:18 PM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> > thanks. i thought since i can find the lib in the ddk, i should be
> able to
> > use it.
> >
> > btw, is there any equivalent api in NT for
MmGetSystemRoutineAddress?
> >
> > Ampsi
> >
> > ----- Original Message -----
> > From: “Maxim S. Shatskih”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 18:40
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> >
> > You cannot. NTDLL.LIB is for user code only.
> > Use MmGetSystemRoutineAddress to link with the API you use.
> >
> > Max
> >
> > ----- Original Message -----
> > From: “Ampsi”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 2:15 PM
> > Subject: [ntfsd] linking ntdll.lib
> >
> >
> > > hi,
> > >
> > > i need to link ntdll.lib to my FSFD as i am using an api in it.
> > after
> > > linking it to my FSFD for the 2K platform, the FSFD failed to get
> > loaded at
> > > startup. if i don’t link, the FSFD will load. i have not tried it
> > for the NT
> > > platform yet. i do not need to link it for the XP platform as it
is
> > already
> > > in ntoskrnl.lib.
> > >
> > > thanks.
> > >
> > > Ampsi
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
You could try to tell us what you need so we could suggest a solution then
ask how to do impossible things. Now, what routine do you need to call?
-htfv
----- Original Message -----
From: “Ampsi”
To: “File Systems Developers”
Sent: Friday, July 11, 2003 8:49 AM
Subject: [ntfsd] Re: linking ntdll.lib
> thanks. i guess i will have to find someway to call the api i need from
> ntdll in user mode.
>
> Ampsi
>
> ----- Original Message -----
> From:
> To: “File Systems Developers”
> Sent: Friday, July 11, 2003 11:36
> Subject: [ntfsd] Re: linking ntdll.lib
>
>
> No. There is no equivalent API. You need to write a function which does
> that yourself. Look at PE docs in msdn and Microsoft website.
>
> -Srin.
>
> > -----Original Message-----
> > From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
> > Sent: Thursday, July 10, 2003 8:18 PM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> > thanks. i thought since i can find the lib in the ddk, i should be
> able to
> > use it.
> >
> > btw, is there any equivalent api in NT for MmGetSystemRoutineAddress?
> >
> > Ampsi
> >
> > ----- Original Message -----
> > From: “Maxim S. Shatskih”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 18:40
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> >
> > You cannot. NTDLL.LIB is for user code only.
> > Use MmGetSystemRoutineAddress to link with the API you use.
> >
> > Max
> >
> > ----- Original Message -----
> > From: “Ampsi”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 2:15 PM
> > Subject: [ntfsd] linking ntdll.lib
> >
> >
> > > hi,
> > >
> > > i need to link ntdll.lib to my FSFD as i am using an api in it.
> > after
> > > linking it to my FSFD for the 2K platform, the FSFD failed to get
> > loaded at
> > > startup. if i don’t link, the FSFD will load. i have not tried it
> > for the NT
> > > platform yet. i do not need to link it for the XP platform as it is
> > already
> > > in ntoskrnl.lib.
> > >
> > > thanks.
> > >
> > > Ampsi
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@vba.com.by
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
i was trying to call NtShutdownSystem from the FSFD because I had some
problem calling ExitWindows from a GINA plug-in. I initially thought that
NtShutdownSystem was a kernel call. Anyway, I have already managed to call
NtShutdownSystem in the GINA plug-in.
Ampsi
----- Original Message -----
From: “Alexey Logachyov”
To: “File Systems Developers”
Sent: Saturday, July 12, 2003 00:55
Subject: [ntfsd] Re: linking ntdll.lib
You could try to tell us what you need so we could suggest a solution then
ask how to do impossible things. Now, what routine do you need to call?
-htfv
----- Original Message -----
From: “Ampsi”
To: “File Systems Developers”
Sent: Friday, July 11, 2003 8:49 AM
Subject: [ntfsd] Re: linking ntdll.lib
> thanks. i guess i will have to find someway to call the api i need from
> ntdll in user mode.
>
> Ampsi
>
> ----- Original Message -----
> From:
> To: “File Systems Developers”
> Sent: Friday, July 11, 2003 11:36
> Subject: [ntfsd] Re: linking ntdll.lib
>
>
> No. There is no equivalent API. You need to write a function which does
> that yourself. Look at PE docs in msdn and Microsoft website.
>
> -Srin.
>
> > -----Original Message-----
> > From: Ampsi [mailto:xxxxx@pmail.ntu.edu.sg]
> > Sent: Thursday, July 10, 2003 8:18 PM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> > thanks. i thought since i can find the lib in the ddk, i should be
> able to
> > use it.
> >
> > btw, is there any equivalent api in NT for MmGetSystemRoutineAddress?
> >
> > Ampsi
> >
> > ----- Original Message -----
> > From: “Maxim S. Shatskih”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 18:40
> > Subject: [ntfsd] Re: linking ntdll.lib
> >
> >
> > You cannot. NTDLL.LIB is for user code only.
> > Use MmGetSystemRoutineAddress to link with the API you use.
> >
> > Max
> >
> > ----- Original Message -----
> > From: “Ampsi”
> > To: “File Systems Developers”
> > Sent: Thursday, July 10, 2003 2:15 PM
> > Subject: [ntfsd] linking ntdll.lib
> >
> >
> > > hi,
> > >
> > > i need to link ntdll.lib to my FSFD as i am using an api in it.
> > after
> > > linking it to my FSFD for the 2K platform, the FSFD failed to get
> > loaded at
> > > startup. if i don’t link, the FSFD will load. i have not tried it
> > for the NT
> > > platform yet. i do not need to link it for the XP platform as it is
> > already
> > > in ntoskrnl.lib.
> > >
> > > thanks.
> > >
> > > Ampsi
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@vba.com.by
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
—
You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to xxxxx@lists.osr.com