Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eca464b6
Commit
eca464b6
authored
Jan 20, 2004
by
Mike Hearn
Committed by
Alexandre Julliard
Jan 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented RpcIsProtSeqValid.
parent
294c8af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+35
-0
rpcdce.h
include/rpcdce.h
+6
-0
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
eca464b6
...
...
@@ -2,6 +2,7 @@
* RPC binding API
*
* Copyright 2001 Ove Kven, TransGaming Technologies
* Copyright 2003 Mike Hearn
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -31,6 +32,7 @@
#include "winnls.h"
#include "winerror.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "rpc.h"
...
...
@@ -1014,3 +1016,36 @@ RPC_STATUS WINAPI I_RpcBindingSetAsync( RPC_BINDING_HANDLE Binding, RPC_BLOCKING
return
RPC_S_OK
;
}
/***********************************************************************
* RpcNetworkIsProtSeqValidA (RPCRT4.@)
*/
RPC_STATUS
RPC_ENTRY
RpcNetworkIsProtSeqValidA
(
unsigned
char
*
protseq
)
{
UNICODE_STRING
protseqW
;
if
(
!
protseq
)
return
RPC_S_INVALID_RPC_PROTSEQ
;
/* ? */
if
(
RtlCreateUnicodeStringFromAsciiz
(
&
protseqW
,
protseq
))
{
RPC_STATUS
ret
=
RpcNetworkIsProtSeqValidW
(
protseqW
.
Buffer
);
RtlFreeUnicodeString
(
&
protseqW
);
return
ret
;
}
else
return
RPC_S_OUT_OF_MEMORY
;
}
/***********************************************************************
* RpcNetworkIsProtSeqValidW (RPCRT4.@)
*
* Checks if the given protocol sequence is known by the RPC system.
* If it is, returns RPC_S_OK, otherwise RPC_S_PROTSEQ_NOT_SUPPORTED.
*
* We currently only support ncalrpc.
*/
RPC_STATUS
RPC_ENTRY
RpcNetworkIsProtSeqValidW
(
LPWSTR
protseq
)
{
static
const
WCHAR
ncalrpcW
[]
=
{
'n'
,
'c'
,
'a'
,
'l'
,
'r'
,
'p'
,
'c'
,
0
};
if
(
!
protseq
)
return
RPC_S_INVALID_RPC_PROTSEQ
;
/* ? */
if
(
!
strcmpW
(
protseq
,
ncalrpcW
))
return
RPC_S_OK
;
FIXME
(
"Unknown protseq %s - we probably need to implement it one day"
,
debugstr_w
(
protseq
));
return
RPC_S_PROTSEQ_NOT_SUPPORTED
;
}
include/rpcdce.h
View file @
eca464b6
...
...
@@ -238,6 +238,12 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
#define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcNetworkIsProtSeqValidA
(
unsigned
char
*
protseq
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcNetworkIsProtSeqValidW
(
LPWSTR
protseq
);
#define RpcNetworkIsProtSeqValid WINELIB_NAME_AW(RpcNetworkIsProtSeqValid)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcStringFreeA
(
unsigned
char
**
String
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcStringFreeW
(
unsigned
short
**
String
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment