Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving a pointer to file Pin
Paul M Watt19-Nov-02 11:34
mentorPaul M Watt19-Nov-02 11:34 
GeneralRe: Saving a pointer to file Pin
S van Leent20-Nov-02 7:12
S van Leent20-Nov-02 7:12 
GeneralHELP WANTED! Pin
MFC is the Best19-Nov-02 7:49
MFC is the Best19-Nov-02 7:49 
GeneralRe: HELP WANTED! Pin
Maximilien19-Nov-02 8:02
Maximilien19-Nov-02 8:02 
GeneralRe: HELP WANTED! Pin
MFC is the Best19-Nov-02 8:05
MFC is the Best19-Nov-02 8:05 
GeneralRe: HELP WANTED! Pin
Maximilien19-Nov-02 8:17
Maximilien19-Nov-02 8:17 
GeneralNeed definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Dominik Reichl19-Nov-02 7:27
Dominik Reichl19-Nov-02 7:27 
GeneralRe: Need definitions of constants for SetupDiGetDeviceRegistryProperty Pin
User 665819-Nov-02 7:47
User 665819-Nov-02 7:47 
// Note that SPDRP codes are zero based while CM_DRP codes are one based!
//
#define SPDRP_DEVICEDESC                  (0x00000000)  // DeviceDesc (R/W)
#define SPDRP_HARDWAREID                  (0x00000001)  // HardwareID (R/W)
#define SPDRP_COMPATIBLEIDS               (0x00000002)  // CompatibleIDs (R/W)
#define SPDRP_UNUSED0                     (0x00000003)  // unused
#define SPDRP_SERVICE                     (0x00000004)  // Service (R/W)
#define SPDRP_UNUSED1                     (0x00000005)  // unused
#define SPDRP_UNUSED2                     (0x00000006)  // unused
#define SPDRP_CLASS                       (0x00000007)  // Class (R--tied to ClassGUID)
#define SPDRP_CLASSGUID                   (0x00000008)  // ClassGUID (R/W)
#define SPDRP_DRIVER                      (0x00000009)  // Driver (R/W)
#define SPDRP_CONFIGFLAGS                 (0x0000000A)  // ConfigFlags (R/W)
#define SPDRP_MFG                         (0x0000000B)  // Mfg (R/W)
#define SPDRP_FRIENDLYNAME                (0x0000000C)  // FriendlyName (R/W)
#define SPDRP_LOCATION_INFORMATION        (0x0000000D)  // LocationInformation (R/W)
#define SPDRP_PHYSICAL_DEVICE_OBJECT_NAME (0x0000000E)  // PhysicalDeviceObjectName (R)
#define SPDRP_CAPABILITIES                (0x0000000F)  // Capabilities (R)
#define SPDRP_UI_NUMBER                   (0x00000010)  // UiNumber (R)
#define SPDRP_UPPERFILTERS                (0x00000011)  // UpperFilters (R/W)
#define SPDRP_LOWERFILTERS                (0x00000012)  // LowerFilters (R/W)
#define SPDRP_BUSTYPEGUID                 (0x00000013)  // BusTypeGUID (R)
#define SPDRP_LEGACYBUSTYPE               (0x00000014)  // LegacyBusType (R)
#define SPDRP_BUSNUMBER                   (0x00000015)  // BusNumber (R)
#define SPDRP_ENUMERATOR_NAME             (0x00000016)  // Enumerator Name (R)
#define SPDRP_SECURITY                    (0x00000017)  // Security (R/W, binary form)
#define SPDRP_SECURITY_SDS                (0x00000018)  // Security (W, SDS form)
#define SPDRP_DEVTYPE                     (0x00000019)  // Device Type (R/W)
#define SPDRP_EXCLUSIVE                   (0x0000001A)  // Device is exclusive-access (R/W)
#define SPDRP_CHARACTERISTICS             (0x0000001B)  // Device Characteristics (R/W)
#define SPDRP_ADDRESS                     (0x0000001C)  // Device Address (R)
#define SPDRP_UI_NUMBER_DESC_FORMAT       (0X0000001D)  // UiNumberDescFormat (R/W)
#define SPDRP_DEVICE_POWER_DATA           (0x0000001E)  // Device Power Data (R)
#define SPDRP_REMOVAL_POLICY              (0x0000001F)  // Removal Policy (R)
#define SPDRP_REMOVAL_POLICY_HW_DEFAULT   (0x00000020)  // Hardware Removal Policy (R)
#define SPDRP_REMOVAL_POLICY_OVERRIDE     (0x00000021)  // Removal Policy Override (RW)
#define SPDRP_INSTALL_STATE               (0x00000022)  // Device Install State (R)
#define SPDRP_LOCATION_PATHS              (0x00000023)  // Device Location Paths (R)

