我試圖修改我的最終項目的Wiimote白板應用程序。我在編程語言C#中的經驗很少。有人可以幫助我,告訴我這段代碼的含義嗎?
我不知道幾行代碼的意思是什麼: 任何人都可以幫我嗎?
[DllImport("bthprops.cpl", CharSet = CharSet.Auto, SetLastError = true)]
static extern IntPtr BluetoothFindFirstDevice(ref BLUETOOTH_DEVICE_SEARCH_PARAMS SearchParams, ref BLUETOOTH_DEVICE_INFO DeviceInfo);
[DllImport("bthprops.cpl", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool BluetoothFindNextDevice(IntPtr hFind, ref BLUETOOTH_DEVICE_INFO DeviceInfo);
[DllImport("bthprops.cpl", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool BluetoothFindDeviceClose(IntPtr hFind);
[DllImport("bthprops.cpl", CharSet = CharSet.Auto, SetLastError = true)]
static extern uint BluetoothSetServiceState(IntPtr hRadio, ref BLUETOOTH_DEVICE_INFO DeviceInfo, ref Guid guid, int ServiceFlags);
[DllImport("bthprops.cpl", CharSet = CharSet.Auto, SetLastError = true)]
static extern uint BluetoothRemoveDevice(ref BLUETOOTH_ADDRESS Address);
我非常感謝您是否願意幫助我。
我在找一個掌握了C#編程語言的人來指導我在這個項目中。
我希望有人願意幫助我。
我很抱歉我的英文很薄弱。
[MSDN](http://msdn.microsoft.com/en-us/library/e59b22c5.aspx) –
非常感謝! 我現在知道,這是用來從bthprops.cpl中調用方法的。 但是我想知道每個代碼的目的是什麼,我希望你願意幫助我。 –
http://msdn.microsoft.com/en-us/library/windows/desktop/aa362927(v=vs.85).aspx – JosephHirn