2012-05-05 02:32:34 +04:00
|
|
|
/**
|
|
|
|
* WinPR: Windows Portable Runtime
|
|
|
|
* Microsoft Remote Procedure Call (MSRPC)
|
|
|
|
*
|
|
|
|
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-08-15 01:20:53 +04:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2012-11-17 12:45:15 +04:00
|
|
|
#include <winpr/crt.h>
|
2012-05-05 02:32:34 +04:00
|
|
|
#include <winpr/rpc.h>
|
2015-10-09 22:57:41 +03:00
|
|
|
#include <winpr/crypto.h>
|
2012-05-05 02:32:34 +04:00
|
|
|
|
2016-03-29 23:03:15 +03:00
|
|
|
#if !defined(_WIN32) || defined(_UWP)
|
2012-10-29 04:55:19 +04:00
|
|
|
|
2014-08-18 19:22:22 +04:00
|
|
|
#include "../log.h"
|
2014-08-18 20:57:08 +04:00
|
|
|
#define TAG WINPR_TAG("rpc")
|
2014-08-18 19:22:22 +04:00
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingCopy(RPC_BINDING_HANDLE SourceBinding,
|
|
|
|
RPC_BINDING_HANDLE* DestinationBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcBindingFree(RPC_BINDING_HANDLE* Binding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingSetOption(RPC_BINDING_HANDLE hBinding,
|
|
|
|
unsigned long option, ULONG_PTR optionValue)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqOption(RPC_BINDING_HANDLE hBinding,
|
|
|
|
unsigned long option, ULONG_PTR* pOptionValue)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingFromStringBindingA(RPC_CSTR StringBinding,
|
|
|
|
RPC_BINDING_HANDLE* Binding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingFromStringBindingW(RPC_WSTR StringBinding,
|
|
|
|
RPC_BINDING_HANDLE* Binding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcSsGetContextBinding(void* ContextHandle,
|
|
|
|
RPC_BINDING_HANDLE* Binding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcBindingInqObject(RPC_BINDING_HANDLE Binding, UUID* ObjectUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcBindingReset(RPC_BINDING_HANDLE Binding)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcBindingSetObject(RPC_BINDING_HANDLE Binding, UUID* ObjectUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqDefaultProtectLevel(unsigned long AuthnSvc,
|
|
|
|
unsigned long* AuthnLevel)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingToStringBindingA(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_CSTR* StringBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingToStringBindingW(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_WSTR* StringBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcBindingVectorFree(RPC_BINDING_VECTOR** BindingVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcStringBindingComposeA(RPC_CSTR ObjUuid, RPC_CSTR Protseq,
|
|
|
|
RPC_CSTR NetworkAddr,
|
|
|
|
RPC_CSTR Endpoint, RPC_CSTR Options, RPC_CSTR* StringBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcStringBindingComposeW(RPC_WSTR ObjUuid, RPC_WSTR Protseq,
|
|
|
|
RPC_WSTR NetworkAddr,
|
|
|
|
RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR* StringBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcStringBindingParseA(RPC_CSTR StringBinding, RPC_CSTR* ObjUuid,
|
|
|
|
RPC_CSTR* Protseq,
|
|
|
|
RPC_CSTR* NetworkAddr, RPC_CSTR* Endpoint, RPC_CSTR* NetworkOptions)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcStringBindingParseW(RPC_WSTR StringBinding, RPC_WSTR* ObjUuid,
|
|
|
|
RPC_WSTR* Protseq,
|
|
|
|
RPC_WSTR* NetworkAddr, RPC_WSTR* Endpoint, RPC_WSTR* NetworkOptions)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcStringFreeA(RPC_CSTR* String)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-10-09 05:46:46 +04:00
|
|
|
if (String)
|
|
|
|
free(*String);
|
|
|
|
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcStringFreeW(RPC_WSTR* String)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-10-09 05:46:46 +04:00
|
|
|
if (String)
|
|
|
|
free(*String);
|
|
|
|
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcIfInqId(RPC_IF_HANDLE RpcIfHandle, RPC_IF_ID* RpcIfId)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcNetworkIsProtseqValidA(RPC_CSTR Protseq)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcNetworkIsProtseqValidW(RPC_WSTR Protseq)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqComTimeout(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned int* Timeout)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtSetComTimeout(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned int Timeout)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtSetCancelTimeout(long Timeout)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcNetworkInqProtseqsA(RPC_PROTSEQ_VECTORA** ProtseqVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcNetworkInqProtseqsW(RPC_PROTSEQ_VECTORW** ProtseqVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcObjectInqType(UUID* ObjUuid, UUID* TypeUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcObjectSetInqFn(RPC_OBJECT_INQ_FN* InquiryFn)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcObjectSetType(UUID* ObjUuid, UUID* TypeUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcProtseqVectorFreeA(RPC_PROTSEQ_VECTORA** ProtseqVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcProtseqVectorFreeW(RPC_PROTSEQ_VECTORW** ProtseqVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcServerInqBindings(RPC_BINDING_VECTOR** BindingVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerInqIf(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
RPC_MGR_EPV** MgrEpv)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerListen(unsigned int MinimumCallThreads,
|
|
|
|
unsigned int MaxCalls, unsigned int DontWait)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
RPC_MGR_EPV* MgrEpv)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerRegisterIfEx(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
RPC_MGR_EPV* MgrEpv,
|
|
|
|
unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallback)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerRegisterIf2(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
RPC_MGR_EPV* MgrEpv,
|
|
|
|
unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize,
|
|
|
|
RPC_IF_CALLBACK_FN* IfCallbackFn)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUnregisterIf(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
unsigned int WaitForCallsToComplete)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUnregisterIfEx(RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
|
|
|
int RundownContextHandles)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseAllProtseqs(unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseAllProtseqsEx(unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseAllProtseqsIf(unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseAllProtseqsIfEx(unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqExA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqExW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqEpA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_CSTR Endpoint, void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqEpExA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_CSTR Endpoint, void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqEpW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_WSTR Endpoint, void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqEpExW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_WSTR Endpoint, void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqIfA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqIfExA(RPC_CSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqIfW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerUseProtseqIfExW(RPC_WSTR Protseq, unsigned int MaxCalls,
|
|
|
|
RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void RpcServerYield()
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcMgmtStatsVectorFree(RPC_STATS_VECTOR** StatsVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqStats(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_STATS_VECTOR** Statistics)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtWaitServerListen(void)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtSetServerStackSize(unsigned long ThreadStackSize)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void RpcSsDontSerializeContext(void)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtEnableIdleCleanup(void)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqIfIds(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_IF_ID_VECTOR** IfIdVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcIfIdVectorFree(RPC_IF_ID_VECTOR** IfIdVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqServerPrincNameA(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned long AuthnSvc, RPC_CSTR* ServerPrincName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtInqServerPrincNameW(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned long AuthnSvc, RPC_WSTR* ServerPrincName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerInqDefaultPrincNameA(unsigned long AuthnSvc,
|
|
|
|
RPC_CSTR* PrincName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerInqDefaultPrincNameW(unsigned long AuthnSvc,
|
|
|
|
RPC_WSTR* PrincName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcEpResolveBinding(RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcNsBindingInqEntryNameA(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned long EntryNameSyntax, RPC_CSTR* EntryName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcNsBindingInqEntryNameW(RPC_BINDING_HANDLE Binding,
|
|
|
|
unsigned long EntryNameSyntax, RPC_WSTR* EntryName)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcRevertToSelf()
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthClientA(RPC_BINDING_HANDLE ClientBinding,
|
|
|
|
RPC_AUTHZ_HANDLE* Privs,
|
|
|
|
RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc,
|
|
|
|
unsigned long* AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthClientW(RPC_BINDING_HANDLE ClientBinding,
|
|
|
|
RPC_AUTHZ_HANDLE* Privs,
|
|
|
|
RPC_WSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc,
|
|
|
|
unsigned long* AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthClientExA(RPC_BINDING_HANDLE ClientBinding,
|
|
|
|
RPC_AUTHZ_HANDLE* Privs,
|
|
|
|
RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc,
|
|
|
|
unsigned long* AuthzSvc, unsigned long Flags)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthClientExW(RPC_BINDING_HANDLE ClientBinding,
|
|
|
|
RPC_AUTHZ_HANDLE* Privs,
|
|
|
|
RPC_WSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc,
|
|
|
|
unsigned long* AuthzSvc, unsigned long Flags)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthInfoA(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel,
|
|
|
|
unsigned long* AuthnSvc, RPC_AUTH_IDENTITY_HANDLE* AuthIdentity,
|
|
|
|
unsigned long* AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthInfoW(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_WSTR* ServerPrincName, unsigned long* AuthnLevel,
|
|
|
|
unsigned long* AuthnSvc, RPC_AUTH_IDENTITY_HANDLE* AuthIdentity,
|
|
|
|
unsigned long* AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingSetAuthInfoA(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_CSTR ServerPrincName, unsigned long AuthnLevel,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity,
|
|
|
|
unsigned long AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingSetAuthInfoExA(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_CSTR ServerPrincName, unsigned long AuthnLevel,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity,
|
|
|
|
unsigned long AuthzSvc, RPC_SECURITY_QOS* SecurityQos)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingSetAuthInfoW(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_WSTR ServerPrincName, unsigned long AuthnLevel,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity,
|
|
|
|
unsigned long AuthzSvc)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingSetAuthInfoExW(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_WSTR ServerPrincName, unsigned long AuthnLevel,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity,
|
|
|
|
unsigned long AuthzSvc, RPC_SECURITY_QOS* SecurityQOS)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthInfoExA(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel,
|
|
|
|
unsigned long* AuthnSvc, RPC_AUTH_IDENTITY_HANDLE* AuthIdentity,
|
|
|
|
unsigned long* AuthzSvc,
|
|
|
|
unsigned long RpcQosVersion, RPC_SECURITY_QOS* SecurityQOS)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingInqAuthInfoExW(RPC_BINDING_HANDLE Binding,
|
|
|
|
RPC_WSTR* ServerPrincName, unsigned long* AuthnLevel,
|
|
|
|
unsigned long* AuthnSvc, RPC_AUTH_IDENTITY_HANDLE* AuthIdentity,
|
|
|
|
unsigned long* AuthzSvc,
|
|
|
|
unsigned long RpcQosVersion, RPC_SECURITY_QOS* SecurityQOS)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerRegisterAuthInfoA(RPC_CSTR ServerPrincName,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, void* Arg)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcServerRegisterAuthInfoW(RPC_WSTR ServerPrincName,
|
|
|
|
unsigned long AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, void* Arg)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcBindingServerFromClient(RPC_BINDING_HANDLE ClientBinding,
|
|
|
|
RPC_BINDING_HANDLE* ServerBinding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-09-24 22:35:03 +04:00
|
|
|
void RpcRaiseException(RPC_STATUS exception)
|
2012-05-05 02:32:34 +04:00
|
|
|
{
|
2014-08-18 19:22:22 +04:00
|
|
|
WLog_ERR(TAG, "RpcRaiseException: 0x%08luX", exception);
|
2013-09-24 22:35:03 +04:00
|
|
|
exit((int) exception);
|
2012-05-05 02:32:34 +04:00
|
|
|
}
|
2012-10-29 04:55:19 +04:00
|
|
|
|
2012-10-31 23:54:08 +04:00
|
|
|
RPC_STATUS RpcTestCancel()
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcServerTestCancel(RPC_BINDING_HANDLE BindingHandle)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcCancelThread(void* Thread)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcCancelThreadEx(void* Thread, long Timeout)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-11-17 12:45:15 +04:00
|
|
|
/**
|
|
|
|
* UUID Functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
static UUID UUID_NIL =
|
|
|
|
{
|
|
|
|
0x00000000, 0x0000, 0x0000,
|
|
|
|
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
|
|
|
|
};
|
2012-10-31 23:54:08 +04:00
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS UuidCreate(UUID* Uuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2015-10-09 22:57:41 +03:00
|
|
|
winpr_RAND_pseudo((BYTE*) Uuid, 16);
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS UuidCreateSequential(UUID* Uuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2015-10-09 22:57:41 +03:00
|
|
|
winpr_RAND_pseudo((BYTE*) Uuid, 16);
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS UuidToStringA(const UUID* Uuid, RPC_CSTR* StringUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2012-11-17 12:45:15 +04:00
|
|
|
*StringUuid = (RPC_CSTR) malloc(36 + 1);
|
|
|
|
|
|
|
|
if (!(*StringUuid))
|
|
|
|
return RPC_S_OUT_OF_MEMORY;
|
|
|
|
|
|
|
|
if (!Uuid)
|
|
|
|
Uuid = &UUID_NIL;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Format is 32 hex digits partitioned in 5 groups:
|
|
|
|
* xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
|
|
*/
|
2016-07-21 17:51:42 +03:00
|
|
|
sprintf_s((char*) *StringUuid, 36 + 1,
|
|
|
|
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
|
|
|
Uuid->Data1, Uuid->Data2, Uuid->Data3,
|
|
|
|
Uuid->Data4[0], Uuid->Data4[1],
|
|
|
|
Uuid->Data4[2], Uuid->Data4[3], Uuid->Data4[4],
|
|
|
|
Uuid->Data4[5], Uuid->Data4[6], Uuid->Data4[7]);
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS UuidToStringW(const UUID* Uuid, RPC_WSTR* StringUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS UuidFromStringA(RPC_CSTR StringUuid, UUID* Uuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2012-11-17 12:45:15 +04:00
|
|
|
int index;
|
|
|
|
BYTE bin[36];
|
|
|
|
|
|
|
|
if (!StringUuid)
|
|
|
|
return UuidCreateNil(Uuid);
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
if (strlen((char*) StringUuid) != 36)
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_INVALID_STRING_UUID;
|
|
|
|
|
|
|
|
if ((StringUuid[8] != '-') || (StringUuid[13] != '-') ||
|
2016-07-21 17:51:42 +03:00
|
|
|
(StringUuid[18] != '-') || (StringUuid[23] != '-'))
|
2012-11-17 12:45:15 +04:00
|
|
|
{
|
|
|
|
return RPC_S_INVALID_STRING_UUID;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (index = 0; index < 36; index++)
|
|
|
|
{
|
|
|
|
if ((index == 8) || (index == 13) || (index == 18) || (index == 23))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if ((StringUuid[index] >= '0') && (StringUuid[index] <= '9'))
|
|
|
|
bin[index] = StringUuid[index] - '0';
|
|
|
|
else if ((StringUuid[index] >= 'a') && (StringUuid[index] <= 'f'))
|
|
|
|
bin[index] = StringUuid[index] - 'a' + 10;
|
|
|
|
else if ((StringUuid[index] >= 'A') && (StringUuid[index] <= 'F'))
|
|
|
|
bin[index] = StringUuid[index] - 'A' + 10;
|
|
|
|
else
|
|
|
|
return RPC_S_INVALID_STRING_UUID;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
Uuid->Data1 = ((bin[0] << 28) | (bin[1] << 24) | (bin[2] << 20) |
|
|
|
|
(bin[3] << 16) |
|
|
|
|
(bin[4] << 12) | (bin[5] << 8) | (bin[6] << 4) | bin[7]);
|
2012-11-17 12:45:15 +04:00
|
|
|
Uuid->Data2 = ((bin[9] << 12) | (bin[10] << 8) | (bin[11] << 4) | bin[12]);
|
|
|
|
Uuid->Data3 = ((bin[14] << 12) | (bin[15] << 8) | (bin[16] << 4) | bin[17]);
|
|
|
|
Uuid->Data4[0] = ((bin[19] << 4) | bin[20]);
|
|
|
|
Uuid->Data4[1] = ((bin[21] << 4) | bin[22]);
|
|
|
|
Uuid->Data4[2] = ((bin[24] << 4) | bin[25]);
|
|
|
|
Uuid->Data4[3] = ((bin[26] << 4) | bin[27]);
|
|
|
|
Uuid->Data4[4] = ((bin[28] << 4) | bin[29]);
|
|
|
|
Uuid->Data4[5] = ((bin[30] << 4) | bin[31]);
|
|
|
|
Uuid->Data4[6] = ((bin[32] << 4) | bin[33]);
|
|
|
|
Uuid->Data4[7] = ((bin[34] << 4) | bin[35]);
|
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS UuidFromStringW(RPC_WSTR StringUuid, UUID* Uuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
signed int UuidCompare(const UUID* Uuid1, const UUID* Uuid2, RPC_STATUS* Status)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2012-11-17 12:45:15 +04:00
|
|
|
int index;
|
|
|
|
*Status = RPC_S_OK;
|
|
|
|
|
|
|
|
if (!Uuid1)
|
|
|
|
Uuid1 = &UUID_NIL;
|
|
|
|
|
|
|
|
if (!Uuid2)
|
|
|
|
Uuid2 = &UUID_NIL;
|
|
|
|
|
|
|
|
if (Uuid1->Data1 != Uuid2->Data1)
|
|
|
|
return (Uuid1->Data1 < Uuid2->Data1) ? -1 : 1;
|
|
|
|
|
|
|
|
if (Uuid1->Data2 != Uuid2->Data2)
|
|
|
|
return (Uuid1->Data2 < Uuid2->Data2) ? -1 : 1;
|
|
|
|
|
|
|
|
if (Uuid1->Data3 != Uuid2->Data3)
|
|
|
|
return (Uuid1->Data3 < Uuid2->Data3) ? -1 : 1;
|
|
|
|
|
|
|
|
for (index = 0; index < 8; index++)
|
|
|
|
{
|
|
|
|
if (Uuid1->Data4[index] != Uuid2->Data4[index])
|
|
|
|
return (Uuid1->Data4[index] < Uuid2->Data4[index]) ? -1 : 1;
|
|
|
|
}
|
|
|
|
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS UuidCreateNil(UUID* NilUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 21:34:47 +04:00
|
|
|
CopyMemory((void*) NilUuid, (void*) &UUID_NIL, 16);
|
2012-11-17 12:45:15 +04:00
|
|
|
return RPC_S_OK;
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
int UuidEqual(const UUID* Uuid1, const UUID* Uuid2, RPC_STATUS* Status)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2012-11-17 12:45:15 +04:00
|
|
|
return ((UuidCompare(Uuid1, Uuid2, Status) == 0) ? TRUE : FALSE);
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
unsigned short UuidHash(const UUID* Uuid, RPC_STATUS* Status)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
int UuidIsNil(const UUID* Uuid, RPC_STATUS* Status)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2012-11-17 12:45:15 +04:00
|
|
|
return UuidEqual(Uuid, &UUID_NIL, Status);
|
2012-10-31 23:54:08 +04:00
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcEpRegisterNoReplaceA(RPC_IF_HANDLE IfSpec,
|
|
|
|
RPC_BINDING_VECTOR* BindingVector, UUID_VECTOR* UuidVector, RPC_CSTR Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcEpRegisterNoReplaceW(RPC_IF_HANDLE IfSpec,
|
|
|
|
RPC_BINDING_VECTOR* BindingVector, UUID_VECTOR* UuidVector, RPC_WSTR Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcEpRegisterA(RPC_IF_HANDLE IfSpec,
|
|
|
|
RPC_BINDING_VECTOR* BindingVector, UUID_VECTOR* UuidVector, RPC_CSTR Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcEpRegisterW(RPC_IF_HANDLE IfSpec,
|
|
|
|
RPC_BINDING_VECTOR* BindingVector, UUID_VECTOR* UuidVector, RPC_WSTR Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcEpUnregister(RPC_IF_HANDLE IfSpec,
|
|
|
|
RPC_BINDING_VECTOR* BindingVector, UUID_VECTOR* UuidVector)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
RPC_STATUS DceErrorInqTextA(RPC_STATUS RpcStatus, RPC_CSTR ErrorText)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS DceErrorInqTextW(RPC_STATUS RpcStatus, RPC_WSTR ErrorText)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtEpEltInqBegin(RPC_BINDING_HANDLE EpBinding,
|
|
|
|
unsigned long InquiryType, RPC_IF_ID* IfId,
|
|
|
|
unsigned long VersOption, UUID* ObjectUuid, RPC_EP_INQ_HANDLE* InquiryContext)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcMgmtEpEltInqDone(RPC_EP_INQ_HANDLE* InquiryContext)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtEpEltInqNextA(RPC_EP_INQ_HANDLE InquiryContext,
|
|
|
|
RPC_IF_ID* IfId,
|
|
|
|
RPC_BINDING_HANDLE* Binding, UUID* ObjectUuid, RPC_CSTR* Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_STATUS RpcMgmtEpEltInqNextW(RPC_EP_INQ_HANDLE InquiryContext,
|
|
|
|
RPC_IF_ID* IfId,
|
|
|
|
RPC_BINDING_HANDLE* Binding, UUID* ObjectUuid, RPC_WSTR* Annotation)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcMgmtEpUnregister(RPC_BINDING_HANDLE EpBinding, RPC_IF_ID* IfId,
|
2016-07-21 17:51:42 +03:00
|
|
|
RPC_BINDING_HANDLE Binding, UUID* ObjectUuid)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
RPC_STATUS RpcMgmtSetAuthorizationFn(RPC_MGMT_AUTHORIZATION_FN AuthorizationFn)
|
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-18 21:34:47 +04:00
|
|
|
RPC_STATUS RpcServerInqBindingHandle(RPC_BINDING_HANDLE* Binding)
|
2012-10-31 23:54:08 +04:00
|
|
|
{
|
2014-08-18 20:57:08 +04:00
|
|
|
WLog_ERR(TAG, "Not implemented");
|
2012-10-31 23:54:08 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-10-29 04:55:19 +04:00
|
|
|
#endif
|