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
ec2f5136
Commit
ec2f5136
authored
Jun 23, 2011
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement RpcNetworkInqProtseqs.
parent
2fe9f14b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
18 deletions
+71
-18
rpc_server.c
dlls/rpcrt4/rpc_server.c
+0
-18
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+65
-0
rpcdce.h
include/rpcdce.h
+6
-0
No files found.
dlls/rpcrt4/rpc_server.c
View file @
ec2f5136
...
...
@@ -825,24 +825,6 @@ static RPC_STATUS RPCRT4_use_protseq(RpcServerProtseq* ps, const char *endpoint)
}
/***********************************************************************
* RpcNetworkInqProtseqsA (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcNetworkInqProtseqsA
(
RPC_PROTSEQ_VECTORA
*
ProtSeqVector
)
{
FIXME
(
"(%p): stub
\n
"
,
ProtSeqVector
);
return
RPC_S_NO_PROTSEQS_REGISTERED
;
}
/***********************************************************************
* RpcNetworkInqProtseqsW (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcNetworkInqProtseqsW
(
RPC_PROTSEQ_VECTORW
*
ProtSeqVector
)
{
FIXME
(
"(%p): stub
\n
"
,
ProtSeqVector
);
return
RPC_S_NO_PROTSEQS_REGISTERED
;
}
/***********************************************************************
* RpcServerInqBindings (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcServerInqBindings
(
RPC_BINDING_VECTOR
**
BindingVector
)
...
...
dlls/rpcrt4/rpc_transport.c
View file @
ec2f5136
...
...
@@ -3160,3 +3160,68 @@ RPC_STATUS WINAPI RpcProtseqVectorFreeW(RPC_PROTSEQ_VECTORW **protseqs)
}
return
RPC_S_OK
;
}
/***********************************************************************
* RpcNetworkInqProtseqsW (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcNetworkInqProtseqsW
(
RPC_PROTSEQ_VECTORW
**
protseqs
)
{
RPC_PROTSEQ_VECTORW
*
pvector
;
int
i
=
0
;
RPC_STATUS
status
=
RPC_S_OUT_OF_MEMORY
;
TRACE
(
"(%p)
\n
"
,
protseqs
);
*
protseqs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
RPC_PROTSEQ_VECTORW
)
+
(
sizeof
(
unsigned
short
*
)
*
ARRAYSIZE
(
protseq_list
)));
if
(
!*
protseqs
)
goto
end
;
pvector
=
*
protseqs
;
pvector
->
Count
=
0
;
for
(
i
=
0
;
i
<
ARRAYSIZE
(
protseq_list
);
i
++
)
{
pvector
->
Protseq
[
i
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlen
(
protseq_list
[
i
].
name
)
+
1
)
*
sizeof
(
unsigned
short
));
if
(
pvector
->
Protseq
[
i
]
==
NULL
)
goto
end
;
MultiByteToWideChar
(
CP_ACP
,
0
,
(
CHAR
*
)
protseq_list
[
i
].
name
,
-
1
,
(
WCHAR
*
)
pvector
->
Protseq
[
i
],
strlen
(
protseq_list
[
i
].
name
)
+
1
);
pvector
->
Count
++
;
}
status
=
RPC_S_OK
;
end:
if
(
status
!=
RPC_S_OK
)
RpcProtseqVectorFreeW
(
protseqs
);
return
status
;
}
/***********************************************************************
* RpcNetworkInqProtseqsA (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcNetworkInqProtseqsA
(
RPC_PROTSEQ_VECTORA
**
protseqs
)
{
RPC_PROTSEQ_VECTORA
*
pvector
;
int
i
=
0
;
RPC_STATUS
status
=
RPC_S_OUT_OF_MEMORY
;
TRACE
(
"(%p)
\n
"
,
protseqs
);
*
protseqs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
RPC_PROTSEQ_VECTORW
)
+
(
sizeof
(
unsigned
char
*
)
*
ARRAYSIZE
(
protseq_list
)));
if
(
!*
protseqs
)
goto
end
;
pvector
=
*
protseqs
;
pvector
->
Count
=
0
;
for
(
i
=
0
;
i
<
ARRAYSIZE
(
protseq_list
);
i
++
)
{
pvector
->
Protseq
[
i
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
protseq_list
[
i
].
name
)
+
1
);
if
(
pvector
->
Protseq
[
i
]
==
NULL
)
goto
end
;
strcpy
((
char
*
)
pvector
->
Protseq
[
i
],
protseq_list
[
i
].
name
);
pvector
->
Count
++
;
}
status
=
RPC_S_OK
;
end:
if
(
status
!=
RPC_S_OK
)
RpcProtseqVectorFreeA
(
protseqs
);
return
status
;
}
include/rpcdce.h
View file @
ec2f5136
...
...
@@ -562,6 +562,12 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
#define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcNetworkInqProtseqsA
(
RPC_PROTSEQ_VECTORA
**
protseqs
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcNetworkInqProtseqsW
(
RPC_PROTSEQ_VECTORW
**
protseqs
);
#define RpcNetworkInqProtseqs WINELIB_NAME_AW(RpcNetworkInqProtseqs)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcProtseqVectorFreeA
(
RPC_PROTSEQ_VECTORA
**
protseqs
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcProtseqVectorFreeW
(
RPC_PROTSEQ_VECTORW
**
protseqs
);
...
...
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