• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revisionf8dc74e64bfd32eb561e76bc4f9435a82a012fbc (tree)
Time2014-06-21 20:45:30
Authors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix the commit.

Change Summary

Incremental Difference

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- /dev/null
+++ b/apiemulator.c
@@ -0,0 +1,28 @@
1+// apiemulator.c
2+// Copyright (C) 2014 Suguru Kawamoto
3+// APIエミュレータ
4+
5+#include <windows.h>
6+
7+#define DO_NOT_REPLACE
8+#include "apiemulator.h"
9+
10+BOOL IsUserAnAdminAlternative()
11+{
12+ BOOL bResult;
13+ SID_IDENTIFIER_AUTHORITY sia = SECURITY_NT_AUTHORITY;
14+ PSID pSID;
15+ BOOL b;
16+ bResult = FALSE;
17+ if(AllocateAndInitializeSid(&sia, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &pSID))
18+ {
19+ if(CheckTokenMembership(NULL, pSID, &b))
20+ {
21+ if(b)
22+ bResult = TRUE;
23+ }
24+ FreeSid(pSID);
25+ }
26+ return bResult;
27+}
28+
--- /dev/null
+++ b/apiemulator.h
@@ -0,0 +1,19 @@
1+// apiemulator.h
2+// Copyright (C) 2014 Suguru Kawamoto
3+// APIエミュレータ
4+
5+#ifndef __APIEMULATOR_H__
6+#define __APIEMULATOR_H__
7+
8+#include <windows.h>
9+
10+#ifndef DO_NOT_REPLACE
11+
12+#define IsUserAnAdmin IsUserAnAdminAlternative
13+
14+#endif
15+
16+BOOL IsUserAnAdminAlternative();
17+
18+#endif
19+