13.4. Simple Examples

The purpose of this section is to walk through the creation and application of a security descriptor for a file object. A file object is chosen for this example because it is common and easily understood, and also because it is easy to view the results with the security editor in the File Manager to prove that the code works. However, if your hard disk is not formatted with the NT File System, this code will not do anything, and the security editor is disabled. You have three options if this is the case:

  1. Convert your hard disk to NTFS

  2. Install a new hard disk and format it with the NT File System

  3. Partition off a small section (say 10 megabytes) of your existing hard disk and format it with NTFS. This means that you will have ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.