MsiNotifySidChange Function

Windows Installer

MsiNotifySidChange Function

The MsiNotifySidChange function notifies and updates the Windows Installer internal information with changes to user SIDs.

Syntax

C++UINT MsiNotifySidChange(
  __in  LPCTSTR szOldSid,
  __in  LPCTSTR szNewSid

);

Parameters

szOldSid [in]

Null-terminated string that specifies the string value of the previous security identifier(SID).

szNewSid [in]

Null-terminated string that specifies the string value of the new security identifier(SID).

Return Value

Value Meaning
ERROR_INVALID_PARAMETER

An invalid parameter is passed to the function. This error returned if any of the parameters is NULL.

ERROR_SUCCESS

The function succeeded.

ERROR_OUTOFMEMORY

Insufficient memory was available.

ERROR_FUNCTION_FAILED

Internal failure during execution.

 

Remarks

Windows Installer 2.0 and Windows Installer 3.0:  Not supported. This function is available beginning with Windows Installer 3.1.

Requirements

VersionWindows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer 3.1 on Windows Server 2003, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.
HeaderMsi.h
LibraryMsi.lib
DLLMsi.dll
Unicode and ANSI namesMsiNotifySidChangeW (Unicode) and MsiNotifySidChangeA (ANSI)

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.