From 2f4be7367ec358897546ec8b5972163b5d7cb816 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 27 Mar 2003 08:10:46 +0000 Subject: * include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW], TranslateName[AW]): Add prototypes. * lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW], TranslateName[AW]): Add stubs. --- winsup/w32api/ChangeLog | 8 ++++++++ winsup/w32api/include/secext.h | 19 +++++++++++++++++++ winsup/w32api/lib/secur32.def | 22 ++++++++++++++-------- winsup/w32api/lib/test.c | 1 + 4 files changed, 42 insertions(+), 8 deletions(-) (limited to 'winsup') diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 69b3b6345..de4dbe47c 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2003-03-27 Danny Smith + + * include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW], + TranslateName[AW]): Add prototypes. + * lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW], + TranslateName[AW]): Add stubs. + * lib/test.c: Include secext.h. + 2003-03-27 Vladimir Michl * include/ddk/ndis.h (NdisAllocateSpinLock,NdisFreeSpinLock, diff --git a/winsup/w32api/include/secext.h b/winsup/w32api/include/secext.h index 1d5ee58cf..1919f4fef 100644 --- a/winsup/w32api/include/secext.h +++ b/winsup/w32api/include/secext.h @@ -19,6 +19,25 @@ typedef enum NameServicePrincipal = 10, NameDnsDomain = 12 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT; + +BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG); +BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG); +BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG); +BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG); +BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG); +BOOLEAN WINAPI TranslateNameW(LPCWSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPWSTR,PULONG); + +#ifdef UNICODE +#define GetComputerObjectName GetComputerObjectNameW +#define GetUserNameEx GetUserNameExW +#define TranslateName TranslateNameW +#else +#define GetComputerObjectName GetComputerObjectNameA +#define GetUserNameEx GetUserNameExA +#define TranslateName TranslateNameA +#endif + + #endif /* ! RC_INVOKED */ #endif /* _WIN32_WINNT >= 0x0500 */ #endif /* ! _SECEXT_H */ diff --git a/winsup/w32api/lib/secur32.def b/winsup/w32api/lib/secur32.def index bd130a1e1..2628f05cf 100644 --- a/winsup/w32api/lib/secur32.def +++ b/winsup/w32api/lib/secur32.def @@ -1,8 +1,11 @@ LIBRARY SECUR32.dll EXPORTS +AcceptSecurityContext@36 AcquireCredentialsHandleA@36 AcquireCredentialsHandleW@36 -AcceptSecurityContext@36 +ApplyControlTokenA@8 +ApplyControlTokenW@8 +CompleteAuthToken@8 DecryptMessage@16 DeleteSecurityContext@4 EncryptMessage@16 @@ -10,6 +13,11 @@ EnumerateSecurityPackagesA@8 EnumerateSecurityPackagesW@8 FreeContextBuffer@4 FreeCredentialsHandle@4 +GetComputerObjectNameA@12 +GetComputerObjectNameW@12 +GetUserNameExA@12 +GetUserNameExW@12 +ImpersonateSecurityContext@4 InitializeSecurityContextA@48 InitializeSecurityContextW@48 LsaCallAuthenticationPackage@28 @@ -18,16 +26,14 @@ LsaFreeReturnBuffer@4 LsaLogonUser@56 LsaLookupAuthenticationPackage@12 LsaRegisterLogonProcess@12 +MakeSignature@16 QueryContextAttributesA@12 QueryContextAttributesW@12 QueryCredentialsAttributesA@12 QueryCredentialsAttributesW@12 -CompleteAuthToken@8 -ApplyControlTokenA@8 -ApplyControlTokenW@8 -ImpersonateSecurityContext@4 -RevertSecurityContext@4 -MakeSignature@16 -VerifySignature@16 QuerySecurityPackageInfoA@8 QuerySecurityPackageInfoW@8 +RevertSecurityContext@4 +TranslateNameA@20 +TranslateNameW@20 +VerifySignature@16 diff --git a/winsup/w32api/lib/test.c b/winsup/w32api/lib/test.c index be796840d..de9a842b2 100644 --- a/winsup/w32api/lib/test.c +++ b/winsup/w32api/lib/test.c @@ -67,6 +67,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3