开发者

Failed to programmatically uninstall a font in Windows CE

开发者 https://www.devze.com 2023-03-06 19:33 出处:网络
I would like to programmatically uninstall and delete \'simsun.ttc\' font collection from \'\\Hard Disk\\Fonts\' on WinCE 5. I try to use RemoveFontResource() function but it fails and the last error

I would like to programmatically uninstall and delete 'simsun.ttc' font collection from '\Hard Disk\Fonts' on WinCE 5. I try to use RemoveFontResource() function but it fails and the last error is (0x2) (The system cannot find the file specified). I definitely 开发者_开发问答know that the file is present.

...
BOOL res = RemoveFontResource(L"\\Hard Disk\\Fonts\\simsun.ttc");
DWORD err = GetLastError(); // 0x2

...

What is the problem?


Did you install the font, or did it come in the OS? If it came in the OS (which is likely) then you probably can't delete it. Why would you want to? Are you trying to save space? If so, get a new OS image without the font in it.

0

精彩评论

暂无评论...
验证码 换一张
取 消