Thanks for your reply. You've demonstrated how to create a share, and I have no difficulty with this, myself.
My problem is with retrieving the security descriptor for an existing share or file via the GetSecurityDescriptor method. Have you ever tried this yourself?