include: Change unsigned long to ULONG in rpcdce.h for Win64 compatibility.

Also fix the compiler warnings introduced by this change.
This commit is contained in:
Michael Stefaniuc 2009-01-04 01:49:37 +01:00 committed by Alexandre Julliard
parent e86eb8efa6
commit 4c7a6694cd
3 changed files with 45 additions and 45 deletions

View File

@ -1372,7 +1372,7 @@ BOOL RpcQualityOfService_IsEqual(const RpcQualityOfService *qos1, const RpcQuali
if (!qos1 || !qos2) if (!qos1 || !qos2)
return FALSE; return FALSE;
TRACE("qos1 = { %ld %ld %ld %ld }, qos2 = { %ld %ld %ld %ld }\n", TRACE("qos1 = { %d %d %d %d }, qos2 = { %d %d %d %d }\n",
qos1->qos->Capabilities, qos1->qos->IdentityTracking, qos1->qos->Capabilities, qos1->qos->IdentityTracking,
qos1->qos->ImpersonationType, qos1->qos->AdditionalSecurityInfoType, qos1->qos->ImpersonationType, qos1->qos->AdditionalSecurityInfoType,
qos2->qos->Capabilities, qos2->qos->IdentityTracking, qos2->qos->Capabilities, qos2->qos->IdentityTracking,
@ -1517,14 +1517,14 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName,
{ {
RPC_STATUS status; RPC_STATUS status;
TRACE("SecurityQos { Version=%ld, Capabilties=0x%lx, IdentityTracking=%ld, ImpersonationLevel=%ld", TRACE("SecurityQos { Version=%d, Capabilties=0x%x, IdentityTracking=%d, ImpersonationLevel=%d",
SecurityQos->Version, SecurityQos->Capabilities, SecurityQos->IdentityTracking, SecurityQos->ImpersonationType); SecurityQos->Version, SecurityQos->Capabilities, SecurityQos->IdentityTracking, SecurityQos->ImpersonationType);
if (SecurityQos->Version >= 2) if (SecurityQos->Version >= 2)
{ {
const RPC_SECURITY_QOS_V2_A *SecurityQos2 = (const RPC_SECURITY_QOS_V2_A *)SecurityQos; const RPC_SECURITY_QOS_V2_A *SecurityQos2 = (const RPC_SECURITY_QOS_V2_A *)SecurityQos;
TRACE(", AdditionalSecurityInfoType=%ld", SecurityQos2->AdditionalSecurityInfoType); TRACE(", AdditionalSecurityInfoType=%d", SecurityQos2->AdditionalSecurityInfoType);
if (SecurityQos2->AdditionalSecurityInfoType == RPC_C_AUTHN_INFO_TYPE_HTTP) if (SecurityQos2->AdditionalSecurityInfoType == RPC_C_AUTHN_INFO_TYPE_HTTP)
TRACE(", { %p, 0x%lx, %ld, %ld, %p, %s }", TRACE(", { %p, 0x%x, %d, %d, %p, %s }",
SecurityQos2->u.HttpCredentials->TransportCredentials, SecurityQos2->u.HttpCredentials->TransportCredentials,
SecurityQos2->u.HttpCredentials->Flags, SecurityQos2->u.HttpCredentials->Flags,
SecurityQos2->u.HttpCredentials->AuthenticationTarget, SecurityQos2->u.HttpCredentials->AuthenticationTarget,
@ -1647,14 +1647,14 @@ RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName,
{ {
RPC_STATUS status; RPC_STATUS status;
TRACE("SecurityQos { Version=%ld, Capabilties=0x%lx, IdentityTracking=%ld, ImpersonationLevel=%ld", TRACE("SecurityQos { Version=%d, Capabilties=0x%x, IdentityTracking=%d, ImpersonationLevel=%d",
SecurityQos->Version, SecurityQos->Capabilities, SecurityQos->IdentityTracking, SecurityQos->ImpersonationType); SecurityQos->Version, SecurityQos->Capabilities, SecurityQos->IdentityTracking, SecurityQos->ImpersonationType);
if (SecurityQos->Version >= 2) if (SecurityQos->Version >= 2)
{ {
const RPC_SECURITY_QOS_V2_W *SecurityQos2 = (const RPC_SECURITY_QOS_V2_W *)SecurityQos; const RPC_SECURITY_QOS_V2_W *SecurityQos2 = (const RPC_SECURITY_QOS_V2_W *)SecurityQos;
TRACE(", AdditionalSecurityInfoType=%ld", SecurityQos2->AdditionalSecurityInfoType); TRACE(", AdditionalSecurityInfoType=%d", SecurityQos2->AdditionalSecurityInfoType);
if (SecurityQos2->AdditionalSecurityInfoType == RPC_C_AUTHN_INFO_TYPE_HTTP) if (SecurityQos2->AdditionalSecurityInfoType == RPC_C_AUTHN_INFO_TYPE_HTTP)
TRACE(", { %p, 0x%lx, %ld, %ld, %p, %s }", TRACE(", { %p, 0x%x, %d, %d, %p, %s }",
SecurityQos2->u.HttpCredentials->TransportCredentials, SecurityQos2->u.HttpCredentials->TransportCredentials,
SecurityQos2->u.HttpCredentials->Flags, SecurityQos2->u.HttpCredentials->Flags,
SecurityQos2->u.HttpCredentials->AuthenticationTarget, SecurityQos2->u.HttpCredentials->AuthenticationTarget,

View File

@ -745,7 +745,7 @@ RPC_STATUS WINAPI RpcServerUseProtseqEpExA( RPC_CSTR Protseq, UINT MaxCalls, RPC
RpcServerProtseq* ps; RpcServerProtseq* ps;
RPC_STATUS status; RPC_STATUS status;
TRACE("(%s,%u,%s,%p,{%u,%lu,%lu})\n", debugstr_a(szps), MaxCalls, TRACE("(%s,%u,%s,%p,{%u,%u,%u})\n", debugstr_a(szps), MaxCalls,
debugstr_a(szep), SecurityDescriptor, debugstr_a(szep), SecurityDescriptor,
lpPolicy->Length, lpPolicy->EndpointFlags, lpPolicy->NICFlags ); lpPolicy->Length, lpPolicy->EndpointFlags, lpPolicy->NICFlags );
@ -766,7 +766,7 @@ RPC_STATUS WINAPI RpcServerUseProtseqEpExW( RPC_WSTR Protseq, UINT MaxCalls, RPC
RPC_STATUS status; RPC_STATUS status;
LPSTR EndpointA; LPSTR EndpointA;
TRACE("(%s,%u,%s,%p,{%u,%lu,%lu})\n", debugstr_w( Protseq ), MaxCalls, TRACE("(%s,%u,%s,%p,{%u,%u,%u})\n", debugstr_w( Protseq ), MaxCalls,
debugstr_w( Endpoint ), SecurityDescriptor, debugstr_w( Endpoint ), SecurityDescriptor,
lpPolicy->Length, lpPolicy->EndpointFlags, lpPolicy->NICFlags ); lpPolicy->Length, lpPolicy->EndpointFlags, lpPolicy->NICFlags );

View File

@ -54,14 +54,14 @@ typedef RPC_BINDING_HANDLE handle_t;
typedef struct _RPC_BINDING_VECTOR typedef struct _RPC_BINDING_VECTOR
{ {
unsigned long Count; ULONG Count;
RPC_BINDING_HANDLE BindingH[1]; RPC_BINDING_HANDLE BindingH[1];
} RPC_BINDING_VECTOR; } RPC_BINDING_VECTOR;
#define rpc_binding_vector_t RPC_BINDING_VECTOR #define rpc_binding_vector_t RPC_BINDING_VECTOR
typedef struct _UUID_VECTOR typedef struct _UUID_VECTOR
{ {
unsigned long Count; ULONG Count;
UUID *Uuid[1]; UUID *Uuid[1];
} UUID_VECTOR; } UUID_VECTOR;
#define uuid_vector_t UUID_VECTOR #define uuid_vector_t UUID_VECTOR
@ -75,14 +75,14 @@ typedef struct _RPC_IF_ID
typedef struct typedef struct
{ {
unsigned long Count; ULONG Count;
RPC_IF_ID *IfId[1]; RPC_IF_ID *IfId[1];
} RPC_IF_ID_VECTOR; } RPC_IF_ID_VECTOR;
typedef struct typedef struct
{ {
unsigned int Count; unsigned int Count;
unsigned long Stats[1]; ULONG Stats[1];
} RPC_STATS_VECTOR; } RPC_STATS_VECTOR;
typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE; typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE;
@ -195,66 +195,66 @@ typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)();
typedef struct _RPC_POLICY typedef struct _RPC_POLICY
{ {
unsigned int Length; unsigned int Length;
unsigned long EndpointFlags; ULONG EndpointFlags;
unsigned long NICFlags; ULONG NICFlags;
} RPC_POLICY, *PRPC_POLICY; } RPC_POLICY, *PRPC_POLICY;
typedef struct _SEC_WINNT_AUTH_IDENTITY_W typedef struct _SEC_WINNT_AUTH_IDENTITY_W
{ {
unsigned short* User; unsigned short* User;
unsigned long UserLength; ULONG UserLength;
unsigned short* Domain; unsigned short* Domain;
unsigned long DomainLength; ULONG DomainLength;
unsigned short* Password; unsigned short* Password;
unsigned long PasswordLength; ULONG PasswordLength;
unsigned long Flags; ULONG Flags;
} SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W; } SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W;
typedef struct _SEC_WINNT_AUTH_IDENTITY_A typedef struct _SEC_WINNT_AUTH_IDENTITY_A
{ {
unsigned char* User; unsigned char* User;
unsigned long UserLength; ULONG UserLength;
unsigned char* Domain; unsigned char* Domain;
unsigned long DomainLength; ULONG DomainLength;
unsigned char* Password; unsigned char* Password;
unsigned long PasswordLength; ULONG PasswordLength;
unsigned long Flags; ULONG Flags;
} SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A; } SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A;
typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W
{ {
SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials; SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
unsigned long Flags; ULONG Flags;
unsigned long AuthenticationTarget; ULONG AuthenticationTarget;
unsigned long NumberOfAuthnSchemes; ULONG NumberOfAuthnSchemes;
unsigned long *AuthnSchemes; ULONG *AuthnSchemes;
unsigned short *ServerCertificateSubject; unsigned short *ServerCertificateSubject;
} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W; } RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A
{ {
SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials; SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
unsigned long Flags; ULONG Flags;
unsigned long AuthenticationTarget; ULONG AuthenticationTarget;
unsigned long NumberOfAuthnSchemes; ULONG NumberOfAuthnSchemes;
unsigned long *AuthnSchemes; ULONG *AuthnSchemes;
unsigned char *ServerCertificateSubject; unsigned char *ServerCertificateSubject;
} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A; } RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
typedef struct _RPC_SECURITY_QOS { typedef struct _RPC_SECURITY_QOS {
unsigned long Version; ULONG Version;
unsigned long Capabilities; ULONG Capabilities;
unsigned long IdentityTracking; ULONG IdentityTracking;
unsigned long ImpersonationType; ULONG ImpersonationType;
} RPC_SECURITY_QOS, *PRPC_SECURITY_QOS; } RPC_SECURITY_QOS, *PRPC_SECURITY_QOS;
typedef struct _RPC_SECURITY_QOS_V2_W typedef struct _RPC_SECURITY_QOS_V2_W
{ {
unsigned long Version; ULONG Version;
unsigned long Capabilities; ULONG Capabilities;
unsigned long IdentityTracking; ULONG IdentityTracking;
unsigned long ImpersonationType; ULONG ImpersonationType;
unsigned long AdditionalSecurityInfoType; ULONG AdditionalSecurityInfoType;
union union
{ {
RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
@ -263,11 +263,11 @@ typedef struct _RPC_SECURITY_QOS_V2_W
typedef struct _RPC_SECURITY_QOS_V2_A typedef struct _RPC_SECURITY_QOS_V2_A
{ {
unsigned long Version; ULONG Version;
unsigned long Capabilities; ULONG Capabilities;
unsigned long IdentityTracking; ULONG IdentityTracking;
unsigned long ImpersonationType; ULONG ImpersonationType;
unsigned long AdditionalSecurityInfoType; ULONG AdditionalSecurityInfoType;
union union
{ {
RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;