shellapi.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the w64 mingw-runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER within this package.
  5. */
  6. #ifndef _INC_SHELLAPI
  7. #define _INC_SHELLAPI
  8. #ifndef WINSHELLAPI
  9. #if !defined(_SHELL32_)
  10. #define WINSHELLAPI DECLSPEC_IMPORT
  11. #else
  12. #define WINSHELLAPI
  13. #endif
  14. #endif
  15. #ifndef SHSTDAPI
  16. #if !defined(_SHELL32_)
  17. #define SHSTDAPI EXTERN_C DECLSPEC_IMPORT HRESULT WINAPI
  18. #define SHSTDAPI_(type) EXTERN_C DECLSPEC_IMPORT type WINAPI
  19. #else
  20. #define SHSTDAPI STDAPI
  21. #define SHSTDAPI_(type) STDAPI_(type)
  22. #endif
  23. #endif
  24. /* SHDOCAPI[_] definitions not required in this TinyCC minimal header */
  25. #if !defined(_WIN64)
  26. #include <pshpack1.h>
  27. #endif
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #ifdef UNICODE
  32. #define ShellExecute ShellExecuteW
  33. #define FindExecutable FindExecutableW
  34. #else
  35. #define ShellExecute ShellExecuteA
  36. #define FindExecutable FindExecutableA
  37. #endif
  38. /* minimal subset distributed with TinyCC. nShowCmd is at winuser.h */
  39. SHSTDAPI_(HINSTANCE) ShellExecuteA(HWND hwnd,LPCSTR lpOperation,LPCSTR lpFile,LPCSTR lpParameters,LPCSTR lpDirectory,INT nShowCmd);
  40. SHSTDAPI_(HINSTANCE) ShellExecuteW(HWND hwnd,LPCWSTR lpOperation,LPCWSTR lpFile,LPCWSTR lpParameters,LPCWSTR lpDirectory,INT nShowCmd);
  41. SHSTDAPI_(HINSTANCE) FindExecutableA(LPCSTR lpFile,LPCSTR lpDirectory,LPSTR lpResult);
  42. SHSTDAPI_(HINSTANCE) FindExecutableW(LPCWSTR lpFile,LPCWSTR lpDirectory,LPWSTR lpResult);
  43. SHSTDAPI_(LPWSTR *) CommandLineToArgvW(LPCWSTR lpCmdLine,int*pNumArgs);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #if !defined(_WIN64)
  48. #include <poppack.h>
  49. #endif
  50. #endif