mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[SMLIB]
Fix "annotation" and use a better variable name. svn path=/trunk/; revision=61573
This commit is contained in:
parent
8d73b77251
commit
842cb21775
|
@ -244,7 +244,7 @@ SmConnectToSm(
|
||||||
IN PUNICODE_STRING SbApiPortName,
|
IN PUNICODE_STRING SbApiPortName,
|
||||||
IN HANDLE SbApiPort,
|
IN HANDLE SbApiPort,
|
||||||
IN ULONG ImageType,
|
IN ULONG ImageType,
|
||||||
IN HANDLE SmApiPort
|
OUT PHANDLE SmApiPort
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
|
@ -67,11 +67,11 @@ NTAPI
|
||||||
SmConnectToSm(IN PUNICODE_STRING SbApiPortName,
|
SmConnectToSm(IN PUNICODE_STRING SbApiPortName,
|
||||||
IN HANDLE SbApiPort,
|
IN HANDLE SbApiPort,
|
||||||
IN ULONG ImageType,
|
IN ULONG ImageType,
|
||||||
IN HANDLE SmApiPort)
|
OUT PHANDLE SmApiPort)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
SB_CONNECTION_INFO ConnectInfo;
|
SB_CONNECTION_INFO ConnectInfo;
|
||||||
UNICODE_STRING DestinationString;
|
UNICODE_STRING PortName;
|
||||||
SECURITY_QUALITY_OF_SERVICE SecurityQos;
|
SECURITY_QUALITY_OF_SERVICE SecurityQos;
|
||||||
ULONG ConnectInfoLength = sizeof(ConnectInfo);
|
ULONG ConnectInfoLength = sizeof(ConnectInfo);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ SmConnectToSm(IN PUNICODE_STRING SbApiPortName,
|
||||||
SecurityQos.EffectiveOnly = TRUE;
|
SecurityQos.EffectiveOnly = TRUE;
|
||||||
|
|
||||||
/* Set the SM API port name */
|
/* Set the SM API port name */
|
||||||
RtlInitUnicodeString(&DestinationString, L"\\SmApiPort");
|
RtlInitUnicodeString(&PortName, L"\\SmApiPort");
|
||||||
|
|
||||||
/* Check if this is a client connecting to SMSS, or SMSS to itself */
|
/* Check if this is a client connecting to SMSS, or SMSS to itself */
|
||||||
if (SbApiPortName)
|
if (SbApiPortName)
|
||||||
|
@ -108,7 +108,7 @@ SmConnectToSm(IN PUNICODE_STRING SbApiPortName,
|
||||||
|
|
||||||
/* Connect to SMSS and exchange connection information */
|
/* Connect to SMSS and exchange connection information */
|
||||||
Status = NtConnectPort(SmApiPort,
|
Status = NtConnectPort(SmApiPort,
|
||||||
&DestinationString,
|
&PortName,
|
||||||
&SecurityQos,
|
&SecurityQos,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Reference in a new issue