c# - Return value of SHLoadIndirectString is an errorcode -


hi i've been trying name of metro app acquired appmanifest.xml of respective app. came know shloadindirectstring used purpose. on checking functionality manually, couldn't result resource. code snippet goes below.

#include <iostream> using namespace std; #include <shlwapi.h> int main(){     lpwstr output = l"";     lpwstr input = l"@{microsoft.bingmaps_2.1.3230.2048_x64__8wekyb3d8bbwe?ms-resource://microsoft.bingmaps/resources/appdisplayname}";     int result = shloadindirectstring(input, output, sizeof(output), null );     cout<<output;     return 0; } 

the return value "result" negative value(changes if changing input string respective app). please guide me on mistake. thanks.

got right answer.

#include <iostream>  using namespace std; #include <shlwapi.h> int main() {     pwstr output = (pwstr) malloc(sizeof(wchar)*256);       pcwstr input = l"@{c:\\program files\\windowsapps\\microsoft.bingmaps_2.1.3230.2048_x64__8wekyb3d8bbwe\\resources.pri?ms-resource://microsoft.bingmaps/resources/appshortdisplayname}";     int result = shloadindirectstring(input, output, 256, null );      cout<<output;     return 0; } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -