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.

40 lines
1.5 KiB

  1. #define SECURITY_WIN32
  2. #include <windows.h>
  3. #include <winnls.h>
  4. #include <winbase.h>
  5. #include <ras.h>
  6. #include <sensapi.h>
  7. #include <oledlg.h>
  8. #include <vfw.h>
  9. #include <oleacc.h>
  10. #include <ntsecapi.h>
  11. #include <security.h>
  12. // GenThnk chokes on stuff in shlobj.h, so we copy
  13. // enough out of it to handle a few shell APIs.
  14. typedef struct _SHITEMID
  15. {
  16. USHORT cb;
  17. BYTE abID[ 1 ];
  18. } SHITEMID;
  19. typedef struct _ITEMIDLIST
  20. {
  21. SHITEMID mkid;
  22. } ITEMIDLIST;
  23. typedef ITEMIDLIST __unaligned *LPITEMIDLIST;
  24. typedef const ITEMIDLIST __unaligned *LPCITEMIDLIST;
  25. typedef int (CALLBACK* BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
  26. typedef struct _browseinfoW {
  27. HWND hwndOwner;
  28. LPCITEMIDLIST pidlRoot;
  29. LPWSTR pszDisplayName; // Return display name of item selected.
  30. LPCWSTR lpszTitle; // text to go in the banner over the tree.
  31. UINT ulFlags; // Flags that control the return stuff
  32. BFFCALLBACK lpfn;
  33. LPARAM lParam; // extra info that's passed back in callbacks
  34. int iImage; // output var: where to return the Image index.
  35. } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
  36. LPITEMIDLIST __stdcall SHBrowseForFolderW(LPBROWSEINFOW lpbi);
  37. BOOL __stdcall SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath);
  38. void __stdcall SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);