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
B

botnet

@botnet
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Launch an Application from Event in HTMLVIEW
    B botnet

    Well I know that you can launch an exe with Internet Explorer by assigning a protocol to the exe Insert the following into the registry:

    [HKEY_CLASSES_ROOT\notepad]
    @="URL:notepad Protocol"
    "URL Protocol"=""

    [HKEY_CLASSES_ROOT\notepad\shell]

    [HKEY_CLASSES_ROOT\notepad\shell\open]

    [HKEY_CLASSES_ROOT\notepad\shell\open\command]
    @="\"c:\\notepad.exe\" \"%1\""

    Your link will then need to be notepad:parameters where parameters are the parameters you wish to pass. Change notepad above to whatever name you wish for your protocol.

    C / C++ / MFC c++ javascript linux tools question

  • reading bits from file
    B botnet

    Thanks for all your replies. I've read up on it a bit and have tried both pragma pack(1) before the struct and pragma pack(push, 1) ... pragma pack(pop) around the struct and both have not worked. This[^] also verifies what you have said. I havent disable padding though. I've look for how to do this but cant find it for either GCC of Visual Studio. I've also had a look at this[^] to no avail. The header was incorrect. I've removed payload_data_exists:1 and made adaptive_field_exists:2 http://www.erg.abdn.ac.uk/research/future-net/digital-video/mpeg2-trans.html[^]

    C / C++ / MFC ios algorithms question

  • reading bits from file
    B botnet

    Hi Guys, I've been searching extensively over the past couple of days but still have trouble reading bits from a file. I'm trying to read the header of an MPEG ts file. Here is what I have: // header structure struct TS_PACKET_HEADER { unsigned int sync_byte:8; unsigned int payload_unit_start_indicator:1; unsigned int transport_error_indicator:1; unsigned int transport_priority:1; unsigned int PID:13; unsigned int scrambling_control:2; unsigned int adaptive_field_exists:2; unsigned int payload_data_exists:1; unsigned int continuity_counter:4; }; ... // the code to read from file into structure int size; unsigned char* buffer; std::ifstream inputFile("mpeg.ts", std::ios::in | std::ios::binary); if (inputFile.is_open()) { size = 4; buffer = new unsigned char[size]; inputFile.seekg(0); inputFile.read( reinterpret_cast(buffer), size); TS_PACKET_HEADER header = * (TS_PACKET_HEADER*) buffer; } The first byte reads fine but the next two bytes (payload_unit_start_indicator, transport_error_indicator, transport_priority and PID) read incorrectly. Where am i going wrong and is there a better way to do this? Packet header information: http://en.wikipedia.org/wiki/Transport_stream#Important_elements_of_a_transport_stream[^]

    C / C++ / MFC ios algorithms question
  • Login

  • Don't have an account? Register

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