#define SPDRP_MAXIMUM_PROPERTY            (0x00000024)  // Upper bound on ordinals

//
// Class registry property codes
// (Codes marked as read-only (R) may only be used for
// SetupDiGetClassRegistryProperty)
//
// These values should cover the same set of registry properties
// as defined by the CM_CRP codes in cfgmgr32.h.
// they should also have a 1:1 correspondence with Device registers, where applicable
// but no overlap otherwise
//
#define SPCRP_SECURITY                    (0x00000017)  // Security (R/W, binary form)
#define SPCRP_SECURITY_SDS                (0x00000018)  // Security (W, SDS form)
#define SPCRP_DEVTYPE                     (0x00000019)  // Device Type (R/W)
#define SPCRP_EXCLUSIVE                   (0x0000001A)  // Device is exclusive-access (R/W)
#define SPCRP_CHARACTERISTICS             (0x0000001B)  // Device Characteristics (R/W)
#define SPCRP_MAXIMUM_PROPERTY            (0x0000001C)  // Upper bound on ordinals


hope this helps
Gruß Smile | :)

modified 12-Sep-18 21:01pm.

GeneralRe: Need definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Dominik Reichl19-Nov-02 10:02
Dominik Reichl19-Nov-02 10:02 
GeneralGDI related Pin
Imran Farooqui19-Nov-02 7:04
Imran Farooqui19-Nov-02 7:04 
GeneralRe: GDI related Pin
Christian Graus19-Nov-02 8:20
protectorChristian Graus19-Nov-02 8:20 
GeneralRe: GDI related Pin
Paul M Watt19-Nov-02 8:24
mentorPaul M Watt19-Nov-02 8:24 
QuestionMaximize my app drawing even over the MS Windows taskbar? Pin
Joan M19-Nov-02 6:27
professionalJoan M19-Nov-02 6:27 
AnswerRe: Maximize my app drawing even over the MS Windows taskbar? Pin
RobJones19-Nov-02 8:58
RobJones19-Nov-02 8:58 
AnswerRe: Maximize my app drawing even over the MS Windows taskbar? Pin
RobJones19-Nov-02 9:07
RobJones19-Nov-02 9:07 
Answertutorial for this Pin
zenboy19-Nov-02 14:27
zenboy19-Nov-02 14:27 
GeneralTri - State button Pin
Anonymous19-Nov-02 6:12
Anonymous19-Nov-02 6:12 
GeneralRe: Tri - State button Pin
Alvaro Mendez19-Nov-02 6:26
Alvaro Mendez19-Nov-02 6:26 
GeneralRe: Tri - State button Pin
Anonymous19-Nov-02 6:32
Anonymous19-Nov-02 6:32 
GeneralRe: Tri - State button Pin
Alvaro Mendez19-Nov-02 6:48
Alvaro Mendez19-Nov-02 6:48 
GeneralRe: Tri - State button Pin
Amy Patterson19-Nov-02 7:11
Amy Patterson19-Nov-02 7:11 
QuestionHow to get the difference between two variables of type DATE !! Pin
bahruddina19-Nov-02 5:56
bahruddina19-Nov-02 5:56 
AnswerRe: How to get the difference between two variables of type DATE !! Pin
Chris Losinger19-Nov-02 6:02
professionalChris Losinger19-Nov-02 6:02 
AnswerRe: How to get the difference between two variables of type DATE !! Pin
Alvaro Mendez19-Nov-02 6:10
Alvaro Mendez19-Nov-02 6:10 
GeneralDrag And Droppings ... Pin
Maximilien19-Nov-02 5:34
Maximilien19-Nov-02 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.