makefiles: Don't use standard libs for programs that specify -nodefaultlibs.
[wine/zf.git] / dlls / authz / authz.c
blob72d462d3bb856c5385895bed3a22d57082534a83
1 /*
2 * AUTHZ Implementation
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
20 #include <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wine/debug.h"
26 #include "authz.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);
34 switch (fdwReason)
36 case DLL_WINE_PREATTACH:
37 return FALSE; /* prefer native version */
38 case DLL_PROCESS_ATTACH:
39 DisableThreadLibraryCalls(hinstDLL);
40 break;
41 default:
42 break;
45 return TRUE;
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);
59 return FALSE;
62 /***********************************************************************
63 * AuthzFreeResourceManager (AUTHZ.@)
65 BOOL WINAPI AuthzFreeResourceManager(AUTHZ_RESOURCE_MANAGER_HANDLE handle)
67 FIXME("%p\n", handle);
68 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
69 return FALSE;
72 /***********************************************************************
73 * AuthzInstallSecurityEventSource (AUTHZ.@)
75 BOOL WINAPI AuthzInstallSecurityEventSource(DWORD flags, AUTHZ_SOURCE_SCHEMA_REGISTRATION *registration)
77 FIXME("(0x%x,%p): stub\n", flags, registration);
78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79 return FALSE;
83 /***********************************************************************
84 * AuthzAccessCheck (AUTHZ.@)
86 BOOL WINAPI AuthzAccessCheck(DWORD flags, AUTHZ_CLIENT_CONTEXT_HANDLE client_context,
87 AUTHZ_ACCESS_REQUEST *request, AUTHZ_AUDIT_EVENT_HANDLE audit_event,
88 PSECURITY_DESCRIPTOR security, PSECURITY_DESCRIPTOR *optional_security,
89 DWORD optional_security_count, AUTHZ_ACCESS_REPLY *reply,
90 AUTHZ_ACCESS_CHECK_RESULTS_HANDLE *access_check_result)
92 FIXME("(0x%x,%p,%p,%p,%p,%p,0x%x,%p,%p): stub\n", flags, client_context,
93 request, audit_event, security, optional_security,
94 optional_security_count, reply, access_check_result);
95 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
96 return FALSE;
100 /***********************************************************************
101 * AuthzFreeContext (AUTHZ.@)
103 BOOL WINAPI AuthzFreeContext(AUTHZ_CLIENT_CONTEXT_HANDLE client_context)
105 FIXME("(%p): stub\n", client_context);
106 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
107 return FALSE;
111 /***********************************************************************
112 * AuthzInitializeContextFromSid (AUTHZ.@)
114 BOOL WINAPI AuthzInitializeContextFromSid(DWORD flags, PSID sid,
115 AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
116 LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
118 FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags, sid, resource_manager,
119 expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
120 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
121 return FALSE;
125 /***********************************************************************
126 * AuthzInitializeContextFromToken (AUTHZ.@)
128 BOOL WINAPI AuthzInitializeContextFromToken(DWORD flags, HANDLE token_handle,
129 AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
130 LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
132 FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags, token_handle, resource_manager,
133 expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
134 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
135 return FALSE;