I was Having problems running Call Of Duty 4 on my Windows 7 Beta 64 bit machine because PunkBuster would kick me with and error saying Unknown windows API function ( 131152 ) . This really made me try hard to figure out WHY!!!!!,
So I went on a 3 hour journey scouring the internet to figure out why, all i came across was people with vista and windows blinds issues BLAH!
I fixed this issue with Windows7 64 bit by making the PnkBstrA and PnkBstrB executable run as administrator, these file proved difficult to find in the 64bit edition of Windows7 (because they are not in the localization listed under the services properties window).
And setting the Service to allow interaction with the Desktop.
Go to Control Panel > Administrative tools > Services and find the PnkBstrA service

Windows7 64bit COD4 PunkBuster Fix
Right click and go to the Properties, Notice the Path to executable is listed as C:\Windows\system32\

Windows7 64bit COD4 PunkBuster Fix
Click on the Log On tab and check the Box to allow service to interact with Desktop

Windows7 64bit COD4 PunkBuster Fix
Next step we will go to the PnkBstrA and PnkBstrB executable and make them run as administrators so they no longer cause this error.
The files are located in the folder C:\Windows\SysWOW64 and are PnkBstrA.exe and PnkBstrB.exe
Right click and go to Properties FOR EACH ONE of the 2 punkbuster exe's and go to the Compatibility Tab, at the bottom check off the "Run the program as Administrator" check box and apply the settings.
This should fix the PunkBuster Kicking issue. it did for me.

Windows7 64bit COD4 PunkBuster Fix
Source:
http://www.t3chworks.com/index_cod4fix.html