Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the folder that the menu band is set to browse.
HRESULT GetShellFolder(
[out] DWORD *pdwFlags,
[out] PIDLIST_ABSOLUTE *ppidl,
[in] REFIID riid,
[out] void **ppv
);
[out] pdwFlags
Type: DWORD*
When this method returns successfully, contains a pointer to a set of flag values that specify how the menu band operates.
Can return any of the following flags.
Value | Meaning |
---|---|
|
No options. |
|
Do not allow drag-and-drop. |
|
This is the top band. |
|
Do not destroy the band when the window is closed. |
Always returns one of the following flags.
Value | Meaning |
---|---|
|
Specifies a vertical band. |
|
Specifies a horizontal band. |
[out] ppidl
Type: PCIDLIST_ABSOLUTE*
When this method returns, contains the address of the folder's fully qualified ITEMIDLIST.
[in] riid
Type: REFIID
The REFIID for the target folder.
[out] ppv
Type: void**
When this method returns successfully, contains the address of a pointer to the Shell folder object referenced by the riid.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll |
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!