|
//---------------------------------------------------------------------------
bool __fastcall ShowFileProperties(String FileName,HWND Wnd)
{
SHELLEXECUTEINFO sfi;
sfi.cbSize = sizeof(sfi);
sfi.lpFile = FileName.c_str();
sfi.hwnd = Wnd;
sfi.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_INVOKEIDLIST | SEE_MASK_FLAG_NO_UI;
sfi.lpVerb = "properties";
sfi.lpIDList = NULL;
sfi.lpDirectory = NULL;
sfi.nShow = 0;
sfi.hInstApp = 0;
sfi.lpParameters = NULL;
sfi.dwHotKey = 0;
sfi.hIcon = 0;
sfi.hkeyClass = 0;
sfi.hProcess = 0;
sfi.lpClass = NULL;
return ShellExecuteEx(&sfi);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
ShowFileProperties("c:\\", Handle);
}
//---------------------------------------------------------------------------
크레브 님이 쓰신 글 :
: 첨부한 그림과 같은 C 드라이브 등록정보 같은것은
:
: 어떻게 보이게 하는지요?
:
: API 하나가 있을것 같은데.... 못찾겠습니다.
|