X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinsecur.h;h=ed3151c5179427f6d53d6603f1c9a7015df9b586;hb=1de7240eb88fa24a8532ded116b4ec72dd213008;hp=57de5d1de8c5f7c7c44aee94b67363d6b9097156;hpb=bb78583ad29084f16db994d66895917e1b20346e;p=PuTTY.git diff --git a/windows/winsecur.h b/windows/winsecur.h index 57de5d1d..ed3151c5 100644 --- a/windows/winsecur.h +++ b/windows/winsecur.h @@ -28,17 +28,13 @@ DECL_WINDOWS_FUNCTION(WINSECUR_GLOBAL, DWORD, GetSecurityInfo, (HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID *, PSID *, PACL *, PACL *, PSECURITY_DESCRIPTOR *)); +DECL_WINDOWS_FUNCTION(WINSECUR_GLOBAL, DWORD, SetSecurityInfo, + (HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, + PSID, PSID, PACL, PACL)); DECL_WINDOWS_FUNCTION(WINSECUR_GLOBAL, DWORD, SetEntriesInAclA, (ULONG, PEXPLICIT_ACCESS, PACL, PACL *)); int got_advapi(void); -/* - * Functions loaded from crypt32.dll. - */ -DECL_WINDOWS_FUNCTION(WINSECUR_GLOBAL, BOOL, CryptProtectMemory, - (LPVOID, DWORD, DWORD)); -int got_crypt(void); - /* * Find the SID describing the current user. The return value (if not * NULL for some error-related reason) is smalloced. @@ -50,16 +46,16 @@ PSID get_user_sid(void); * servers, i.e. allowing access only to the current user id and also * only local (i.e. not over SMB) connections. * - * If this function returns TRUE, then 'psd', 'networksid' and 'acl' - * will all have been filled in with memory allocated using LocalAlloc - * (and hence must be freed later using LocalFree). If it returns - * FALSE, then instead 'error' has been filled with a dynamically - * allocated error message. + * If this function returns TRUE, then 'psd' and 'acl' will have been + * filled in with memory allocated using LocalAlloc (and hence must be + * freed later using LocalFree). If it returns FALSE, then instead + * 'error' has been filled with a dynamically allocated error message. */ int make_private_security_descriptor(DWORD permissions, PSECURITY_DESCRIPTOR *psd, - PSID *networksid, PACL *acl, char **error); +int setprocessacl(char *error); + #endif