ReactOS 0.4.15-dev-8092-ge0ba2f3
shelltest.h File Reference
#include <ntstatus.h>
#include <apitest.h>
#include <winreg.h>
#include <shlobj.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <atlbase.h>
#include <atlcom.h>
Include dependency graph for shelltest.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COM_NO_WINDOWS_H
 
#define WIN32_NO_STATUS
 

Functions

VOID PathToIDList (LPCWSTR pszPath, ITEMIDLIST **ppidl)
 

Macro Definition Documentation

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 5 of file shelltest.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file shelltest.h.

Function Documentation

◆ PathToIDList()

VOID PathToIDList ( LPCWSTR  pszPath,
ITEMIDLIST **  ppidl 
)

Definition at line 83 of file shelltest.cpp.

84{
85 CComPtr<IBindCtx> spbc;
87 ok(hr == S_OK, "hr = %lx\n", hr);
88 if (SUCCEEDED(hr))
89 {
90 hr = SHParseDisplayName(pszPath, spbc, ppidl, 0, NULL);
91 ok(hr == S_OK, "hr = %lx\n", hr);
92 }
93}
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
HRESULT WINAPI SHParseDisplayName(LPCWSTR pszName, IBindCtx *pbc, LPITEMIDLIST *ppidl, SFGAOF sfgaoIn, SFGAOF *psfgaoOut)
Definition: pidl.c:1405
static HRESULT CreateFileSysBindCtx(_Outptr_ IBindCtx **ppbc)
Definition: shelltest.cpp:67
HRESULT hr
Definition: shlfolder.c:183

Referenced by TestCompareIDList().