I am working on windows. I should see a specific set of APIs for Windows 2008 and higher and another set of APIs for other flavors of Windows. I want to know what is the best way to create this kind of material, so my main driver code doesnβt have#ifdef
For example: In Windows 2008, we have an API
EVT_HANDLE WINAPI EvtOpenLog(
__in EVT_HANDLE Session,
__in LPCWSTR Path,
__in DWORD Flags
);
and for Windows 2003, we have another API that does the same.
HANDLE OpenEventLog(
__in LPCTSTR lpUNCServerName,
__in LPCTSTR lpSourceName
);
What I'm looking for is to have some kind of shell API in my code that internally handles these calls.
source
share