添加系统目录
默认的系统搜素目录有: 先搜索当前目录,再搜索windows, 还有根目录。因为windows是只读的,根目录是不可保存的,所以要保存安装程序的DLL,可以添加一个目录。
参考http://msdn.microsoft.com/en-us/library/ms886736.aspx
Unless the full path to the module is specified, Windows CE searches the following path for the module:
- The absolute path specified by the lpLibFileName parameter
- The .exe launch directory
- The Windows directory
- ROM DLL files
- An OEM-specified search path
The following registry subkey specifies a search path to use with LoadLibrary and CreateProcess:
The path is only searched if the path of the file being looked for is not explicitly specified.
The total length of the SystemPath value must not exceed 260 characters. If it does, the path is ignored.
A change to the SystemPath key does not take effect until a Windows CE–based device is reset.
HKEY_LOCAL_MACHINE/Loader SystemPath=multi_sz://path1// //path2//