4 * Copyright 2009 Austin English
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(authz
);
30 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
32 TRACE("(0x%p, %d, %p)\n", hinstDLL
, fdwReason
, lpvReserved
);
36 case DLL_WINE_PREATTACH
:
37 return FALSE
; /* prefer native version */
38 case DLL_PROCESS_ATTACH
:
39 DisableThreadLibraryCalls(hinstDLL
);
48 /***********************************************************************
49 * AuthzInitializeResourceManager (AUTHZ.@)
51 BOOL WINAPI
AuthzInitializeResourceManager(DWORD flags
, PFN_AUTHZ_DYNAMIC_ACCESS_CHECK access_checker
,
52 PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS compute_dyn_groups
, PFN_AUTHZ_FREE_DYNAMIC_GROUPS free_dyn_groups
,
53 const WCHAR
*managername
, AUTHZ_RESOURCE_MANAGER_HANDLE
*handle
)
55 FIXME("(0x%x,%p,%p,%p,%s,%p): stub\n", flags
, access_checker
,
56 compute_dyn_groups
, free_dyn_groups
,
57 debugstr_w(managername
), handle
);
58 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
63 /***********************************************************************
64 * AuthzInstallSecurityEventSource (AUTHZ.@)
66 BOOL WINAPI
AuthzInstallSecurityEventSource(DWORD flags
, AUTHZ_SOURCE_SCHEMA_REGISTRATION
*registration
)
68 FIXME("(0x%x,%p): stub\n", flags
, registration
);
69 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
74 /***********************************************************************
75 * AuthzAccessCheck (AUTHZ.@)
77 BOOL WINAPI
AuthzAccessCheck(DWORD flags
, AUTHZ_CLIENT_CONTEXT_HANDLE client_context
,
78 AUTHZ_ACCESS_REQUEST
*request
, AUTHZ_AUDIT_EVENT_HANDLE audit_event
,
79 PSECURITY_DESCRIPTOR security
, PSECURITY_DESCRIPTOR
*optional_security
,
80 DWORD optional_security_count
, AUTHZ_ACCESS_REPLY
*reply
,
81 AUTHZ_ACCESS_CHECK_RESULTS_HANDLE
*access_check_result
)
83 FIXME("(0x%x,%p,%p,%p,%p,%p,0x%x,%p,%p): stub\n", flags
, client_context
,
84 request
, audit_event
, security
, optional_security
,
85 optional_security_count
, reply
, access_check_result
);
86 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
91 /***********************************************************************
92 * AuthzFreeContext (AUTHZ.@)
94 BOOL WINAPI
AuthzFreeContext(AUTHZ_CLIENT_CONTEXT_HANDLE client_context
)
96 FIXME("(%p): stub\n", client_context
);
97 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
102 /***********************************************************************
103 * AuthzInitializeContextFromSid (AUTHZ.@)
105 BOOL WINAPI
AuthzInitializeContextFromSid(DWORD flags
, PSID sid
,
106 AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager
, LARGE_INTEGER
*expire_time
,
107 LUID id
, void *dynamic_group
, AUTHZ_CLIENT_CONTEXT_HANDLE
*client_context
)
109 FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags
, sid
, resource_manager
,
110 expire_time
, id
.HighPart
, id
.LowPart
, dynamic_group
, client_context
);
111 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
116 /***********************************************************************
117 * AuthzInitializeContextFromToken (AUTHZ.@)
119 BOOL WINAPI
AuthzInitializeContextFromToken(DWORD flags
, HANDLE token_handle
,
120 AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager
, LARGE_INTEGER
*expire_time
,
121 LUID id
, void *dynamic_group
, AUTHZ_CLIENT_CONTEXT_HANDLE
*client_context
)
123 FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags
, token_handle
, resource_manager
,
124 expire_time
, id
.HighPart
, id
.LowPart
, dynamic_group
, client_context
);
125 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);