Post Reply 
New Version: 2015.0427
05-15-2015, 03:22 PM
Post: #39
RE: New Version: 2015.0427
(05-15-2015 01:14 PM)cyrille de brĂ©bisson Wrote:  ...
I will have to see if there is a way to only conditionally 'load' CancelIOEx so that cleanup can happen properly on vista and above but is not referenced at all under XP so that these programs keep working under XP.
...

Under Windows you could always (since Version 1.03, I think) link to a function using the GetProcAddress function. This is the classical way to link to DLLs at runtime instead of using the static pointers to DLL function contained in in library stubs in .LIB files.

MSDN gives the following example:
Code:

typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO);

// Call GetNativeSystemInfo if supported or GetSystemInfo otherwise.

   PGNSI pGNSI;
   SYSTEM_INFO si;

   ZeroMemory(&si, sizeof(SYSTEM_INFO));
   
   pGNSI = (PGNSI) GetProcAddress(
      GetModuleHandle(TEXT("kernel32.dll")), 
      "GetNativeSystemInfo");
   if(NULL != pGNSI)
   {
      pGNSI(&si);
   }
   else 
   {
       GetSystemInfo(&si);
   }

Best Regards, Martin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New Version: 2015.0427 - Tim Wessman - 05-13-2015, 05:48 PM
RE: New Version: 2015.0427 - Gerald H - 05-13-2015, 06:18 PM
RE: New Version: 2015.0427 - toml_12953 - 05-13-2015, 07:40 PM
RE: New Version: 2015.0427 - salvomic - 05-13-2015, 06:39 PM
RE: New Version: 2015.0427 - Tim Wessman - 05-13-2015, 07:21 PM
RE: New Version: 2015.0427 - leprechaun - 05-13-2015, 07:22 PM
RE: New Version: 2015.0427 - leprechaun - 05-13-2015, 07:54 PM
RE: New Version: 2015.0427 - salvomic - 05-13-2015, 09:29 PM
RE: New Version: 2015.0427 - alexzkter - 05-13-2015, 09:53 PM
RE: New Version: 2015.0427 - Voldemar - 05-13-2015, 09:53 PM
RE: New Version: 2015.0427 - Marcio - 05-13-2015, 09:55 PM
RE: New Version: 2015.0427 - Voldemar - 05-13-2015, 10:38 PM
RE: New Version: 2015.0427 - kharpster - 05-13-2015, 10:41 PM
RE: New Version: 2015.0427 - Tyann - 05-13-2015, 11:08 PM
RE: New Version: 2015.0427 - kharpster - 05-13-2015, 11:22 PM
RE: New Version: 2015.0427 - Tyann - 05-13-2015, 11:43 PM
RE: New Version: 2015.0427 - kharpster - 05-13-2015, 11:55 PM
RE: New Version: 2015.0427 - akmon - 05-14-2015, 12:56 PM
RE: New Version: 2015.0427 - Gerald H - 05-14-2015, 05:22 AM
RE: New Version: 2015.0427 - Tyann - 05-14-2015, 05:52 AM
RE: New Version: 2015.0427 - Tyann - 05-14-2015, 10:07 AM
RE: New Version: 2015.0427 - toml_12953 - 05-14-2015, 08:52 AM
RE: New Version: 2015.0427 - Tim Wessman - 05-14-2015, 05:29 PM
RE: New Version: 2015.0427 - Mic - 05-14-2015, 09:04 AM
RE: New Version: 2015.0427 - phgerin - 05-14-2015, 09:43 AM
RE: New Version: 2015.0427 - salvomic - 05-14-2015, 10:09 AM
RE: New Version: 2015.0427 - fhub - 05-14-2015, 01:30 PM
RE: New Version: 2015.0427 - Tyann - 05-14-2015, 04:11 PM
RE: New Version: 2015.0427 - CR Haeger - 05-14-2015, 11:34 AM
RE: New Version: 2015.0427 - CR Haeger - 05-14-2015, 09:22 PM
RE: New Version: 2015.0427 - Tim Wessman - 05-15-2015, 02:43 AM
RE: New Version: 2015.0427 - Slowlife - 05-14-2015, 11:41 AM
RE: New Version: 2015.0427 - Archanus - 05-14-2015, 06:12 PM
RE: New Version: 2015.0427 - salvomic - 05-14-2015, 07:44 PM
RE: New Version: 2015.0427 - Tim Wessman - 05-14-2015, 08:06 PM
RE: New Version: 2015.0427 - Archanus - 05-15-2015, 05:57 PM
RE: New Version: 2015.0427 - salvomic - 05-15-2015, 06:21 PM
RE: New Version: 2015.0427 - Thomas_Sch - 05-16-2015, 07:30 AM
RE: New Version: 2015.0427 - fhub - 05-15-2015, 01:37 PM
RE: New Version: 2015.0427 - Martin Hepperle - 05-15-2015 03:22 PM
RE: New Version: 2015.0427 - leprechaun - 05-15-2015, 07:45 PM
RE: New Version: 2015.0427 - salvomic - 05-15-2015, 08:01 PM
RE: New Version: 2015.0427 - dg1969 - 05-15-2015, 08:31 PM
RE: New Version: 2015.0427 - leprechaun - 05-15-2015, 08:53 PM
RE: New Version: 2015.0427 - dg1969 - 05-15-2015, 09:05 PM
RE: New Version: 2015.0427 - parisse - 05-16-2015, 06:17 AM
RE: New Version: 2015.0427 - akmon - 05-16-2015, 03:45 PM
RE: New Version: 2015.0427 - akmon - 05-16-2015, 03:51 PM
RE: New Version: 2015.0427 - salvomic - 05-16-2015, 03:58 PM
RE: New Version: 2015.0427 - akmon - 05-16-2015, 03:58 PM
RE: New Version: 2015.0427 - salvomic - 05-16-2015, 04:06 PM
RE: New Version: 2015.0427 - salvomic - 05-16-2015, 04:23 PM
RE: New Version: 2015.0427 - phgerin - 05-16-2015, 04:58 PM
RE: New Version: 2015.0427 - salvomic - 05-16-2015, 05:05 PM
RE: New Version: 2015.0427 - akmon - 05-16-2015, 10:24 PM
RE: New Version: 2015.0427 - mandresve - 05-16-2015, 10:56 PM
RE: New Version: 2015.0427 - salvomic - 05-17-2015, 08:20 AM



User(s) browsing this thread: 7 Guest(s)