Red Gate forums :: View topic - RemoveControlByName Function OCCACHE.DLL
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

RemoveControlByName Function OCCACHE.DLL

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
all3nmfa



Joined: 28 Sep 2007
Posts: 2

PostPosted: Fri Sep 28, 2007 4:06 pm    Post subject: RemoveControlByName Function OCCACHE.DLL Reply with quote

I'm in need of some help using this win api dll. can someone please convert to c#. TIA
http://msdn2.microsoft.com/en-us/library/Aa768173.aspx


allen
Back to top
View user's profile Send private message
all3nmfa



Joined: 28 Sep 2007
Posts: 2

PostPosted: Fri Sep 28, 2007 9:33 pm    Post subject: Reply with quote

i think i have the code converted but something is wrong. am i passing the wrong information? its only deleting the associated INF file but doesn't delete the dll's. it also still leaves all the registry information. anyone have any insight to my problem?


[DllImport("occache", EntryPoint = "RemoveControlByName")]
static extern int RemoveControlByName(string lpszFile, string lpszCLSID, string lpszTypelibid, bool bForceRemove, int dwISDistUnit);



private void button1_Click(object sender, EventArgs e)

{
int retval= 0;

retval = RemoveControlByName(@"C:\WINDOWS\Downloaded Program Files\MFA.dll", "{53A8AEF8-5503-4B78-A091-634BB68DEECE}", "ActiveX Control", true, 0);
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group