Leaked source code of windows server 2003
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.

37 lines
1.2 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. #define UNICODE 1
  16. #include "windows.h" // Don't use precompiled header here
  17. #include "commctrl.h" // Don't use precompiled header here
  18. #include "prsht.h"
  19. #include "shlwapi.h"
  20. #include <shfusion.h>
  21. HPROPSHEETPAGE Whistler_CreatePropertySheetPageW(LPCPROPSHEETPAGEW a)
  22. {
  23. LPCPROPSHEETPAGEW ppsp = (LPCPROPSHEETPAGEW)a;
  24. PROPSHEETPAGEW psp;
  25. if (g_hActCtx && (a->dwSize<=PROPSHEETPAGE_V2_SIZE))
  26. {
  27. memset(&psp, 0, sizeof(psp));
  28. CopyMemory(&psp, a, a->dwSize);
  29. psp.dwSize = sizeof(psp);
  30. ppsp = &psp;
  31. }
  32. return CreatePropertySheetPageW(ppsp);
  33. }