Boot Camp partition broken and can't be repaired in OS X 10.10.4
To recover the Boot Camp partition (Source):

Enter:

sudo gpt -vv -r show /dev/disk0


to get some partition informations.

Download and install GPT Fdisk (aka gdisk). 

Download and install TestDisk. 

Open TestDisk and make a deep search for your Windows partition.

Leave your Testdisk display and start a new Terminal Window. You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8. They should be the same as in the gpt output. Please notice the '+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe the action being taken. Gdisk has one-character commands except when entering numbers.

Rebuild GPT4 using start/end offsets


sudo gdisk /dev/rdisk0
P  (print the full list of parts)
D  (delete)
4  (part 4)
N  (new part)
4  (part 4)
1564180480 ( - Start offset in blocks or the start point for Bootcamp part)
+389343232 ( - Size offset, as opposed to End offset)
0700 (Windows part type)
P  (print list of all parts just to see what changes will be made)
W  (Write the new GPT)
Y  (Yes! really write the new GPT)


This will delete and re-write the GPT partition info for /dev/disk0s4.

Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers.


sudo gdisk /dev/rdisk0
P  (Print list of parts)
R  (Recover)
O  (print current Hybrid MBR)
H  (chooses Hybrid)
Partitions numbers to be hybridized: 2 3 4
Y  (Good for GRUB question)
N  (part 2 boot flag)
N  (part 3 boot flag)
Y  (part 4 boot flag make NTFS bootable partition)
O  (print current Hybrid MBR)
W  (Write the new MBR)
Y  (Yes! write the new MBR)
Reboot


To make Windows bootable again try the following:

Boot from your Windows DVD/USB-Stick


Open command prompt from Windows recovery option menu. Type “diskpart” at the command prompt.
At the DiskPart prompt, type in “list disk”. You will see the list of disk currently attached to your computer.
Now type in “select disk n”, where n is the disk number. In this example, disk 0 is selected.
Now that correct disk is selected, type in “list partition” to get a list of all the partitions on that disk.
To select the partition you want to set as active, type in “select partition n”, where n is the partition number (probably 3).
Now that you have selected the disk and partition, mark it as active by just typing the word “active” and pressing Enter. Now the partition is set active.
Exit from the command prompt and run startup repair.