HOOK connect not work .

Jun 12, 2013 at 5:36 PM
Hook connecton x64 of win7.It can be runned under the development environment. It can't be hooked If it is compiled.
It cannot succeed with administrator authority
Code:
ConnectHook = LocalHook.Create(
                    LocalHook.GetProcAddress("WS2_32.dll", "connect"),
                    new NativeSocket.DConnect(MyConnect),
                    this);

                ConnectHook.ThreadACL.SetInclusiveACL(new Int32[] { 0 });
                //ConnectHook.ThreadACL.SetExclusiveACL(new Int32[] { 0 });