Answered by:
PInvoke - ShellAbout (Shell32) - Windows 10

Question
-
Hi,
the behavior of the Pinvoke of ShellAbout (Shell32.dll) is changed, now the windows registered user is not shown, a "user name" and "org name" are shown instead (a normal Help from an app like paint is just fine).
How we can pass this data? in which way?
maybe it's my mistake, but I use this function since a while now ...
Regards,
Angelo
Function Documentation:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762152%28v=vs.85%29.aspx
http://www.pinvoke.net/default.aspx/shell32.shellabout
- Moved by Herro wongMicrosoft contingent staff Wednesday, May 11, 2016 1:54 PM desktop issue
Tuesday, May 10, 2016 8:16 AM
Answers
-
Hi Angelo_Cresta,
>> now the windows registered user is not shown.
Form the MSDN documentation we cannot find any user information. The API just display the information you want to display.
The first parameter of the ShellAbout function is window handle to a parent window. The third parameter of the function is a null-terminated string that contains text to be displayed in the dialog box.
>> now the windows registered user is not shown, a "user name" and "org name" are shown instead (a normal Help from an app like paint is just fine).
If you can get the user information from other API function, you can write the user name information to the third parameter of shellAabout function, than the user name information will be display in the dialog box.
And I also try to get user name information by Microsoft API function. But I found no way to direct access to user name information.
I hope the reply can help you.
Regards,
Li WangWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 2:56 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 9:52 AM
Thursday, May 12, 2016 9:06 AM -
I don't have Win10, but on Win 7 the ShellAbout dialog retrieves the registered user and registered organization names from the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion from the values RegisteredOwner and RegisteredOrganization.
The name of the logged on user can be retrieved with the GetUserName function
- Proposed as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 2:56 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 9:52 AM
Thursday, May 12, 2016 10:52 AM
All replies
-
Hi Angelo_Cresta,
>> now the windows registered user is not shown.
Form the MSDN documentation we cannot find any user information. The API just display the information you want to display.
The first parameter of the ShellAbout function is window handle to a parent window. The third parameter of the function is a null-terminated string that contains text to be displayed in the dialog box.
>> now the windows registered user is not shown, a "user name" and "org name" are shown instead (a normal Help from an app like paint is just fine).
If you can get the user information from other API function, you can write the user name information to the third parameter of shellAabout function, than the user name information will be display in the dialog box.
And I also try to get user name information by Microsoft API function. But I found no way to direct access to user name information.
I hope the reply can help you.
Regards,
Li WangWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 2:56 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 9:52 AM
Thursday, May 12, 2016 9:06 AM -
I don't have Win10, but on Win 7 the ShellAbout dialog retrieves the registered user and registered organization names from the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion from the values RegisteredOwner and RegisteredOrganization.
The name of the logged on user can be retrieved with the GetUserName function
- Proposed as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 2:56 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, June 8, 2016 9:52 AM
Thursday, May 12, 2016 10:52 AM