- 【初心者歓迎】C/C++室 Ver.91【環境依存OK】
678 :デフォルトの名無しさん[sage]:2014/07/14(月) 08:59:16.06 ID:Hkx+f73P - http://msdn.microsoft.com/ja-jp/library/windows/desktop/ff934858.aspx
ここのリスト2のサンプルがうまく行きません。分かる人いたら教えてください #include "stdafx.h" #include "Shlobj.h" #pragma comment(lib, "shell32.lib") int _tmain(int argc, _TCHAR* argv[]) { IShellItem* pItem = nullptr; HRESULT hr = ::SHCreateItemInKnownFolder( FOLDERID_Libraries, 0, nullptr, IID_PPV_ARGS(&pItem)); if (SUCCEEDED(hr)) { printf("成功"); pItem->Release(); } getchar(); }
|