성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
닷넷
.NET 3.0
.NET 3.5
.NET 4.0
VC++
개발 환경 구성
제품 소개
VS.NET IDE
Vista
Windows 7
Windows 8
Windows 서버
Team Foundation Server
IIS
디버깅 기술
Win32
64비트
오피스
웹
기타
Phone
부모글 보이기/감추기
내용
Property consumerism<br /> ; <a target="_blank" href="https://learn.microsoft.com/en-us/archive/blogs/benkaras/property-consumerism">https://learn.microsoft.com/en-us/archive/blogs/benkaras/property-consumerism</a><br /> <br /> 약속대로 코드 예제를 공개했습니다.<br /> <br /> 별로 많은 내용이 아니니, 여기에 복사해 넣습니다.<br /> <br /> <hr /> <P><FONT face=Georgia size=2>Reading properties is rather simple. First, bind to the item. </FONT><A href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shcreateitemfromidlist.asp"><FONT face="Courier New" size=2>SHCreateItemFromIDList</FONT></A> <FONT face=Georgia size=2>and </FONT><A href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shcreateitemfromparsingname.asp"><FONT face="Courier New" size=2>SHCreateItemFromParsingName</FONT></A><FONT face=Georgia size=2> are appropriate for this. Then read your properties. Be sure to clean up after yourself.</FONT></P> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <P><FONT face="Courier New" size=2>IShellItem2 *psi;<BR>if (SUCCEEDED(SHCreateItemFromParsingName(L"c:\tortoise.doc", NULL, IID_IShellItem2, (void**)&psi))) <BR>{<BR> IPropertyStore *pps;<BR> if (SUCCEEDED(psi-><A href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/ifaces/ishellitem2/getpropertystore.asp">GetPropertyStore</A>(GPS_DEFAULT, IID_IPropertyStore, (void**)&pps))) <BR> {<BR> PROPVARIANT propvar = {0};<BR> if (SUCCEEDED(pps-><A href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/ifaces/ipropertystore/getvalue.asp">GetValue</A>(PKEY_Title, &propvar))) <BR> {<BR> wprintf(L"Title: %s\n", <A href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/propvarconversionfunctions/propvarianttostringwithdefault.asp">PropVariantToStringWithDefault</A>(propvar, L"<none>"));<BR> PropVariantClear(&propvar);<BR> }<BR> pps->Release();<BR> }<BR> psi->Release();<BR>}</FONT></P></BLOCKQUOTE> <P dir=ltr><FONT face=Georgia size=2>Not bad for reading the title of a document! And I even checked the return results.</FONT></P> <P dir=ltr>---</P> <P dir=ltr><EM>Constable Umer walked down the narrow flagstone path, then onto cobblestones and finally gravel stones. Turning a corner, Cons. Umer found a door with a small card pinned to next to it. "Great Flying Tortoise: Purveyor of fine, proper teas."</EM></P>
첨부파일
스팸 방지용 인증 번호
1034
(왼쪽의 숫자를 입력해야 합니다.)