百度空间 | 百度首页 
 
查看文章
 
StartBrowser @ fbrowser.dll
2009年08月08日 星期六 15:56

  声明

BOOL StartBrowser(LPCWSTR lpszFolderPath, INT nStyle);

  参数说明

nStyle

0    Icon 模式,类似 Shell32.exe 的“程序”界面

1    Report 模式,类似 File Explorer 的界面

2    Report 模式,打开 \My Documents

3    和 0 一样,其它值自己试看看

  例子

typedef BOOL (WINAPI * FPSTARTBROWSER)(LPCWSTR lpszFolderPath, INT nListViewStyle);
FPSTARTBROWSER StartBrowser;


HMODULE hModule;
hModule = LoadLibraryW(L"fbrowser.dll");
if (NULL != hModule)
{
        StartBrowser = (FPSTARTBROWSER)GetProcAddressW(hModule, (LPCWSTR)10);
        if (NULL != StartBrowser)
        {
                if (StartBrowser(L"\\", 4))
                {
                        MSG msg;

                        while (GetMessage(&msg, NULL, 0, 0))
                        {
                                TranslateMessage(&msg);
                                DispatchMessage(&msg);
                        }
                }
        }
        FreeLibrary(hModule);
}

  效果图



类别:windows mobile 未归档 api | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu