Article View: borland.public.delphi.nativeapi
Article #12124How to call sscanf() from ntdll.dll correctly?
From: Oliver
Date: Sun, 24 Nov 2002 09:45
Date: Sun, 24 Nov 2002 09:45
19 lines
1598 bytes
1598 bytes
Hi everybody, I tried already to call the sscanf() function, declaring it as follows: function sscanf(inp:PWideChar; fmt:PWideChar; pdw:PDWORD):integer;stdcall;external 'ntdll.dll'; Interestingly I could get the entry point and call it without errors (I tried with integer values, since they don't need extra memory allocation). Please note, I derived the above declaration from that found in C headers in the PSDK (The function itself is neither listed in the 08/2002 PSDK nor in the W2K SP1 DDK). The only difference to the declaration in the header is the calling convention which was initially cdecl instead stdcall (native api). Can anyone help? Cheers, Oliver aka Assarbad --- ICQ: 281645 http://assarbad.org
Technical Details
Message-ID:
<3de09fa4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,71c30f887e8e0a13,start X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-24 02:15:45 PST From: "Oliver" <Oliver@Assarbad.org> Sender: "Oliver" <Oliver@Assarbad.org> Reply-To: "Oliver" <Oliver@Assarbad.org> Subject: How to call sscanf() from ntdll.dll correctly? Newsgroups: borland.public.delphi.nativeapi X-User-Info: 149.225.86.99 149.225.86.99 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3de09fa4$1@newsgroups.borland.com> Date: 24 Nov 2002 01:45:08 -0800 X-Trace: newsgroups.borland.com 1038131108 207.105.83.65 (24 Nov 2002 01:45:08 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail