wnsprintfA/W and StrCmpICW not in SHLWAPI.INC / LIB??

Started by turnbui, April 28, 2006, 01:10:54 PM

Previous topic - Next topic

turnbui

Hi everyone,
In order to get a clean compile I put an extrn for StrCmpICW, wnsprintfA and wnsprintfW. These are supposed to be in SHLWAPI.INC and .LIB but are not in the MASM32 ver 9 \include or \lib. I know they are C routines but they are not in my VC++ 6.0 SHLWAPI.H or .LIB either.
Does anyone know how I can get a clean link, one that will work please?

Thanks

hutch--

Run DUMPPE on the system DLL and see if its in the EXPORTS and you will know if its there or not. If they are there, try using LoadLibrary(), GetProcAddress() to make sure they work correctly and remember if they are C calling convention to clean up the stack after with an ADD ESP, BYTECOUNT where BYTECOUNT = the stack parameter byte count.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MichaelW

Quote
For those versions of Microsoft Windows that do not include StrCmpIC in Shlwapi.h, this function's individual ANSI or Unicode version must be called directly from Shlwapi.dll. StrCmpICA is ordinal 157 and StrCmpICW is ordinal 158.

MSDN: StrCmpIC Function

Not included in the shlwapi.h and shlwapi.lib from the February 2003 PSDK.

MSDN: wnsprintf Function

These are included in the shlwapi.h and shlwapi.lib from the February 2003 PSDK:

LWSTDAPIV_(int)     wnsprintfA(LPSTR lpOut, int cchLimitIn, LPCSTR lpFmt, ...);
LWSTDAPIV_(int)     wnsprintfW(LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, ...);

eschew obfuscation

turnbui

Thanks Michael,
PSDK ?? Can I get a copy of this from somewhere?
Not sure what a PSDK is though - can you elaborate please?
Thnaks

turnbui

I posted a reply to hutch just before the one to Michael, how come it isn't showing up?
Ah well, must be me.

Thanks hutch,

Anyway, unfortunately dumppe blew up after outputting 24K [I piped its output to wininet_dumppe.txt] and it was last working on SHLWAPI and reported 44 exports the last 2 lines were:-

00001424   E9 StrCmpIW
00001428

MichaelW

Windows Server 2003 SP1 Platform SDK

Here is the download page for the full install of the PSDK version I use (will work for Windows 98 IIRC):

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm

And the download page for the full install of a newer version, but I'm not sure which:

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm

eschew obfuscation

turnbui

Many thanks Michael I tried to find a February 2003 edition of the PSDK but guess I must have misunderstood.
Nice one

Vortex

turnbui,

Here is a copy of shlwapi.lib from Pelles import library set. The attachment contains also an include file extracted from shlwapi.lib for MASM \ POASM

[attachment deleted by admin]

turnbui