Using Win32 functions in Visual FoxPro Image Gallery
Security
..msdn
ConvertSidToStringSid
GetAce
GetAclInformation
GetFileSecurity
GetLengthSid
GetNamedSecurityInfo
GetSecurityDescriptorDacl
GetSecurityDescriptorOwner
ImpersonateLoggedOnUser
IsValidSid
IsWellKnownSid
LogonUser
LookupAccountName
LookupAccountSid
LsaClose
LsaEnumerateLogonSessions
LsaFreeMemory
LsaFreeReturnBuffer
LsaGetLogonSessionData
LsaLookupSids
LsaOpenPolicy
RevertToSelf
Code examples:
GetFileOwner - Get the owner of an NTFS file
GetSecurityDescriptorOwner
..msdn    Add comment     W32 Constants      Translate this page
The GetSecurityDescriptorOwner function retrieves the owner information from a security descriptor.
Code examples:
GetFileOwner - Get the owner of an NTFS file
Declaration:
BOOL GetSecurityDescriptorOwner(
  PSECURITY_DESCRIPTOR pSecurityDescriptor,
  PSID* pOwner,
  LPBOOL lpbOwnerDefaulted
);

FoxPro declaration:
DECLARE INTEGER GetSecurityDescriptorOwner IN advapi32;
    STRING  @ pSecurityDescriptor,;
    INTEGER @ pOwner,;
    INTEGER @ lpbOwnerDefaulted

Parameters:
pSecurityDescriptor
[in] Pointer to a SECURITY_DESCRIPTOR structure whose owner information the function retrieves.

pOwner
[out] Pointer to a pointer to a SID identifying the owner when the function returns.

lpbOwnerDefaulted
[out] Pointer to a flag set to the value of the SE_OWNER_DEFAULTED flag in the SECURITY_DESCRIPTOR_CONTROL structure when the function returns.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Word Index links for the GetSecurityDescriptorOwner :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-02-25 21:22:21
Modified: 2004-02-25 21:24:03
Visited in last 7 days: 21
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
16 sec.Function: 'mmioFlush'
34 sec.Function: 'BitBlt'
50 sec.Function: 'JetAddColumn'
1.12 min.Function: 'GetCapture'
1.42 min.Function: 'NetApiBufferFree'
1.72 min.
Function group: 'Font and Text'
2.03 min.Function: 'GdipCreateMatrix'
2.33 min.Function: 'GdipCreateFromHWND'
2.67 min.Function: 'GetFileSecurity'
2.98 min.Function: 'GetClassInfo'
Google
Advertise here!