>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl;fi;fd"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl;fi;fd"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl;fi;fd"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\apiemulator.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\bookmark.c"\r
>\r
</File>\r
Filter="h;hpp;hxx;hm;inl"\r
>\r
<File\r
+ RelativePath=".\apiemulator.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\common.h"\r
>\r
</File>\r
#include "socketwrapper.h"\r
// プロセスをDLL Injectionから保護する\r
#include "protectprocess.h"\r
+// 一部のWin32 APIのエミュレーションを行う\r
+#include "apiemulator.h"\r
\r
#include "socketwrapper.h"\r
#include "protectprocess.h"\r
#include "mbswrapper.h"\r
+#include "apiemulator.h"\r
\r
typedef struct\r
{\r
memset(&Info, 0, sizeof(SHELLEXECUTEINFO));\r
Info.cbSize = sizeof(SHELLEXECUTEINFO);\r
Info.fMask = SEE_MASK_NOCLOSEPROCESS;\r
- Info.lpVerb = _T("runas");\r
+ if(IsUserAnAdmin())\r
+ Info.lpVerb = _T("open");\r
+ else\r
+ Info.lpVerb = _T("runas");\r
Info.lpFile = Path;\r
Info.lpParameters = NewCommandLine;\r
Info.nShow = SW_SHOW;\r