Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. //
  2. // APITHK.C
  3. //
  4. // This file has API thunks that allow shdocvw to load and run on
  5. // multiple versions of NT or Win95. Since this component needs
  6. // to load on the base-level NT 4.0 and Win95, any calls to system
  7. // APIs introduced in later OS versions must be done via GetProcAddress.
  8. //
  9. // Also, any code that may need to access data structures that are
  10. // post-4.0 specific can be added here.
  11. //
  12. // NOTE: this file does *not* use the standard precompiled header,
  13. // so it can set _WIN32_WINNT to a later version.
  14. //
  15. #include "windows.h" // Don't use precompiled header here
  16. #include "commctrl.h" // Don't use precompiled header here
  17. #include "prsht.h"
  18. #include "shlwapi.h"
  19. PROPSHEETPAGE* Whistler_CreatePropSheetPageStruct(HINSTANCE hinst)
  20. {
  21. PROPSHEETPAGE* ppsPage = LocalAlloc(LPTR, sizeof(PROPSHEETPAGE));
  22. if (ppsPage)
  23. {
  24. ppsPage->dwSize = IsOS(OS_WHISTLERORGREATER)? sizeof(PROPSHEETPAGE) : PROPSHEETPAGE_V2_SIZE;
  25. ppsPage->hInstance = hinst;
  26. ppsPage->dwFlags = PSP_DEFAULT;
  27. }
  28. return ppsPage;
  29. }