현재 이넘은 윈XP만 지원한덴다.

typedef HRESULT (WINAPI MF)(HWND hwndParent, LPCWSTR pszPath);

void CAaaDlg::OnButton1()
{
HMODULE hm = ::LoadLibrary("ntshrui.dll");
if(!hm)
return;

MF* proc = (MF*)GetProcAddress(hm, "ShowShareFolderUIW");

wchar_t str[] = L"C:\\Windows\\";

if(proc)
{
HRESULT f = proc(m_hWnd, str);
int a = 0;
}

::FreeLibrary(hm);
}

+ Recent posts