General Requirements for Device Property Page Providers

To create device property pages, a provider must follow these general requirements in order for the property page to work correctly:

  • Handle the request to add a property page.

    For providers that are property page extension DLLs, this request is made through the AddPropSheetPageProc callback function. For more information, see Specific Requirements for Device Property Page Providers (Property Page Extension DLLs)

  • Create the property page by calling the CreatePropertySheetPage function. The provider passes the address of the initialized PROPSHEETPAGE structure in this call.

  • Supply a PropSheetPageProc callback function that handles PSPCB_CREATE and PSPCB_RELEASE messages if additional storage must be allocated and released for a property page.

  • Supply a dialog box procedure that handles Windows messages for each custom property page.

  • Initialize a PROPSHEETPAGE structure with (among other things) the addresses of the PropSheetPageProc callback function and dialog box procedure.

This section includes the following topics that provide more guidance about custom property pages:

Creating Custom Property Pages

Property Page Callback Function

Handling Windows Messages for Property Pages

Sample Custom Property Page