| gpedit.h (6.1.7600.16385-Windows_7.0) | | gpedit.h (6.3.9600.17415-Windows_8.1) |
| | |
| skipping to change at line 147 | | skipping to change at line 147 |
| | |
| // | | // |
| // IRSOPInformation interface id | | // IRSOPInformation interface id |
| // | | // |
| // {9A5A81B5-D9C7-49EF-9D11-DDF50968C48D} | | // {9A5A81B5-D9C7-49EF-9D11-DDF50968C48D} |
| | |
| DEFINE_GUID(IID_IRSOPInformation, 0x9a5a81b5, 0xd9c7, 0x49ef, 0x9d, 0x11, 0xdd,
0xf5, 0x09, 0x68, 0xc4, 0x8d); | | DEFINE_GUID(IID_IRSOPInformation, 0x9a5a81b5, 0xd9c7, 0x49ef, 0x9d, 0x11, 0xdd,
0xf5, 0x09, 0x68, 0xc4, 0x8d); |
| | |
| #ifndef _GPEDIT_H_ | | #ifndef _GPEDIT_H_ |
| #define _GPEDIT_H_ | | #define _GPEDIT_H_ |
|
| | #include <winapifamily.h> |
| | |
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| // | | // |
| // Define API decoration for direct importing of DLL references. | | // Define API decoration for direct importing of DLL references. |
| // | | // |
| | |
| #if !defined(_GPEDIT_) | | #if !defined(_GPEDIT_) |
| #define GPEDITAPI DECLSPEC_IMPORT | | #define GPEDITAPI DECLSPEC_IMPORT |
| #else | | #else |
| #define GPEDITAPI | | #define GPEDITAPI |
| #endif | | #endif |
| | |
| skipping to change at line 219 | | skipping to change at line 223 |
| | |
| // *** IGPEInformation methods *** | | // *** IGPEInformation methods *** |
| | |
| // | | // |
| // Returns the unique Group Policy Object name (a GUID) | | // Returns the unique Group Policy Object name (a GUID) |
| // | | // |
| // pszName contains the name on return | | // pszName contains the name on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetName) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszName, int c
chMaxLength) PURE; | | STDMETHOD(GetName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int c
chMaxLength) PURE; |
| | |
| // | | // |
| // Returns the friendly display name for this Group Policy Object | | // Returns the friendly display name for this Group Policy Object |
| // | | // |
| // pszName contains the name on return | | // pszName contains the name on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetDisplayName) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; | | STDMETHOD(GetDisplayName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; |
| | |
| // | | // |
| // Returns a registry key handle for the requested section. The returned | | // Returns a registry key handle for the requested section. The returned |
| // key is the root of the registry, not the Policies subkey. To set / read | | // key is the root of the registry, not the Policies subkey. To set / read |
| // a value in the Policies subkey, you will need to call RegOpenKeyEx to | | // a value in the Policies subkey, you will need to call RegOpenKeyEx to |
| // open Software\Policies subkey first. | | // open Software\Policies subkey first. |
| // | | // |
| // The handle has been opened with ALL ACCESS rights. Call RegCloseKey | | // The handle has been opened with ALL ACCESS rights. Call RegCloseKey |
| // on the handle when finished. | | // on the handle when finished. |
| // | | // |
| | |
| skipping to change at line 254 | | skipping to change at line 258 |
| | |
| // | | // |
| // Returns the Active Directory path to the root of the request section. | | // Returns the Active Directory path to the root of the request section. |
| // The path is in ADSI name format. | | // The path is in ADSI name format. |
| // | | // |
| // dwSection is one of the GPO_SECTION_* flags | | // dwSection is one of the GPO_SECTION_* flags |
| // pszPath contains the path on return | | // pszPath contains the path on return |
| // cchMaxPath is the max number of characters that can be stored in pszPath | | // cchMaxPath is the max number of characters that can be stored in pszPath |
| // | | // |
| | |
|
| STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, __out_ecount(cchMaxPath) LPOLES
TR pszPath, int cchMaxPath) PURE; | | STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLES
TR pszPath, int cchMaxPath) PURE; |
| | |
| // | | // |
| // Returns the UNC path to the root of the requested section. | | // Returns the UNC path to the root of the requested section. |
| // | | // |
| // dwSection is one of the GPO_SECTION_* flags | | // dwSection is one of the GPO_SECTION_* flags |
| // pszPath contains the path on return | | // pszPath contains the path on return |
| // cchMaxPath is the number of characters that can be stored in pszPath. | | // cchMaxPath is the number of characters that can be stored in pszPath. |
| // | | // |
| | |
|
| STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, __out_ecount(cchMaxPath) L
POLESTR pszPath, int cchMaxPath) PURE; | | STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) L
POLESTR pszPath, int cchMaxPath) PURE; |
| | |
| // | | // |
| // Returns the user preferences (options) | | // Returns the user preferences (options) |
| // | | // |
| // Currently, there are no options defined. This is reserved for future use
. | | // Currently, there are no options defined. This is reserved for future use
. |
| // | | // |
| // dwOptions receives a bitmask value | | // dwOptions receives a bitmask value |
| // | | // |
| | |
| STDMETHOD(GetOptions) (THIS_ DWORD *dwOptions) PURE; | | STDMETHOD(GetOptions) (THIS_ DWORD *dwOptions) PURE; |
| | |
| skipping to change at line 367 | | skipping to change at line 371 |
| // and opens it via OpenDSGPO(). If pszDomainName contains a domain | | // and opens it via OpenDSGPO(). If pszDomainName contains a domain |
| // controller name, the GPO will be created on that DC. If it does not | | // controller name, the GPO will be created on that DC. If it does not |
| // specify a domain controller name, the method will select a DC on | | // specify a domain controller name, the method will select a DC on |
| // the callers behalf. | | // the callers behalf. |
| // | | // |
| // pszDomainName contains the ADSI path of the domain root | | // pszDomainName contains the ADSI path of the domain root |
| // pszDisplayName contains the friendly display name | | // pszDisplayName contains the friendly display name |
| // dwFlags is a bitmask of GPO open / creation flags listed above | | // dwFlags is a bitmask of GPO open / creation flags listed above |
| // | | // |
| | |
|
| STDMETHOD(New) (THIS_ __in LPOLESTR pszDomainName, __in_opt LPOLESTR pszDisp
layName, | | STDMETHOD(New) (THIS_ _In_ LPOLESTR pszDomainName, _In_opt_ LPOLESTR pszDisp
layName, |
| DWORD dwFlags) PURE; | | DWORD dwFlags) PURE; |
| | |
| // | | // |
| // Opens the specified Group Policy Object in the Active Directory | | // Opens the specified Group Policy Object in the Active Directory |
| // based upon the passed in flags. If pszPath contains a domain | | // based upon the passed in flags. If pszPath contains a domain |
| // controller name, the GPO will be opened on that DC. If it does | | // controller name, the GPO will be opened on that DC. If it does |
| // not contain a domain controller name, the method will select a | | // not contain a domain controller name, the method will select a |
| // DC on the callers behalf. If the registry is not loaded, | | // DC on the callers behalf. If the registry is not loaded, |
| // GetRegistryKey() will return E_FAIL. | | // GetRegistryKey() will return E_FAIL. |
| // | | // |
| // pszPath contains the ADSI path to the GPO to open | | // pszPath contains the ADSI path to the GPO to open |
| // dwFlags is a bitmask of GPO open / creation flags listed above | | // dwFlags is a bitmask of GPO open / creation flags listed above |
| // | | // |
| | |
|
| STDMETHOD(OpenDSGPO) (THIS_ __in LPOLESTR pszPath, DWORD dwFlags) PURE; | | STDMETHOD(OpenDSGPO) (THIS_ _In_ LPOLESTR pszPath, DWORD dwFlags) PURE; |
| | |
| // | | // |
| // Opens the default Group Policy Object on this machine with the | | // Opens the default Group Policy Object on this machine with the |
| // dwFlags options listed above. If the registry is not loaded, | | // dwFlags options listed above. If the registry is not loaded, |
| // GetRegistryKey() will return E_FAIL. | | // GetRegistryKey() will return E_FAIL. |
| // | | // |
| // dwFlags is a bitmask of GPO open / creation flags listed above | | // dwFlags is a bitmask of GPO open / creation flags listed above |
| // | | // |
| | |
| STDMETHOD(OpenLocalMachineGPO) (THIS_ DWORD dwFlags) PURE; | | STDMETHOD(OpenLocalMachineGPO) (THIS_ DWORD dwFlags) PURE; |
| | |
| // | | // |
| // Opens the default Group Policy Object on a remote machine with the | | // Opens the default Group Policy Object on a remote machine with the |
| // dwFlags options listed above. If the registry is not loaded, | | // dwFlags options listed above. If the registry is not loaded, |
| // GetRegistryKey() will return E_FAIL. | | // GetRegistryKey() will return E_FAIL. |
| // | | // |
| // pszComputerName contains the machine name in \\machine format | | // pszComputerName contains the machine name in \\machine format |
| // dwFlags is a bitmask of GPO open / creation flags listed above | | // dwFlags is a bitmask of GPO open / creation flags listed above |
| // | | // |
| | |
|
| STDMETHOD(OpenRemoteMachineGPO) (THIS_ __in LPOLESTR pszComputerName, DWORD
dwFlags) PURE; | | STDMETHOD(OpenRemoteMachineGPO) (THIS_ _In_ LPOLESTR pszComputerName, DWORD
dwFlags) PURE; |
| | |
| // | | // |
| // Flushes the registry settings to disk and updates the revision | | // Flushes the registry settings to disk and updates the revision |
| // number of the GPO. | | // number of the GPO. |
| // | | // |
| // bMachine specifies if machine or user should be saved. | | // bMachine specifies if machine or user should be saved. |
| // bAdd specifies whether this is an add or delete. | | // bAdd specifies whether this is an add or delete. |
| // pGuidExtension is the guid or unique name of extension that | | // pGuidExtension is the guid or unique name of extension that |
| // will process this GPO. | | // will process this GPO. |
| // pGuid is a guid | | // pGuid is a guid |
| | |
| skipping to change at line 438 | | skipping to change at line 442 |
| // Returns the unique Group Policy Object name | | // Returns the unique Group Policy Object name |
| // | | // |
| // For Active Directory policy objects, this is a GUID | | // For Active Directory policy objects, this is a GUID |
| // For the local policy object, it is the string "Local" | | // For the local policy object, it is the string "Local" |
| // For remote policy objects, it is the computername | | // For remote policy objects, it is the computername |
| // | | // |
| // pszName contains the name on return | | // pszName contains the name on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetName) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszName, int c
chMaxLength) PURE; | | STDMETHOD(GetName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int c
chMaxLength) PURE; |
| | |
| // | | // |
| // Returns the friendly display name for this Group Policy Object | | // Returns the friendly display name for this Group Policy Object |
| // | | // |
| // pszName contains the name on return | | // pszName contains the name on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetDisplayName) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; | | STDMETHOD(GetDisplayName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; |
| | |
| // | | // |
| // Sets the friendly display name for this Group Policy Object | | // Sets the friendly display name for this Group Policy Object |
| // | | // |
| // pszName is the new display name | | // pszName is the new display name |
| // | | // |
| | |
|
| STDMETHOD(SetDisplayName) (THIS_ __in LPOLESTR pszName) PURE; | | STDMETHOD(SetDisplayName) (THIS_ _In_ LPOLESTR pszName) PURE; |
| | |
| // | | // |
| // Returns the path to the Group Policy Object | | // Returns the path to the Group Policy Object |
| // | | // |
| // | | // |
| // If the GPO is an Active Directory object, the path is in ADSI name format
. | | // If the GPO is an Active Directory object, the path is in ADSI name format
. |
| // If the GPO is a machine object, it is a file system path | | // If the GPO is a machine object, it is a file system path |
| // | | // |
| // pszPath contains the path on return | | // pszPath contains the path on return |
| // cchMaxPath is the max number of characters that can be stored in pszPath | | // cchMaxPath is the max number of characters that can be stored in pszPath |
| // | | // |
| | |
|
| STDMETHOD(GetPath) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszPath, int c
chMaxPath) PURE; | | STDMETHOD(GetPath) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszPath, int c
chMaxPath) PURE; |
| | |
| // | | // |
| // Returns the Active Directory path to the root of the request section. | | // Returns the Active Directory path to the root of the request section. |
| // The path is in DN name format. | | // The path is in DN name format. |
| // | | // |
| // dwSection is one of the GPO_SECTION_* flags | | // dwSection is one of the GPO_SECTION_* flags |
| // pszPath contains the path on return | | // pszPath contains the path on return |
| // cchMaxPath is the max number of characters that can be stored in pszPath | | // cchMaxPath is the max number of characters that can be stored in pszPath |
| // | | // |
| | |
|
| STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, __out_ecount(cchMaxPath) LPOLES
TR pszPath, int cchMaxPath) PURE; | | STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLES
TR pszPath, int cchMaxPath) PURE; |
| | |
| // | | // |
| // Returns the UNC path to the root of the requested section. | | // Returns the UNC path to the root of the requested section. |
| // | | // |
| // dwSection is one of the GPO_SECTION_* flags | | // dwSection is one of the GPO_SECTION_* flags |
| // pszPath contains the path on return | | // pszPath contains the path on return |
| // cchMaxPath is the number of characters that can be stored in pszPath. | | // cchMaxPath is the number of characters that can be stored in pszPath. |
| // | | // |
| | |
|
| STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, __out_ecount(cchMaxPath) L
POLESTR pszPath, int cchMaxPath) PURE; | | STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) L
POLESTR pszPath, int cchMaxPath) PURE; |
| | |
| // | | // |
| // Returns a registry key handle for the requested section. The returned | | // Returns a registry key handle for the requested section. The returned |
| // key is the root of the registry, not the Policies subkey. To set / read | | // key is the root of the registry, not the Policies subkey. To set / read |
| // a value in the Policies subkey, you will need to call RegOpenKeyEx to | | // a value in the Policies subkey, you will need to call RegOpenKeyEx to |
| // open Software\Policies subkey first. | | // open Software\Policies subkey first. |
| // | | // |
| // The handle has been opened with ALL ACCESS rights. Call RegCloseKey | | // The handle has been opened with ALL ACCESS rights. Call RegCloseKey |
| // on the handle when finished. | | // on the handle when finished. |
| // | | // |
| | |
| skipping to change at line 561 | | skipping to change at line 565 |
| | |
| // | | // |
| // Returns the machine name of the remote GPO | | // Returns the machine name of the remote GPO |
| // | | // |
| // This method returns the name passed to OpenRemoteMachineGPO. | | // This method returns the name passed to OpenRemoteMachineGPO. |
| // | | // |
| // pszName contains the name on return | | // pszName contains the name on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetMachineName) (THIS_ __out_ecount(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; | | STDMETHOD(GetMachineName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName
, int cchMaxLength) PURE; |
| | |
| // | | // |
| // Returns an array of property sheet pages and the number of pages | | // Returns an array of property sheet pages and the number of pages |
| // in the array | | // in the array |
| // | | // |
| // Note, this method will allocate memory for the array with | | // Note, this method will allocate memory for the array with |
| // LocalAlloc. When finished, the caller should free the array | | // LocalAlloc. When finished, the caller should free the array |
| // with LocalFree | | // with LocalFree |
| // | | // |
| // hPages address of the pointer for the array of property sheet pages | | // hPages address of the pointer for the array of property sheet pages |
| | |
| skipping to change at line 604 | | skipping to change at line 608 |
| // *** IRSOPInformation methods *** | | // *** IRSOPInformation methods *** |
| | |
| // | | // |
| // Returns the namespace for the RSOP data | | // Returns the namespace for the RSOP data |
| // | | // |
| // dwSection is either GPO_SECTION_USER or GPO_SECTION_MACHINE | | // dwSection is either GPO_SECTION_USER or GPO_SECTION_MACHINE |
| // pszName contains the namespace on return | | // pszName contains the namespace on return |
| // cchMaxLength is the max number of characters that can be stored in pszNam
e | | // cchMaxLength is the max number of characters that can be stored in pszNam
e |
| // | | // |
| | |
|
| STDMETHOD(GetNamespace) (THIS_ DWORD dwSection, __out_ecount(cchMaxLength) L
POLESTR pszName, int cchMaxLength) PURE; | | STDMETHOD(GetNamespace) (THIS_ DWORD dwSection, _Out_writes_(cchMaxLength) L
POLESTR pszName, int cchMaxLength) PURE; |
| | |
| // | | // |
| // Returns information about the RSOP session | | // Returns information about the RSOP session |
| // | | // |
| // pdwFlags points to a DWORD which contains the flags on return | | // pdwFlags points to a DWORD which contains the flags on return |
| // | | // |
| | |
| STDMETHOD(GetFlags) (THIS_ DWORD * pdwFlags) PURE; | | STDMETHOD(GetFlags) (THIS_ DWORD * pdwFlags) PURE; |
| | |
| // | | // |
| // Returns the event log text for a specific entry | | // Returns the event log text for a specific entry |
| // | | // |
| // lpEventSource - event log source name | | // lpEventSource - event log source name |
| // lpEventLogName - event log name | | // lpEventLogName - event log name |
| // lpEventTime - event log time in WMI datetime format | | // lpEventTime - event log time in WMI datetime format |
| // dwEventID - event ID | | // dwEventID - event ID |
| // lpText - Receives a pointer to a buffer containing the text. | | // lpText - Receives a pointer to a buffer containing the text. |
| // The caller should free this buffer with CoTaskMemFree. | | // The caller should free this buffer with CoTaskMemFree. |
| // | | // |
| | |
|
| STDMETHOD(GetEventLogEntryText) (THIS_ __in LPOLESTR pszEventSource, __in LP | | STDMETHOD(GetEventLogEntryText) (THIS_ _In_ LPOLESTR pszEventSource, _In_ LP |
| OLESTR pszEventLogName, | | OLESTR pszEventLogName, |
| __in LPOLESTR pszEventTime, DWORD dwE | | _In_ LPOLESTR pszEventTime, DWORD dwE |
| ventID, __deref_out LPOLESTR *ppszText) PURE; | | ventID, _Outptr_ LPOLESTR *ppszText) PURE; |
| | |
| }; | | }; |
| typedef IRSOPInformation *LPRSOPINFORMATION; | | typedef IRSOPInformation *LPRSOPINFORMATION; |
| | |
| //============================================================================= | | //============================================================================= |
| // | | // |
| // CreateGPOLink | | // CreateGPOLink |
| // | | // |
| // Creates a link to a GPO for the specified Site, Domain, or Organizational Uni
t | | // Creates a link to a GPO for the specified Site, Domain, or Organizational Uni
t |
| // | | // |
| | |
| skipping to change at line 649 | | skipping to change at line 653 |
| // fHighPriority - Create the link as the highest or lowest priority | | // fHighPriority - Create the link as the highest or lowest priority |
| // | | // |
| // Returns: S_OK if successful | | // Returns: S_OK if successful |
| // | | // |
| //============================================================================= | | //============================================================================= |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| CreateGPOLink( | | CreateGPOLink( |
|
| __in LPOLESTR lpGPO, | | _In_ LPOLESTR lpGPO, |
| __in LPOLESTR lpContainer, | | _In_ LPOLESTR lpContainer, |
| BOOL fHighPriority); | | BOOL fHighPriority); |
| | |
| //============================================================================= | | //============================================================================= |
| // | | // |
| // DeleteGPOLink | | // DeleteGPOLink |
| // | | // |
| // Deletes a link to a GPO for the specified Site, Domain, or Organizational Uni
t | | // Deletes a link to a GPO for the specified Site, Domain, or Organizational Uni
t |
| // | | // |
| // lpGPO - ADSI path to the GPO | | // lpGPO - ADSI path to the GPO |
| // lpContainer - ADSI path to the Site, Domain, or Organizational Unit | | // lpContainer - ADSI path to the Site, Domain, or Organizational Unit |
| // | | // |
| // Returns: S_OK if successful | | // Returns: S_OK if successful |
| // | | // |
| //============================================================================= | | //============================================================================= |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| DeleteGPOLink( | | DeleteGPOLink( |
|
| __in LPOLESTR lpGPO, | | _In_ LPOLESTR lpGPO, |
| __in LPOLESTR lpContainer); | | _In_ LPOLESTR lpContainer); |
| | |
| //============================================================================= | | //============================================================================= |
| // | | // |
| // DeleteAllGPOLinks | | // DeleteAllGPOLinks |
| // | | // |
| // Deletes all GPO links for the specified Site, Domain, or Organizational Unit | | // Deletes all GPO links for the specified Site, Domain, or Organizational Unit |
| // | | // |
| // lpContainer - ADSI path to the Site, Domain, or Organizational Unit | | // lpContainer - ADSI path to the Site, Domain, or Organizational Unit |
| // | | // |
| // Returns: S_OK if successful | | // Returns: S_OK if successful |
| // | | // |
| //============================================================================= | | //============================================================================= |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| DeleteAllGPOLinks( | | DeleteAllGPOLinks( |
|
| __in LPOLESTR lpContainer); | | _In_ LPOLESTR lpContainer); |
| | |
| //============================================================================= | | //============================================================================= |
| // | | // |
| // BrowseForGPO | | // BrowseForGPO |
| // | | // |
| // Displays the GPO browser dialog | | // Displays the GPO browser dialog |
| // | | // |
| // lpBrowseInfo - Address of a GPOBROWSEINFO structure | | // lpBrowseInfo - Address of a GPOBROWSEINFO structure |
| // | | // |
| // Returns: S_OK if successful | | // Returns: S_OK if successful |
| | |
| skipping to change at line 722 | | skipping to change at line 726 |
| #define GPO_BROWSE_NOUSERGPOS 0x00000020 // Removes the Users tab | | #define GPO_BROWSE_NOUSERGPOS 0x00000020 // Removes the Users tab |
| #define GPO_BROWSE_SENDAPPLYONEDIT 0x00000040 // Send the apply event if
edit menu is selected | | #define GPO_BROWSE_SENDAPPLYONEDIT 0x00000040 // Send the apply event if
edit menu is selected |
| | |
| typedef struct tag_GPOBROWSEINFO | | typedef struct tag_GPOBROWSEINFO |
| { | | { |
| DWORD dwSize; // [in] Initialized to the size of thi
s structure | | DWORD dwSize; // [in] Initialized to the size of thi
s structure |
| DWORD dwFlags; // [in] Flags defined above | | DWORD dwFlags; // [in] Flags defined above |
| HWND hwndOwner; // [in] Parent window handle (can be N
ULL) | | HWND hwndOwner; // [in] Parent window handle (can be N
ULL) |
| LPOLESTR lpTitle; // [in] Title bar text. If NULL, "Bro
wse for a Group Policy Object" will be the default text | | LPOLESTR lpTitle; // [in] Title bar text. If NULL, "Bro
wse for a Group Policy Object" will be the default text |
| LPOLESTR lpInitialOU; // [in] Initial Domain/Organizational
Unit to open focus on | | LPOLESTR lpInitialOU; // [in] Initial Domain/Organizational
Unit to open focus on |
|
| __field_ecount(dwDSPathSize) LPOLESTR lpDSPath; // [in/ou
t] Pointer to the buffer that receives the Active Directory GPO path | | _Field_size_(dwDSPathSize) LPOLESTR lpDSPath; // [in/out]
Pointer to the buffer that receives the Active Directory GPO path |
| DWORD dwDSPathSize; // [in] Size in characters of buffer g
iven in lpDSPath | | DWORD dwDSPathSize; // [in] Size in characters of buffer g
iven in lpDSPath |
|
| __field_bcount( dwNameSize) LPOLESTR lpName; // [in/out
] Pointer to a buffer that receives either the computer name or | | _Field_size_bytes_( dwNameSize) LPOLESTR lpName; // [in
/out] Pointer to a buffer that receives either the computer name or |
| // the friendly name of the GPO (
can be NULL) | | // the friendly name of the GPO (
can be NULL) |
| DWORD dwNameSize; // [in] Size in characters of buffer g
iven in lpName | | DWORD dwNameSize; // [in] Size in characters of buffer g
iven in lpName |
| GROUP_POLICY_OBJECT_TYPE gpoType; // [out] Specifies the type of GPO | | GROUP_POLICY_OBJECT_TYPE gpoType; // [out] Specifies the type of GPO |
| GROUP_POLICY_HINT_TYPE gpoHint; // [out] Specifies a hint of the GPO a
ssociation | | GROUP_POLICY_HINT_TYPE gpoHint; // [out] Specifies a hint of the GPO a
ssociation |
| } GPOBROWSEINFO, *LPGPOBROWSEINFO; | | } GPOBROWSEINFO, *LPGPOBROWSEINFO; |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| BrowseForGPO( | | BrowseForGPO( |
| | |
| skipping to change at line 757 | | skipping to change at line 761 |
| // | | // |
| // Notes: The namespace specified in lpNameSpace must exist prior to calling | | // Notes: The namespace specified in lpNameSpace must exist prior to calling |
| // this function. | | // this function. |
| // | | // |
| //============================================================================= | | //============================================================================= |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| ImportRSoPData( | | ImportRSoPData( |
|
| __in LPOLESTR lpNameSpace, | | _In_ LPOLESTR lpNameSpace, |
| __in LPOLESTR lpFileName); | | _In_ LPOLESTR lpFileName); |
| | |
| //============================================================================= | | //============================================================================= |
| // | | // |
| // ExportRSoPData | | // ExportRSoPData |
| // | | // |
| // Exports a WBEM namespace containing RSoP information to a data file. | | // Exports a WBEM namespace containing RSoP information to a data file. |
| // This data file can be imported to a WBEM namespace using ImportRSoPData. | | // This data file can be imported to a WBEM namespace using ImportRSoPData. |
| // | | // |
| // lpNameSpace - Namespace to read the data from | | // lpNameSpace - Namespace to read the data from |
| // lpFileName - Filename to receive the data | | // lpFileName - Filename to receive the data |
| | |
| skipping to change at line 781 | | skipping to change at line 785 |
| // | | // |
| // Notes: This function should be called twice. Once for the user data | | // Notes: This function should be called twice. Once for the user data |
| // and once for the computer data. | | // and once for the computer data. |
| // | | // |
| //============================================================================= | | //============================================================================= |
| | |
| GPEDITAPI | | GPEDITAPI |
| HRESULT | | HRESULT |
| WINAPI | | WINAPI |
| ExportRSoPData( | | ExportRSoPData( |
|
| __in LPOLESTR lpNameSpace, | | _In_ LPOLESTR lpNameSpace, |
| __in LPOLESTR lpFileName); | | _In_ LPOLESTR lpFileName); |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #endif /* _GPEDIT_H_ */ | | #endif /* _GPEDIT_H_ */ |
| | |
| End of changes. 25 change blocks. |
| 30 lines changed or deleted | | 37 lines changed or added |
|