Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1244 > unrolled thread
| Started by | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| First post | 2011-06-04 09:10 +0700 |
| Last post | 2011-06-12 23:48 +0000 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Date | 2011-06-04 09:10 +0700 |
| Subject | GetSecurityInfo |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-06-05 02:05 +0000 |
| Message-ID | <4deae44d$0$89994$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1244 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Date | 2011-06-11 09:56 +0700 |
| Message-ID | <isulh3$7u5$1@speranza.aioe.org> |
| In reply to | #1252 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-06-12 23:48 +0000 |
| Message-ID | <4df5503a$0$34824$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1353 |
But the security descriptor will be irrelevant. You are much better off just living with the Pack delay. Soon XP will be gone and you will be able to push such things to a separate thread more easily. Geoff "Darmadi" <support@gfsoftindo.com> wrote in message news:isulh3$7u5$1@speranza.aioe.org: > 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web