Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #1353

Re: GetSecurityInfo

From "Darmadi" <support@gfsoftindo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: GetSecurityInfo
Date 2011-06-11 09:56 +0700
Organization Aioe.org NNTP Server
Message-ID <isulh3$7u5$1@speranza.aioe.org> (permalink)
References <isc46r$jvl$1@speranza.aioe.org> <4deae44d$0$89994$c30e37c6@exi-reader.telstra.net>

Show all headers | View raw


Hi Geoff,

I have strange problem in my application happen in WinXP (few clients only).
Because the table/database was big, so when doing PACK it take long time and 
the application will become idle/not responding, so I change the way doing 
PACK, if record more than 10000 records, than the application will create 
another new file and append the appropriate record to the new file.
After finish PACK, another PC/Computer want to open the file, it's say 
cannot open, except the main/server PC/Computer.
Then check back, we found the Security for the file was changed.
So now I plan to copy the Security Description from old file to new file.

Regards,
Darmadi




"Geoff Schaller"  wrote in message 
news:4deae44d$0$89994$c30e37c6@exi-reader.telstra.net...

Hmmm... what are you going to do next?

(the short answer is no, we don't - we do things like this another way)

The C guys here can certainly give you direct VO translations for the
API call but what next? How are you going to use what comes back and to
what purpose? Is this for a domain based environment or a local one? Or
does it have to handle both? Why is this an issue for a VO app?

The problem is that VO does not have any class libraries dealing with
this. C# does and it is complex, with the result that we stayed behind
Active Directory and used AD to manage security and access to devices or
files. This was relatively easy to do within a formal framework.

Geoff



"Darmadi" <support@gfsoftindo.com> wrote in message
news:isc46r$jvl$1@speranza.aioe.org:

> Hi To all,
>
> Does anybody here have a running code GetSecurityInfo() ADVAPI32.DLL ?
>
> This from WIN32SDK.HLP:
> The GetSecurityInfo function retrieves a copy of the security descriptor 
> for
> an object specified by a handle.
>
> DWORD GetSecurityInfo(
>
> HANDLE handle,    // handle to the object
> SE_OBJECT_TYPE ObjectType,        // type of object
> SECURITY_INFORMATION SecurityInfo,           // type of security 
> information
> to retrieve
> PSID *ppsidOwner,             // receives a pointer to the owner SID
> PSID *ppsidGroup,     // receives a pointer to the primary group SID\
> PACL *ppDacl,          // receives a pointer to the DACL
> PACL *ppSacl,           // receives a pointer to the SACL
> PSECURITY_DESCRIPTOR *ppSecurityDescriptor       // receives a pointer to
> the security descriptor
> );
>
>
>
> Regards,
> Darmadi 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GetSecurityInfo "Darmadi" <support@gfsoftindo.com> - 2011-06-04 09:10 +0700
  Re: GetSecurityInfo "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-05 02:05 +0000
    Re: GetSecurityInfo "Darmadi" <support@gfsoftindo.com> - 2011-06-11 09:56 +0700
      Re: GetSecurityInfo "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-12 23:48 +0000

csiph-web