[LSASRV]
[reactos.git] / reactos / dll / win32 / lsasrv / lsarpc.c
index 5fe3809..9055bf6 100644 (file)
@@ -144,7 +144,7 @@ void __RPC_USER LSAPR_HANDLE_rundown(LSAPR_HANDLE hHandle)
 
 
 /* Function 0 */
-NTSTATUS LsarClose(
+NTSTATUS WINAPI LsarClose(
     LSAPR_HANDLE *ObjectHandle)
 {
     NTSTATUS Status = STATUS_SUCCESS;
@@ -170,7 +170,7 @@ NTSTATUS LsarClose(
 
 
 /* Function 1 */
-NTSTATUS LsarDelete(
+NTSTATUS WINAPI LsarDelete(
     LSAPR_HANDLE ObjectHandle)
 {
     /* Deprecated */
@@ -179,7 +179,7 @@ NTSTATUS LsarDelete(
 
 
 /* Function 2 */
-NTSTATUS LsarEnumeratePrivileges(
+NTSTATUS WINAPI LsarEnumeratePrivileges(
     LSAPR_HANDLE PolicyHandle,
     DWORD *EnumerationContext,
     PLSAPR_PRIVILEGE_ENUM_BUFFER EnumerationBuffer,
@@ -191,7 +191,7 @@ NTSTATUS LsarEnumeratePrivileges(
 
 
 /* Function 3 */
-NTSTATUS LsarQuerySecurityObject(
+NTSTATUS WINAPI LsarQuerySecurityObject(
     LSAPR_HANDLE ObjectHandle,
     SECURITY_INFORMATION SecurityInformation,
     PLSAPR_SR_SECURITY_DESCRIPTOR *SecurityDescriptor)
@@ -202,7 +202,7 @@ NTSTATUS LsarQuerySecurityObject(
 
 
 /* Function 4 */
-NTSTATUS LsarSetSecurityObject(
+NTSTATUS WINAPI LsarSetSecurityObject(
     LSAPR_HANDLE ObjectHandle,
     SECURITY_INFORMATION SecurityInformation,
     PLSAPR_SR_SECURITY_DESCRIPTOR SecurityDescriptor)
@@ -213,7 +213,7 @@ NTSTATUS LsarSetSecurityObject(
 
 
 /* Function 5 */
-NTSTATUS LsarChangePassword(
+NTSTATUS WINAPI LsarChangePassword(
     handle_t IDL_handle,
     PRPC_UNICODE_STRING String1,
     PRPC_UNICODE_STRING String2,
@@ -227,7 +227,7 @@ NTSTATUS LsarChangePassword(
 
 
 /* Function 6 */
-NTSTATUS LsarOpenPolicy(
+NTSTATUS WINAPI LsarOpenPolicy(
     LPWSTR SystemName,
     PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
     ACCESS_MASK DesiredAccess,
@@ -253,7 +253,7 @@ NTSTATUS LsarOpenPolicy(
 
 
 /* Function 7 */
-NTSTATUS LsarQueryInformationPolicy(
+NTSTATUS WINAPI LsarQueryInformationPolicy(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     PLSAPR_POLICY_INFORMATION *PolicyInformation)
@@ -404,7 +404,7 @@ NTSTATUS LsarQueryInformationPolicy(
 
 
 /* Function 8 */
-NTSTATUS LsarSetInformationPolicy(
+NTSTATUS WINAPI LsarSetInformationPolicy(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     PLSAPR_POLICY_INFORMATION PolicyInformation)
@@ -415,7 +415,7 @@ NTSTATUS LsarSetInformationPolicy(
 
 
 /* Function 9 */
-NTSTATUS LsarClearAuditLog(
+NTSTATUS WINAPI LsarClearAuditLog(
     LSAPR_HANDLE ObjectHandle)
 {
     /* Deprecated */
@@ -424,7 +424,7 @@ NTSTATUS LsarClearAuditLog(
 
 
 /* Function 10 */
-NTSTATUS LsarCreateAccount(
+NTSTATUS WINAPI LsarCreateAccount(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID AccountSid,
     ACCESS_MASK DesiredAccess,
@@ -436,7 +436,7 @@ NTSTATUS LsarCreateAccount(
 
 
 /* Function 11 */
-NTSTATUS LsarEnumerateAccounts(
+NTSTATUS WINAPI LsarEnumerateAccounts(
     LSAPR_HANDLE PolicyHandle,
     DWORD *EnumerationContext,
     PLSAPR_ACCOUNT_ENUM_BUFFER EnumerationBuffer,
@@ -448,7 +448,7 @@ NTSTATUS LsarEnumerateAccounts(
 
 
 /* Function 12 */
-NTSTATUS LsarCreateTrustedDomain(
+NTSTATUS WINAPI LsarCreateTrustedDomain(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_TRUST_INFORMATION TrustedDomainInformation,
     ACCESS_MASK DesiredAccess,
@@ -460,7 +460,7 @@ NTSTATUS LsarCreateTrustedDomain(
 
 
 /* Function 13 */
-NTSTATUS LsarEnumerateTrustedDomains(
+NTSTATUS WINAPI LsarEnumerateTrustedDomains(
     LSAPR_HANDLE PolicyHandle,
     DWORD *EnumerationContext,
     PLSAPR_TRUSTED_ENUM_BUFFER EnumerationBuffer,
@@ -472,7 +472,7 @@ NTSTATUS LsarEnumerateTrustedDomains(
 
 
 /* Function 14 */
-NTSTATUS LsarLookupNames(
+NTSTATUS WINAPI LsarLookupNames(
     LSAPR_HANDLE PolicyHandle,
     DWORD Count,
     PRPC_UNICODE_STRING Names,
@@ -570,7 +570,7 @@ NTSTATUS LsarLookupNames(
 
 
 /* Function 15 */
-NTSTATUS LsarLookupSids(
+NTSTATUS WINAPI LsarLookupSids(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
     PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
@@ -663,7 +663,7 @@ NTSTATUS LsarLookupSids(
 
 
 /* Function 16 */
-NTSTATUS LsarCreateSecret(
+NTSTATUS WINAPI LsarCreateSecret(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING SecretName,
     ACCESS_MASK DesiredAccess,
@@ -675,7 +675,7 @@ NTSTATUS LsarCreateSecret(
 
 
 /* Function 17 */
-NTSTATUS LsarOpenAccount(
+NTSTATUS WINAPI LsarOpenAccount(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID AccountSid,
     ACCESS_MASK DesiredAccess,
@@ -687,7 +687,7 @@ NTSTATUS LsarOpenAccount(
 
 
 /* Function 18 */
-NTSTATUS LsarEnumeratePrivilegesAccount(
+NTSTATUS WINAPI LsarEnumeratePrivilegesAccount(
     LSAPR_HANDLE AccountHandle,
     PLSAPR_PRIVILEGE_SET *Privileges)
 {
@@ -697,7 +697,7 @@ NTSTATUS LsarEnumeratePrivilegesAccount(
 
 
 /* Function 19 */
-NTSTATUS LsarAddPrivilegesToAccount(
+NTSTATUS WINAPI LsarAddPrivilegesToAccount(
     LSAPR_HANDLE AccountHandle,
     PLSAPR_PRIVILEGE_SET Privileges)
 {
@@ -707,7 +707,7 @@ NTSTATUS LsarAddPrivilegesToAccount(
 
 
 /* Function 20 */
-NTSTATUS LsarRemovePrivilegesFromAccount(
+NTSTATUS WINAPI LsarRemovePrivilegesFromAccount(
     LSAPR_HANDLE AccountHandle,
     BOOL AllPrivileges,
     PLSAPR_PRIVILEGE_SET Privileges)
@@ -718,7 +718,7 @@ NTSTATUS LsarRemovePrivilegesFromAccount(
 
 
 /* Function 21 */
-NTSTATUS LsarGetQuotasForAccount(
+NTSTATUS WINAPI LsarGetQuotasForAccount(
     LSAPR_HANDLE AccountHandle,
     PQUOTA_LIMITS QuotaLimits)
 {
@@ -728,7 +728,7 @@ NTSTATUS LsarGetQuotasForAccount(
 
 
 /* Function 22 */
-NTSTATUS LsarSetQuotasForAccount(
+NTSTATUS WINAPI LsarSetQuotasForAccount(
     LSAPR_HANDLE AccountHandle,
     PQUOTA_LIMITS QuotaLimits)
 {
@@ -738,7 +738,7 @@ NTSTATUS LsarSetQuotasForAccount(
 
 
 /* Function 23 */
-NTSTATUS LsarGetSystemAccessAccount(
+NTSTATUS WINAPI LsarGetSystemAccessAccount(
     LSAPR_HANDLE AccountHandle,
     ACCESS_MASK *SystemAccess)
 {
@@ -748,7 +748,7 @@ NTSTATUS LsarGetSystemAccessAccount(
 
 
 /* Function 24 */
-NTSTATUS LsarSetSystemAccessAccount(
+NTSTATUS WINAPI LsarSetSystemAccessAccount(
     LSAPR_HANDLE AccountHandle,
     ACCESS_MASK SystemAccess)
 {
@@ -758,7 +758,7 @@ NTSTATUS LsarSetSystemAccessAccount(
 
 
 /* Function 25 */
-NTSTATUS LsarOpenTrustedDomain(
+NTSTATUS WINAPI LsarOpenTrustedDomain(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID TrustedDomainSid,
     ACCESS_MASK DesiredAccess,
@@ -770,7 +770,7 @@ NTSTATUS LsarOpenTrustedDomain(
 
 
 /* Function 26 */
-NTSTATUS LsarQueryInfoTrustedDomain(
+NTSTATUS WINAPI LsarQueryInfoTrustedDomain(
     LSAPR_HANDLE TrustedDomainHandle,
     TRUSTED_INFORMATION_CLASS InformationClass,
     PLSAPR_TRUSTED_DOMAIN_INFO *TrustedDomainInformation)
@@ -781,7 +781,7 @@ NTSTATUS LsarQueryInfoTrustedDomain(
 
 
 /* Function 27 */
-NTSTATUS LsarSetInformationTrustedDomain(
+NTSTATUS WINAPI LsarSetInformationTrustedDomain(
     LSAPR_HANDLE TrustedDomainHandle,
     TRUSTED_INFORMATION_CLASS InformationClass,
     PLSAPR_TRUSTED_DOMAIN_INFO TrustedDomainInformation)
@@ -792,7 +792,7 @@ NTSTATUS LsarSetInformationTrustedDomain(
 
 
 /* Function 28 */
-NTSTATUS LsarOpenSecret(
+NTSTATUS WINAPI LsarOpenSecret(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING SecretName,
     ACCESS_MASK DesiredAccess,
@@ -804,7 +804,7 @@ NTSTATUS LsarOpenSecret(
 
 
 /* Function 29 */
-NTSTATUS LsarSetSecret(
+NTSTATUS WINAPI LsarSetSecret(
     LSAPR_HANDLE *SecretHandle,
     PLSAPR_CR_CIPHER_VALUE EncryptedCurrentValue,
     PLSAPR_CR_CIPHER_VALUE EncryptedOldValue)
@@ -815,7 +815,7 @@ NTSTATUS LsarSetSecret(
 
 
 /* Function 30 */
-NTSTATUS LsarQuerySecret(
+NTSTATUS WINAPI LsarQuerySecret(
     LSAPR_HANDLE SecretHandle,
     PLSAPR_CR_CIPHER_VALUE *EncryptedCurrentValue,
     PLARGE_INTEGER CurrentValueSetTime,
@@ -828,7 +828,7 @@ NTSTATUS LsarQuerySecret(
 
 
 /* Function 31 */
-NTSTATUS LsarLookupPrivilegeValue(
+NTSTATUS WINAPI LsarLookupPrivilegeValue(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING Name,
     PLUID Value)
@@ -857,7 +857,7 @@ NTSTATUS LsarLookupPrivilegeValue(
 
 
 /* Function 32 */
-NTSTATUS LsarLookupPrivilegeName(
+NTSTATUS WINAPI LsarLookupPrivilegeName(
     LSAPR_HANDLE PolicyHandle,
     PLUID Value,
     PRPC_UNICODE_STRING *Name)
@@ -883,7 +883,7 @@ NTSTATUS LsarLookupPrivilegeName(
 
 
 /* Function 33 */
-NTSTATUS LsarLookupPrivilegeDisplayName(
+NTSTATUS WINAPI LsarLookupPrivilegeDisplayName(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING Name,
     USHORT ClientLanguage,
@@ -897,7 +897,7 @@ NTSTATUS LsarLookupPrivilegeDisplayName(
 
 
 /* Function 34 */
-NTSTATUS LsarDeleteObject(
+NTSTATUS WINAPI LsarDeleteObject(
     LSAPR_HANDLE *ObjectHandle)
 {
     UNIMPLEMENTED;
@@ -906,7 +906,7 @@ NTSTATUS LsarDeleteObject(
 
 
 /* Function 35 */
-NTSTATUS LsarEnumerateAccountsWithUserRight(
+NTSTATUS WINAPI LsarEnumerateAccountsWithUserRight(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING UserRight,
     PLSAPR_ACCOUNT_ENUM_BUFFER EnumerationBuffer)
@@ -917,7 +917,7 @@ NTSTATUS LsarEnumerateAccountsWithUserRight(
 
 
 /* Function 36 */
-NTSTATUS LsarEnmuerateAccountRights(
+NTSTATUS WINAPI LsarEnmuerateAccountRights(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID AccountSid,
     PLSAPR_USER_RIGHT_SET UserRights)
@@ -939,7 +939,7 @@ NTSTATUS LsarEnmuerateAccountRights(
 
 
 /* Function 37 */
-NTSTATUS LsarAddAccountRights(
+NTSTATUS WINAPI LsarAddAccountRights(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID AccountSid,
     PLSAPR_USER_RIGHT_SET UserRights)
@@ -950,7 +950,7 @@ NTSTATUS LsarAddAccountRights(
 
 
 /* Function 38 */
-NTSTATUS LsarRemoveAccountRights(
+NTSTATUS WINAPI LsarRemoveAccountRights(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID AccountSid,
     BOOL AllRights,
@@ -962,7 +962,7 @@ NTSTATUS LsarRemoveAccountRights(
 
 
 /* Function 39 */
-NTSTATUS LsarQueryTrustedDomainInfo(
+NTSTATUS WINAPI LsarQueryTrustedDomainInfo(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID TrustedDomainSid,
     TRUSTED_INFORMATION_CLASS InformationClass,
@@ -974,7 +974,7 @@ NTSTATUS LsarQueryTrustedDomainInfo(
 
 
 /* Function 40 */
-NTSTATUS LsarSetTrustedDomainInfo(
+NTSTATUS WINAPI LsarSetTrustedDomainInfo(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID TrustedDomainSid,
     TRUSTED_INFORMATION_CLASS InformationClass,
@@ -986,7 +986,7 @@ NTSTATUS LsarSetTrustedDomainInfo(
 
 
 /* Function 41 */
-NTSTATUS LsarDeleteTrustedDomain(
+NTSTATUS WINAPI LsarDeleteTrustedDomain(
     LSAPR_HANDLE PolicyHandle,
     PRPC_SID TrustedDomainSid)
 {
@@ -996,7 +996,7 @@ NTSTATUS LsarDeleteTrustedDomain(
 
 
 /* Function 42 */
-NTSTATUS LsarStorePrivateData(
+NTSTATUS WINAPI LsarStorePrivateData(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING KeyName,
     PLSAPR_CR_CIPHER_VALUE EncryptedData)
@@ -1007,7 +1007,7 @@ NTSTATUS LsarStorePrivateData(
 
 
 /* Function 43 */
-NTSTATUS LsarRetrievePrivateData(
+NTSTATUS WINAPI LsarRetrievePrivateData(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING KeyName,
     PLSAPR_CR_CIPHER_VALUE *EncryptedData)
@@ -1018,7 +1018,7 @@ NTSTATUS LsarRetrievePrivateData(
 
 
 /* Function 44 */
-NTSTATUS LsarOpenPolicy2(
+NTSTATUS WINAPI LsarOpenPolicy2(
     LPWSTR SystemName,
     PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
     ACCESS_MASK DesiredAccess,
@@ -1030,7 +1030,7 @@ NTSTATUS LsarOpenPolicy2(
 
 
 /* Function 45 */
-NTSTATUS LsarGetUserName(
+NTSTATUS WINAPI LsarGetUserName(
     LPWSTR SystemName,
     PRPC_UNICODE_STRING *UserName,
     PRPC_UNICODE_STRING *DomainName)
@@ -1041,7 +1041,7 @@ NTSTATUS LsarGetUserName(
 
 
 /* Function 46 */
-NTSTATUS LsarQueryInformationPolicy2(
+NTSTATUS WINAPI LsarQueryInformationPolicy2(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     unsigned long *PolicyInformation)
@@ -1052,7 +1052,7 @@ NTSTATUS LsarQueryInformationPolicy2(
 
 
 /* Function 47 */
-NTSTATUS LsarSetInformationPolicy2(
+NTSTATUS WINAPI LsarSetInformationPolicy2(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     unsigned long PolicyInformation)
@@ -1063,7 +1063,7 @@ NTSTATUS LsarSetInformationPolicy2(
 
 
 /* Function 48 */
-NTSTATUS LsarQueryTrustedDomainInfoByName(
+NTSTATUS WINAPI LsarQueryTrustedDomainInfoByName(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING TrustedDomainName,
     POLICY_INFORMATION_CLASS InformationClass,
@@ -1075,7 +1075,7 @@ NTSTATUS LsarQueryTrustedDomainInfoByName(
 
 
 /* Function 49 */
-NTSTATUS LsarSetTrustedDomainInfoByName(
+NTSTATUS WINAPI LsarSetTrustedDomainInfoByName(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING TrustedDomainName,
     POLICY_INFORMATION_CLASS InformationClass,
@@ -1087,7 +1087,7 @@ NTSTATUS LsarSetTrustedDomainInfoByName(
 
 
 /* Function 50 */
-NTSTATUS LsarEnumerateTrustedDomainsEx(
+NTSTATUS WINAPI LsarEnumerateTrustedDomainsEx(
     LSAPR_HANDLE PolicyHandle,
     DWORD *EnumerationContext,
     PLSAPR_TRUSTED_ENUM_BUFFER_EX EnumerationBuffer,
@@ -1099,7 +1099,7 @@ NTSTATUS LsarEnumerateTrustedDomainsEx(
 
 
 /* Function 51 */
-NTSTATUS LsarCreateTrustedDomainEx(
+NTSTATUS WINAPI LsarCreateTrustedDomainEx(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInformation,
     PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION AuthentificationInformation,
@@ -1112,7 +1112,7 @@ NTSTATUS LsarCreateTrustedDomainEx(
 
 
 /* Function 52 */
-NTSTATUS LsarSetPolicyReplicationHandle(
+NTSTATUS WINAPI LsarSetPolicyReplicationHandle(
     PLSAPR_HANDLE PolicyHandle)
 {
     /* Deprecated */
@@ -1121,7 +1121,7 @@ NTSTATUS LsarSetPolicyReplicationHandle(
 
 
 /* Function 53 */
-NTSTATUS LsarQueryDomainInformationPolicy(
+NTSTATUS WINAPI LsarQueryDomainInformationPolicy(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     unsigned long *PolicyInformation)
@@ -1132,7 +1132,7 @@ NTSTATUS LsarQueryDomainInformationPolicy(
 
 
 /* Function 54 */
-NTSTATUS LsarSetDomainInformationPolicy(
+NTSTATUS WINAPI LsarSetDomainInformationPolicy(
     LSAPR_HANDLE PolicyHandle,
     POLICY_INFORMATION_CLASS InformationClass,
     unsigned long PolicyInformation)
@@ -1143,7 +1143,7 @@ NTSTATUS LsarSetDomainInformationPolicy(
 
 
 /* Function 55 */
-NTSTATUS LsarOpenTrustedDomainByName(
+NTSTATUS WINAPI LsarOpenTrustedDomainByName(
     LSAPR_HANDLE PolicyHandle,
     PRPC_UNICODE_STRING TrustedDomainName,
     ACCESS_MASK DesiredAccess,
@@ -1155,7 +1155,7 @@ NTSTATUS LsarOpenTrustedDomainByName(
 
 
 /* Function 56 */
-NTSTATUS LsarTestCall(
+NTSTATUS WINAPI LsarTestCall(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1164,7 +1164,7 @@ NTSTATUS LsarTestCall(
 
 
 /* Function 57 */
-NTSTATUS LsarLookupSids2(
+NTSTATUS WINAPI LsarLookupSids2(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
     PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
@@ -1180,7 +1180,7 @@ NTSTATUS LsarLookupSids2(
 
 
 /* Function 58 */
-NTSTATUS LsarLookupNames2(
+NTSTATUS WINAPI LsarLookupNames2(
     LSAPR_HANDLE PolicyHandle,
     DWORD Count,
     PRPC_UNICODE_STRING Names,
@@ -1197,7 +1197,7 @@ NTSTATUS LsarLookupNames2(
 
 
 /* Function 59 */
-NTSTATUS LsarCreateTrustedDomainEx2(
+NTSTATUS WINAPI LsarCreateTrustedDomainEx2(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInformation,
     PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL AuthentificationInformation,
@@ -1210,7 +1210,7 @@ NTSTATUS LsarCreateTrustedDomainEx2(
 
 
 /* Function 60 */
-NTSTATUS CredrWrite(
+NTSTATUS WINAPI CredrWrite(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1219,7 +1219,7 @@ NTSTATUS CredrWrite(
 
 
 /* Function 61 */
-NTSTATUS CredrRead(
+NTSTATUS WINAPI CredrRead(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1228,7 +1228,7 @@ NTSTATUS CredrRead(
 
 
 /* Function 62 */
-NTSTATUS CredrEnumerate(
+NTSTATUS WINAPI CredrEnumerate(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1237,7 +1237,7 @@ NTSTATUS CredrEnumerate(
 
 
 /* Function 63 */
-NTSTATUS CredrWriteDomainCredentials(
+NTSTATUS WINAPI CredrWriteDomainCredentials(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1246,7 +1246,7 @@ NTSTATUS CredrWriteDomainCredentials(
 
 
 /* Function 64 */
-NTSTATUS CredrReadDomainCredentials(
+NTSTATUS WINAPI CredrReadDomainCredentials(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1255,7 +1255,7 @@ NTSTATUS CredrReadDomainCredentials(
 
 
 /* Function 65 */
-NTSTATUS CredrDelete(
+NTSTATUS WINAPI CredrDelete(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1264,7 +1264,7 @@ NTSTATUS CredrDelete(
 
 
 /* Function 66 */
-NTSTATUS CredrGetTargetInfo(
+NTSTATUS WINAPI CredrGetTargetInfo(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1273,7 +1273,7 @@ NTSTATUS CredrGetTargetInfo(
 
 
 /* Function 67 */
-NTSTATUS CredrProfileLoaded(
+NTSTATUS WINAPI CredrProfileLoaded(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1282,7 +1282,7 @@ NTSTATUS CredrProfileLoaded(
 
 
 /* Function 68 */
-NTSTATUS LsarLookupNames3(
+NTSTATUS WINAPI LsarLookupNames3(
     LSAPR_HANDLE PolicyHandle,
     DWORD Count,
     PRPC_UNICODE_STRING Names,
@@ -1299,7 +1299,7 @@ NTSTATUS LsarLookupNames3(
 
 
 /* Function 69 */
-NTSTATUS CredrGetSessionTypes(
+NTSTATUS WINAPI CredrGetSessionTypes(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1308,7 +1308,7 @@ NTSTATUS CredrGetSessionTypes(
 
 
 /* Function 70 */
-NTSTATUS LsarRegisterAuditEvent(
+NTSTATUS WINAPI LsarRegisterAuditEvent(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1317,7 +1317,7 @@ NTSTATUS LsarRegisterAuditEvent(
 
 
 /* Function 71 */
-NTSTATUS LsarGenAuditEvent(
+NTSTATUS WINAPI LsarGenAuditEvent(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1326,7 +1326,7 @@ NTSTATUS LsarGenAuditEvent(
 
 
 /* Function 72 */
-NTSTATUS LsarUnregisterAuditEvent(
+NTSTATUS WINAPI LsarUnregisterAuditEvent(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1335,7 +1335,7 @@ NTSTATUS LsarUnregisterAuditEvent(
 
 
 /* Function 73 */
-NTSTATUS LsarQueryForestTrustInformation(
+NTSTATUS WINAPI LsarQueryForestTrustInformation(
     LSAPR_HANDLE PolicyHandle,
     PLSA_UNICODE_STRING TrustedDomainName,
     LSA_FOREST_TRUST_RECORD_TYPE HighestRecordType,
@@ -1347,7 +1347,7 @@ NTSTATUS LsarQueryForestTrustInformation(
 
 
 /* Function 74 */
-NTSTATUS LsarSetForestTrustInformation(
+NTSTATUS WINAPI LsarSetForestTrustInformation(
     LSAPR_HANDLE PolicyHandle,
     PLSA_UNICODE_STRING TrustedDomainName,
     LSA_FOREST_TRUST_RECORD_TYPE HighestRecordType,
@@ -1361,7 +1361,7 @@ NTSTATUS LsarSetForestTrustInformation(
 
 
 /* Function 75 */
-NTSTATUS CredrRename(
+NTSTATUS WINAPI CredrRename(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1370,7 +1370,7 @@ NTSTATUS CredrRename(
 
 
 /* Function 76 */
-NTSTATUS LsarLookupSids3(
+NTSTATUS WINAPI LsarLookupSids3(
     LSAPR_HANDLE PolicyHandle,
     PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
     PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
@@ -1386,7 +1386,7 @@ NTSTATUS LsarLookupSids3(
 
 
 /* Function 77 */
-NTSTATUS LsarLookupNames4(
+NTSTATUS WINAPI LsarLookupNames4(
     handle_t RpcHandle,
     DWORD Count,
     PRPC_UNICODE_STRING Names,
@@ -1403,7 +1403,7 @@ NTSTATUS LsarLookupNames4(
 
 
 /* Function 78 */
-NTSTATUS LsarOpenPolicySce(
+NTSTATUS WINAPI LsarOpenPolicySce(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1412,7 +1412,7 @@ NTSTATUS LsarOpenPolicySce(
 
 
 /* Function 79 */
-NTSTATUS LsarAdtRegisterSecurityEventSource(
+NTSTATUS WINAPI LsarAdtRegisterSecurityEventSource(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1421,7 +1421,7 @@ NTSTATUS LsarAdtRegisterSecurityEventSource(
 
 
 /* Function 80 */
-NTSTATUS LsarAdtUnregisterSecurityEventSource(
+NTSTATUS WINAPI LsarAdtUnregisterSecurityEventSource(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1430,7 +1430,7 @@ NTSTATUS LsarAdtUnregisterSecurityEventSource(
 
 
 /* Function 81 */
-NTSTATUS LsarAdtReportSecurityEvent(
+NTSTATUS WINAPI LsarAdtReportSecurityEvent(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1439,7 +1439,7 @@ NTSTATUS LsarAdtReportSecurityEvent(
 
 
 /* Function 82 */
-NTSTATUS CredrFindBestCredential(
+NTSTATUS WINAPI CredrFindBestCredential(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1448,7 +1448,7 @@ NTSTATUS CredrFindBestCredential(
 
 
 /* Function 83 */
-NTSTATUS LsarSetAuditPolicy(
+NTSTATUS WINAPI LsarSetAuditPolicy(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1457,7 +1457,7 @@ NTSTATUS LsarSetAuditPolicy(
 
 
 /* Function 84 */
-NTSTATUS LsarQueryAuditPolicy(
+NTSTATUS WINAPI LsarQueryAuditPolicy(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1466,7 +1466,7 @@ NTSTATUS LsarQueryAuditPolicy(
 
 
 /* Function 85 */
-NTSTATUS LsarEnumerateAuditPolicy(
+NTSTATUS WINAPI LsarEnumerateAuditPolicy(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1475,7 +1475,7 @@ NTSTATUS LsarEnumerateAuditPolicy(
 
 
 /* Function 86 */
-NTSTATUS LsarEnumerateAuditCategories(
+NTSTATUS WINAPI LsarEnumerateAuditCategories(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1484,7 +1484,7 @@ NTSTATUS LsarEnumerateAuditCategories(
 
 
 /* Function 87 */
-NTSTATUS LsarEnumerateAuditSubCategories(
+NTSTATUS WINAPI LsarEnumerateAuditSubCategories(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1493,7 +1493,7 @@ NTSTATUS LsarEnumerateAuditSubCategories(
 
 
 /* Function 88 */
-NTSTATUS LsarLookupAuditCategoryName(
+NTSTATUS WINAPI LsarLookupAuditCategoryName(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1502,7 +1502,7 @@ NTSTATUS LsarLookupAuditCategoryName(
 
 
 /* Function 89 */
-NTSTATUS LsarLookupAuditSubCategoryName(
+NTSTATUS WINAPI LsarLookupAuditSubCategoryName(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1511,7 +1511,7 @@ NTSTATUS LsarLookupAuditSubCategoryName(
 
 
 /* Function 90 */
-NTSTATUS LsarSetAuditSecurity(
+NTSTATUS WINAPI LsarSetAuditSecurity(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1520,7 +1520,7 @@ NTSTATUS LsarSetAuditSecurity(
 
 
 /* Function 91 */
-NTSTATUS LsarQueryAuditSecurity(
+NTSTATUS WINAPI LsarQueryAuditSecurity(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1529,7 +1529,7 @@ NTSTATUS LsarQueryAuditSecurity(
 
 
 /* Function 92 */
-NTSTATUS CredReadByTokenHandle(
+NTSTATUS WINAPI CredReadByTokenHandle(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1538,7 +1538,7 @@ NTSTATUS CredReadByTokenHandle(
 
 
 /* Function 93 */
-NTSTATUS CredrRestoreCredentials(
+NTSTATUS WINAPI CredrRestoreCredentials(
     handle_t hBinding)
 {
     UNIMPLEMENTED;
@@ -1547,7 +1547,7 @@ NTSTATUS CredrRestoreCredentials(
 
 
 /* Function 94 */
-NTSTATUS CredrBackupCredentials(
+NTSTATUS WINAPI CredrBackupCredentials(
     handle_t hBinding)
 {
     UNIMPLEMENTED;