Adding L"" defines to include files ?

Marcus Meissner meissner at suse.de
Fri Sep 1 03:06:57 CDT 2006


On Fri, Sep 01, 2006 at 09:43:40AM +0200, Paul Vriens wrote:
> Hi,
> 
> I'm currently dealing with the DllRegister part of wintrust. One of it's
> include files (softpub.h) on Windows has:
> 
> #define SP_POLICY_PROVIDER_DLL_NAME L"WINTRUST.DLL"
> #define SP_INIT_FUNCTION            L"SoftpubInitialize"
> #define SP_OBJTRUST_FUNCTION        L"SoftpubLoadMessage"
> #define SP_SIGTRUST_FUNCTION        L"SoftpubLoadSignature"
> #define SP_CHKCERT_FUNCTION         L"SoftpubCheckCert"
> #define SP_FINALPOLICY_FUNCTION     L"SoftpubAuthenticode"
> #define SP_CLEANUPPOLICY_FUNCTION   L"SoftpubCleanup"
> 
> should we do the same?
> 
> I've seen several occurrences of these in our own include files, so one
> should think there is no harm.

They won't work when used in WINE.

L"xxx" usually gives a strings with 4 byte characters instead of the
expect 2.

Ciao, Marcus



More information about the wine-devel mailing list