Re: Winlogon notifications. Please help !!!
- From: "Skywing [MVP]" <skywing_NO_SPAM_@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Jul 2006 11:19:01 -0400
As far as I know, you will need to use a .DEF file or `#pragma
comment(linker, "/EXPORT:...")' to alias an exported function to a different
external name than its decorated (C or C++) name. There is no good way that
I know of to do this with just `__declspec(dllexport)'.
Ken Johnson (Skywing)
Windows SDK MVP
"Sylvain" <noSpam@xxxxxxxx> wrote in message
Alun Jones wrote on 22/07/2006 01:40:
That alone did not succeed in removing name decoration. The function
still got '_' put at the front, and "@4" at the end of its name.
such names look like C functions, not C++, so extern "C" wasn't the point.
but still, either I'm missing something or there are some hidden options
somewhere (since it works for me I've never invest that point).
to give on 'bad sample' ('bad' regarding this ng, but it's the first dll
that comes to me), the source:
CK_RV __declspec(dllexport) C_GetFunctionList(CK_FUNCTION_LIST**);
CK_RV __declspec(dllexport) C_Initialize(CK_VOID_PTR);
CK_RV __declspec(dllexport) C_Finalize(CK_VOID_PTR);
W:\out\debug>dumpbin /exports scpkcs11.dll
Microsoft (R) COFF Binary File Dumper Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
Dump of file scpkcs11.dll
File Type: DLL
Section contains the following exports for scpkcs11.dll
44B5A6FF time date stamp Thu Jul 13 03:50:55 2006
1 ordinal base
68 number of functions
68 number of names
ordinal hint RVA name
1 0 00002900 C_CancelFunction
2 1 00001785 C_CloseAllSessions
24 17 00001096 C_Finalize
32 1F 0000278E C_GetFunctionList
and I haven't any .def in my projet.
OOH, when generating a COM library, I indeed use to insert a .def file
because of the same decoration problem ... hidden effect of the project
- Prev by Date: grant an access right on a folder with different doamin
- Next by Date: RE: Plz help me
- Previous by thread: Re: Winlogon notifications. Please help !!!
- Next by thread: grant an access right on a folder with different doamin