Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

StefanKittel

@StefanKittel
About
Posts
15
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use DeviceIoControl to access an external USB device from MFC
    S StefanKittel

    solved http://www.codeguru.com/forum/showthread.php?p=2053720

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • How to use DeviceIoControl to access an external USB device from MFC
    S StefanKittel

    Hello, it shows under "custom usb devices" as "[Company Name] Familiy Device". Stefan

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • How to use DeviceIoControl to access an external USB device from MFC
    S StefanKittel

    Hello, its a medical device having leds. I have the commandsets to enable or disable them. But I cannot send any commands. Stefan

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • How to use DeviceIoControl to access an external USB device from MFC
    S StefanKittel

    Hello, from a MFC program I need to send data to an external USB Device. System: Windows XP SP3, MS Visual Studio 2008, WinDDK (most current). Because I don't have any valid documentation I used a sniffer showing me the used commands. GET_DESCRIPTOR_FROM_DEVICE and BULD_OR_INTERRUPT_TRANSFER Using CreateFile I can successfull connect to the device. But I failed to use DeviceIoControl.

    HANDLE result = CreateFile(dev_name, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

    USBSCAN_GET_DESCRIPTOR data1;
    DWORD bytesReturned;
    BOOL b = DeviceIoControl(handle, IOCTL_GET_USB_DESCRIPTOR, NULL, 0, &data1, sizeof(USBSCAN_GET_DESCRIPTOR), &bytesReturned, NULL);

    Error C2065 "USBSCAN_GET_DESCRIPTOR" After including "usbscan.h" I get C2065 on METHOD_BUFFERED and FILE_ANY_ACCESS and C3861 on CTL_CODE. When including wdm.h I get about 107 errors in driverspecs.h and kernelspecs.h. So please, can anybody help me to get this run. Thanks Stefan

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • How to identify a PC running Windows?
    S StefanKittel

    Hi there, I came to the same result. I'll use a mixture from hostname and SID. If its easy I'll use CPU and Mainboard serial. If not... not :-) >If your users buy the software, simply give them a registration key, and let them run it on any machine they want to. Less hassle for you, and less hassle for your users. the licence depends on the number of users and servers. So I would like to get the extra money. Thanks Stefan

    IT & Infrastructure question sysadmin hardware sales tutorial

  • How to identify a PC running Windows?
    S StefanKittel

    Hi there, I came to the same result. I'll use a mixture from hostname and SID. If its easy I'll use CPU and Mainboard serial. If not... not :-) Thanks Stefan

    IT & Infrastructure question sysadmin hardware sales tutorial

  • Parallel Processors: What are they good for
    S StefanKittel

    The main Problem is, in my opinion, the quality of software in relationship to hardwarepower. Why should I program well and efficient, using only the ammount of memory I need, when there is enaugh? On an Amiga 500, you needed each KByte. Today: "hmm.. not sure how large buffer need to be... so I take 100MB to be sure". This counts for MS too :-) How can it be that an actual OS is not faster as the amiga OS? stefan

    IT & Infrastructure asp-net sysadmin help question

  • Parallel Processors: What are they good for
    S StefanKittel

    Hello Gineer, you can use multithreading for everything. I installed win98 on a current pc and it boots within 4 seconds. Vista on the same hardware takes about 34 seconds. (Both only with drivers) When booting windows have a look at your harddisc led. it is no lit all the time. Why? Windows, and the way it is design, is build up on timeouts. many off them. Many Programs would be much faster. A program of mine, downloading, sorting, running SpamAssassin on and send mails increased the speed up 10time calling SpamAssassin parallel. I think the future will be multicores (see dualcore and now quadcore). faster cpus (MHz) are too expensiv to build. So I see a pc in 5 years with a 16core cpu? Stefan

    IT & Infrastructure asp-net sysadmin help question

  • How to identify a PC running Windows?
    S StefanKittel

    Hello, I'm about to sell my first Software at the end of the year. I created a licence file I give away for each customer. But how do I prevent them to use the licence on different computers. I thought about some routines for activating. But how do I get if the software is running on different machines? How do I identify a PC running Windows (2000 up). SID? see NewSID and many PCs have the same SID because they were installed with the same image Hostname? NT-Server, NTServer, Server, Server01 looks like a frequently used Hostname for Servers Local IP: 192.168.0.5 looks like a frequently used ip for Servers external IP: if dynamic.... MAC-Adress: can be easy changed Hardware Serial: must use WMI and DCOM and I have seen CPUs and Boards with a dummy Serial (1234567) Hardware Serial is my favorite. Or better get all and create a checksum for it What if somebody creates a virtual PC, installs the software and lets this VM run on severall PCs? Do you have something better to suggest? Thanks in advance Stefan

    IT & Infrastructure question sysadmin hardware sales tutorial

  • How to read the Computer SID?
    S StefanKittel

    Hello, that looks great. I ignored LookupAccountName because, reading in the msdn, it should be only working with a PDC. I try this out. Thanks Stefan

    C / C++ / MFC csharp c++ tutorial question

  • How to read the Computer SID?
    S StefanKittel

    Hello, on my computer Vista, no domain, the hive \\hklm\security is complete empty :-( \\hklm\sam\sam is empty too Stefan

    C / C++ / MFC csharp c++ tutorial question

  • How to read the Computer SID?
    S StefanKittel

    Hello, to identify local machines I need to read the Computer SID. (like psgetsid.exe does) Does anybody have a bit of source for this? OS: Windows 2000 and up. Compiler: VC9 using MFC (not C#). But I'll take anything you have even VB or Delphy Mention: Computer SID, not a logon, user SID. Any computer have one. It don't need to be in a domain. I searched hours in google and forums. Thanks in advance Stefan

    C / C++ / MFC csharp c++ tutorial question

  • How to get a status from ITask
    S StefanKittel

    Hello, I'm working on an application that uses the Scheduled Task APIs... I am unable to get the "detailed status" that appears in the GUI from anything in the API. For example, let's say I've got a scheduled task that has a bad user/password.... in the Win2003 GUI, the "Status" column has the following: "The scheduled task did not run because an incorrect password or user name was entered" However, nothing in the API can get me this error code (0x8007052E)... I've tried: ITask.GetStatus = returns 0x41300 (Which is "Task is scheduled") ITask.GetWorkItemData = return a 0 for the length of the data (so there is no application specific data) ITask.GetExitCode = return 0 because the last time it did run, it ran fine What am I missing? Visuall C++ 6.0 using Microsoft Platform SDK for Windows Server 2003 R2 on Windows XP Prof SP2 :confused:

    C / C++ / MFC tutorial c++ sysadmin windows-admin json

  • How to use CreateProcessAsUser
    S StefanKittel

    Hi... I have a small program running (MS VC++ 6.0 on Windows XP Prof) with starts an other one using CreateProcess. But now I need to start the other programm under a different user account. I need to use a fixed username and password which the user should not know. Does anyone can tell me how to use CreateProcessAsUser with username und password? Thanks Stefan

    C / C++ / MFC c++ tutorial question

  • Draw a text overlay in a running DirectX game (Battlefield 2) [modified]
    S StefanKittel

    Hi... I would like to show a text (like skype oder icq) in a running directx game (Battlefield 2). Please give me a hint were to starting looking. Maybe a sample somewhere. Running Windows XP Prof with MS Visual C++ 6.0 Stefan -- modified at 18:50 Saturday 15th July, 2006

    C / C++ / MFC c++ game-dev graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups