Jump to content

nblackburn

Members
  • Posts

    2
  • Joined

  • Last visited

About nblackburn

  • Birthday 09/18/1991

Profile Information

  • Location
    Morecambe, United Kingdom
  • WWW
    http://www.nblackburn.me

nblackburn's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. i have made an attempt at this to show im not lazy, but this currently doesnt work, it would mean the world to me if someone could help me finish this code asap, thanks again. #using <mscorlib.dll> using namespace System; using namespace System::Runtime::InteropServices; #define DLL_EXPORT extern "C" __declspec(dllexport) DLL_EXPORT long* SetUserTile(char* username char* imagepath) { CoInitialize(); [DllImport("shell32.dll", EntryPoint = "#262", CharSet = CharSet.Unicode, PreserveSig = false)] public static extern void SetUserTile(string username, int whatever, string picpath); SetUserTile(username, 0, imagepath); CoUninitialize(); } Best Wishes, Nathaniel Blackburn
  2. Hello, this is my very first post, i have found this awesome script on your forum and was wondering if you lovely people would help me translate it into c++ so i can use it with one of my projects. $sUserName = "username" $sPicPath = "usertile.png" ; call CoInitialize DLLCall("ole32.dll","int","CoInitialize","ptr",0) $hPicPath = DLLStructCreate("wchar[128]") DllStructSetData($hPicPath, 1, $sPicPath) $hUserName = DLLStructCreate("wchar[128]") DllStructSetData($hUserName, 1, $sUserName) $aRet = DllCall(@SystemDir & "\shell32.dll", "long", 262, "ptr", DllStructGetPtr($hUserName), "int", 0, "ptr", DllStructGetPtr($hPicPath)) MsgBox(4096, "SetUserTile", $aRet[0]) Thanks to anyone that helps, it means alot Kind Regards, Nathaniel Blackburn
×
×
  • Create New...