public void StartWebCam() { byte[] buffer = new byte[100]; byte[] buffer2 = new byte[100]; Class4.capGetDriverDescriptionA(1, buffer, 100, buffer2, 100); this.intptr_0 = Class4.capCreateCaptureWindowA(buffer, 0x50000000, 0, 0, this.int_0, this.int_1, this.intptr_1, 0); if (this.method_0(this.intptr_0, 0)) { this.method_3(this.intptr_0, 0x42); this.method_2(this.intptr_0, true); this.method_7(this.intptr_0, true); Class4.Struct6 struct2 = new Class4.Struct6(); struct2.struct5_0.int_0 = Class4.smethod_4(struct2.struct5_0); struct2.struct5_0.int_1 = this.int_0; struct2.struct5_0.int_2 = this.int_1; struct2.struct5_0.short_0 = 1; struct2.struct5_0.short_1 = 0x18; this.method_5(this.intptr_0, ref struct2, Class4.smethod_4(struct2)); this.delegate0_0 = new Class4.Delegate0(this.method_6); this.method_4(this.intptr_0, this.delegate0_0); Class4.SetWindowPos(this.intptr_0, 0, 0, 0, this.int_0, this.int_1, 6); } }
private bool method_4(IntPtr intptr_2, Class4.Delegate0 delegate0_1) { return(Class4.SendMessage_2(intptr_2, 0x405, 0, delegate0_1)); }