#include "lsasrv.h"
#include <winuser.h>
Go to the source code of this file.
|
INT | LsapLoadString (HINSTANCE hInstance, UINT uId, LPWSTR lpBuffer, INT nBufferMax) |
|
INT | LsapGetResourceStringLengthEx (_In_ HINSTANCE hInstance, _In_ UINT uId, _In_ USHORT usLanguage) |
|
INT | LsapLoadStringEx (_In_ HINSTANCE hInstance, _In_ UINT uId, _In_ USHORT usLanguage, _Out_ LPWSTR lpBuffer, _Out_ INT nBufferMax) |
|
PSID | LsapAppendRidToSid (PSID SrcSid, ULONG Rid) |
|
◆ LsapAppendRidToSid()
Definition at line 152 of file utils.c.
155{
156 ULONG Rids[8] = {0, 0, 0, 0, 0, 0, 0, 0};
160
162 if (RidCount >= 8)
164
165 for (
i = 0;
i < RidCount;
i++)
167
168 Rids[RidCount] = Rid;
169 RidCount++;
170
172 RidCount,
173 Rids[0],
174 Rids[1],
175 Rids[2],
176 Rids[3],
177 Rids[4],
178 Rids[5],
179 Rids[6],
180 Rids[7],
181 &DstSid);
182
183 return DstSid;
184}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
NTSYSAPI PULONG NTAPI RtlSubAuthoritySid(_In_ PSID Sid, _In_ ULONG SubAuthority)
NTSYSAPI PSID_IDENTIFIER_AUTHORITY NTAPI RtlIdentifierAuthoritySid(PSID Sid)
NTSYSAPI NTSTATUS NTAPI RtlAllocateAndInitializeSid(IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount, IN ULONG SubAuthority0, IN ULONG SubAuthority1, IN ULONG SubAuthority2, IN ULONG SubAuthority3, IN ULONG SubAuthority4, IN ULONG SubAuthority5, IN ULONG SubAuthority6, IN ULONG SubAuthority7, OUT PSID *Sid)
NTSYSAPI PUCHAR NTAPI RtlSubAuthorityCountSid(IN PSID Sid)
Referenced by LsapAppendSidToGroups().
◆ LsapGetResourceStringLengthEx()
Definition at line 64 of file utils.c.
68{
70 HRSRC hrsrc;
73
74
75
76
77
78
82 if (!hrsrc)
83 return 0;
84
86 if (!hmem)
87 return 0;
88
90 string_num = uId & 0x000f;
91 for (
i = 0;
i < string_num;
i++)
93
95}
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
#define MAKEINTRESOURCEW(i)
Referenced by LsarpLookupPrivilegeDisplayName().
◆ LsapLoadString()
Definition at line 17 of file utils.c.
21{
23 HRSRC hrsrc;
25 int string_num;
27
28
32 if (!hrsrc)
33 return 0;
34
36 if (!hmem)
37 return 0;
38
40 string_num = uId & 0x000f;
41 for (
i = 0;
i < string_num;
i++)
43
44 i =
min(nBufferMax - 1, *
p);
46 {
49 }
50 else
51 {
52 if (nBufferMax > 1)
53 {
55 return 0;
56 }
57 }
58
60}
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define memcpy(s1, s2, n)
Referenced by LsapInitSids().
◆ LsapLoadStringEx()
Definition at line 99 of file utils.c.
105{
107 HRSRC hrsrc;
109 int string_num;
111
112
113
114
115
116
120 if (!hrsrc)
121 return 0;
122
124 if (!hmem)
125 return 0;
126
128 string_num = uId & 0x000f;
129 for (
i = 0;
i < string_num;
i++)
131
132 i =
min(nBufferMax - 1, *
p);
134 {
137 }
138 else
139 {
140 if (nBufferMax > 1)
141 {
143 return 0;
144 }
145 }
146
148}
Referenced by LsarpLookupPrivilegeDisplayName().